verilog-mode.el updates.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
89baa1df
EZ
12010-10-22 Eli Zaretskii <eliz@gnu.org>
2
3 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4
5 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
6 Deprecate use as a boolean flag.
7
5419963b
KB
82010-10-18 Ken Brown <kbrown@cornell.edu>
9
10 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
11
31daa5e1
KH
122010-10-15 Kenichi Handa <handa@m17n.org>
13
14 Fix incorrect font metrics when the same font is opened with
15 different pixelsizes.
16
17 * xftfont.c: Include composite.h.
18 (xftfont_shape): New function.
19 (syms_of_xftfont): Set xftfont_driver.shape.
20
9fa82824
DP
212010-10-13 Damyan Pepper <damyanp@gmail.com>
22
23 Fix handling of font properties on Windows (bug#6303).
24 * font.c (font_filter_properties): New function, refactored from
25 ftfont_filter_properties.
26 * font.h (font_filter_properties): Declare.
27 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
28 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
29 (w32font_filter_properties): New function.
30 (w32font_driver): Add w32font_filter_properties.
31
51e4f4a8
JB
322010-10-12 Juanma Barranquero <lekktu@gmail.com>
33
c0943d3d 34 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
35 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
36
a2e35ef5
JD
372010-10-10 Jan Djärv <jan.h.d@swipnet.se>
38
39 * nsterm.m (Qleft): Declare.
40 (ns_right_alternate_modifier): New variable
41 (NSRightAlternateKeyMask): New define.
42 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
43 ns_right_alternate_modifier isn't Qleft.
44 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
45 as emacs modifier for NSRightAlternateKeyMask.
46 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
47
2e828c79
MA
482010-10-08 Michael Albinus <michael.albinus@gmx.de>
49
50 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
51 (xd_pending_messages): Catch xd_get_dispatch_status calls.
52
93d50df8
KH
532010-10-08 Kenichi Handa <handa@m17n.org>
54
2b7c9342 55 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 56
a79b0f28
MA
572010-10-03 Michael Albinus <michael.albinus@gmx.de>
58
59 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
60 (Fdbus_init_bus): ... here. (Bug#7113)
61
7b2bf907
GM
622010-10-03 Glenn Morris <rgm@gnu.org>
63
64 * buffer.c (before-change-functions, after-change-functions):
65 Three-year overdue doc fix following 2007-08-13 change.
66
1911a33b
KH
672010-10-02 Kenichi Handa <handa@m17n.org>
68
69 * coding.c (coding_inherit_eol_type): If parent doesn't specify
70 eol-format, inherit from the system's default.
71 (complement_process_encoding_system): Make a new coding system
72 inherit the original eol-format.
73
fcaf8878
KH
742010-09-30 Kenichi Handa <handa@m17n.org>
75
76 * coding.c (complement_process_encoding_system): New function.
77
78 * coding.h (complement_process_encoding_system): Extern it.
79
80 * callproc.c (Fcall_process): Complement the coding system for
81 encoding arguments.
82 (Fcall_process_region): Complement the coding system for encoding
83 the input to the process.
84
85 * process.c (Fstart_process): Complement the coding system for
86 encoding arguments.
87 (send_process): Complement the coding system for encoding what
88 sent to the process.
89
18acb5ad
KH
902010-09-29 Kenichi Handa <handa@m17n.org>
91
92 * xfont.c (xfont_open): Fix setting of font->average_width from
93 :avgwidth property (Bug#7123).
94
dec83468
MA
952010-09-28 Michael Albinus <michael.albinus@gmx.de>
96
97 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
98 is more portable.
99
100 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
101 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
102 has not defined SIGIO.
103
e0720500
MA
1042010-09-27 Michael Albinus <michael.albinus@gmx.de>
105
11a5af7c 106 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
107 (Bug#7113)
108
42d3022b
J
1092010-09-26 Jan Djärv <jan.h.d@swipnet.se>
110
111 * xgselect.c (xg_select): Clear file descriptors not set from
112 rfds and wfds.
113
fbb3da77
SM
1142010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
115
116 * syntax.c (back_comment): Detect the case where a 1-char comment
117 starter is also the 2nd char of a 2-char comment ender.
118
2b5b82db
J
1192010-09-17 Jan Djärv <jan.h.d@swipnet.se>
120
121 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
122
5f61a25c
J
1232010-09-12 Jan Djärv <jan.h.d@swipnet.se>
124
125 * xterm.c (get_current_vm_state): New function.
126 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
127 want_fullscreen so set_wm_state calls are few (Bug#7013).
128 (x_handle_net_wm_state): Move code to get_current_vm_state and
129 call that function.
130
65c92e31 1312010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
132
133 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
134
a552b35a
KH
1352010-09-08 Kenichi Handa <handa@m17n.org>
136
137 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
138 we may use designation or locking-shift.
139
396475b7
KH
1402010-09-07 Kenichi Handa <handa@m17n.org>
141
142 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
143 sequence when the source is multibyte.
144
d419e1d9
KH
1452010-08-31 Kenichi Handa <handa@m17n.org>
146
147 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
148 characters.
149
150 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
151 (produce_glyphs): Don't set it->char_to_display here.
152 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
153 (produce_special_glyphs): Set temp_it.char_to_display before
154 calling produce_glyphs.
155
156 * xdisp.c (get_next_display_element): Set it->char_to_display
157 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
158 characters.
159 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
160 calling PRODUCE_GLYPHS.
161 (append_space_for_newline): Save and store it->char_to_display.
162 Set it->char_to_display before calling PRODUCE_GLYPHS.
163 (extend_face_to_end_of_line): Set it->char_to_display before
164 calling PRODUCE_GLYPHS.
165 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
166 character to its byte value.
167 (get_char_glyph_code): New function.
168 (produce_stretch_glyph): Set it2.char_to_display too before
169 calling x_produce_glyphs.
170 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
171 non-ASCII characters. Don't set it->char_to_display here.
172 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 173 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 174
769ae9e1
KH
1752010-08-29 Kenichi Handa <handa@m17n.org>
176
177 * term.c (encode_terminal_code): Encode byte chars to the
178 correspnding bytes.
179
b72e0717
AS
1802010-08-17 Andreas Schwab <schwab@linux-m68k.org>
181
182 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
183 instead of SAFE_ALLOCA.
184
3a7a9129
CY
1852010-08-17 Chong Yidong <cyd@stupidchicken.com>
186
187 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
188 (Bug#6214).
189
983b8302
J
1902010-08-14 Jan Djärv <jan.h.d@swipnet.se>
191
192 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
193
7d1b9df3
J
1942010-08-13 Jan Djärv <jan.h.d@swipnet.se>
195
196 * doc.c (Fsnarf_documentation): Initialize skip_file before
197 build-files test.
198
2294b255
PG
1992010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
200
65b3d997
A
201 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
202 New definitions.
2294b255
PG
203 (HAVE_TERMIO): Remove.
204
7a84eee5
KH
2052010-08-06 Kenichi Handa <handa@m17n.org>
206
207 * charset.c: Include <stdlib.h>
208 (struct charset_sort_data): New struct.
209 (charset_compare): New function.
c0943d3d 210 (Fsort_charsets): New function.
7a84eee5
KH
211 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
212
213 * coding.c (decode_coding_iso_2022): Fix checking of dimension
214 number in CTEXT extended segment.
215
f5f6c0e0
JB
2162010-08-01 Juanma Barranquero <lekktu@gmail.com>
217
218 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
219 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
220
b756c005
JB
2212010-07-30 Juanma Barranquero <lekktu@gmail.com>
222
223 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
224 (Fhash_table_size): Fix typos in docstrings.
225 (Fmake_hash_table): Doc fix.
226
b4f588fa
JB
2272010-07-28 Juanma Barranquero <lekktu@gmail.com>
228
229 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
230 Doc fix (bug#5625).
231
9f8c08a7
KB
2322010-07-27 Ken Brown <kbrown@cornell.edu>
233
234 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
235 the MSDOS definition.
236
a2a0d36b
CS
2372010-07-25 Christoph Scholtes <cschol2112@gmail.com>
238
239 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
240
a77cfeaf
CS
2412010-07-22 Christoph Scholtes <cschol2112@gmail.com>
242
243 * window.c (Fwindow_height): Doc fix (bug#6518).
244
14fb5704
JB
2452010-07-21 Juanma Barranquero <lekktu@gmail.com>
246
247 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
248
499322ce
J
2492010-07-17 Jan Djärv <jan.h.d@swipnet.se>
250
251 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
252 is related to the menu bar (Bug#6499).
253
b78f9767
J
2542010-07-14 Jan Djärv <jan.h.d@swipnet.se>
255
256 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
257
258 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
259
260 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
261 i.e. don't put back ButtonRelease (Bug#6608).
262
263 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
264 instead of Window. Call xg_event_is_for_menubar when
265 USE_GTK (Bug#6499).
266
267 * gtkutil.h (xg_event_is_for_menubar): Declare.
268
269 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
270
1f60c16a
EZ
2712010-07-14 Eli Zaretskii <eliz@gnu.org>
272
273 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
274 when it's the same as the old foreground. (Bug#6609)
275
7c33a057
CY
2762010-07-10 Chong Yidong <cyd@stupidchicken.com>
277
278 * xfaces.c (realize_face): Garbage the frame if a face is removed
279 (Bug#6593).
280
9d70a3fc
AS
2812010-07-05 Andreas Schwab <schwab@linux-m68k.org>
282
283 * keyboard.c: Remove duplicate <setjmp.h>.
284 (read_key_sequence): Remove volatile qualifiers.
285
5a874e95
YM
2862010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
287
288 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
289 (struct glyph_row): New members left_fringe_offset and
290 right_fringe_offset.
291
292 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
293 specially.
294 * w32term.c (w32_draw_fringe_bitmap): Likewise.
295 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
296
297 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
298 Take account of bitmap offset.
299 (draw_window_fringes): Take account of window vscroll.
300 (update_window_fringes): Likewise. Extend top-aligned top indicator
301 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
302 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
303 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
304
0682186e
JB
3052010-07-04 Juanma Barranquero <lekktu@gmail.com>
306
307 * w32fns.c (Qtooltip): Declare.
308 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
309
ad3e6f44
J
3102010-07-03 Jan Djärv <jan.h.d@swipnet.se>
311
312 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
313 grab on just Press (Bug#6499).
314
54ee7410
CY
3152010-07-02 Chong Yidong <cyd@stupidchicken.com>
316
317 * frame.c (Qtooltip): New var.
318 (delete_frame): Use it. Fix faulty if statement. Don't update
319 mode line for tooltip frames. Suggested by Martin Rudalics.
320
321 * xfns.c (x_create_tip_frame):
322 * w32fns.c (x_create_tip_frame): Use it.
323
3d8416fc
NA
3242010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
325
326 * xftfont.c (xftfont_open): Check font width one by one also when
327 spacing is dual.
328
329 * ftfont.c (ftfont_open): Ditto.
330
b1feb9b4
AS
3312010-06-26 Andreas Schwab <schwab@linux-m68k.org>
332
333 * alloc.c (Fmake_byte_code): Don't access undefined argument
334 (Bug#6517).
335
c7dd9743
CY
3362010-06-25 Chong Yidong <cyd@stupidchicken.com>
337
338 * xdisp.c (next_element_from_image): Ensure that after-strings are
339 read the next time we hit handle_stop (Bug#1336).
340
5721b4ed
AS
3412010-06-23 Andreas Schwab <schwab@linux-m68k.org>
342
343 * lread.c (read1): Signal error if #s is not followed by paren.
344
277c5f18
CY
3452010-06-19 Chong Yidong <cyd@stupidchicken.com>
346
52ab9bb2
CY
347 * image.c (free_image): Mark frame as garbaged (Bug#6426).
348
277c5f18
CY
349 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
350
6fda6a0c
GM
3512010-06-15 Glenn Morris <rgm@gnu.org>
352
353 * editfns.c (Fbyte_to_string): Pacify compiler.
354
e454a4a3
SM
3552010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
356
357 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
358 Check `object's type before accessing its guts.
359
657d4c0b
AS
3602010-06-08 Andreas Schwab <schwab@linux-m68k.org>
361
362 * minibuf.c (Fall_completions): Add more checks.
363
9b27fd9f
JB
3642010-06-08 Juanma Barranquero <lekktu@gmail.com>
365
366 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
367
0eb7675e
AS
3682010-06-03 Andreas Schwab <schwab@linux-m68k.org>
369
370 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 371 address. (Bug#6346)
0eb7675e 372
78edd3b7
JB
3732010-06-03 Juanma Barranquero <lekktu@gmail.com>
374
375 * ccl.c (Fccl_program_p): Fix typo in docstring.
376
1ab8293c
SM
3772010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
380 of bug#6305).
381
5ca3929b
CY
3822010-05-27 Chong Yidong <cyd@stupidchicken.com>
383
384 * xdisp.c (redisplay_window): After redisplay, check if point is
385 still valid before setting it (Bug#6177).
386
f5b416d2 3872010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
388
389 * s/netbsd.h: If terminfo is found, use it in preference to
390 termcap. (Bug#6190) [Backport from trunk]
391
aeb77d46
CY
3922010-05-20 Kevin Ryde <user42@zip.com.au>
393
394 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
395 (Voverriding_terminal_local_map, Vsystem_key_alist)
396 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
397
c3bb441d
SM
3982010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
399
400 * editfns.c (Fbyte_to_string): New function.
401
754790b6
CY
4022010-05-18 Chong Yidong <cyd@stupidchicken.com>
403
404 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
405 prevent stack overflow if number of arguments is too large
406 (Bug#6214).
407
c8670ded
EZ
4082010-05-11 Eli Zaretskii <eliz@gnu.org>
409
410 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
411
412 * w32fns.c: Include w32.h.
413 (Fw32_shell_execute): Decode the error message before passing it
414 to `error'. (Bug#6126)
415
3ffd4615 4162010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
417
418 * ftfont.c: Fix incorrect parentheses of #if condition for
419 definining M17N_FLT_USE_NEW_FEATURE.
420
61a808e8
CY
4212010-05-07 Chong Yidong <cyd@stupidchicken.com>
422
423 * Version 23.2 released.
424
5dcde606
AS
4252010-04-30 Andreas Schwab <schwab@linux-m68k.org>
426
427 * composite.c (autocmp_chars): Save point as marker before calling
428 auto-composition-function (Bug#5984).
429
430 * lisp.h (restore_point_unwind): Add prototype.
431
432 * fileio.c (restore_point_unwind): Remove static attribute.
433
c4170e32
KH
4342010-04-23 Kenichi Handa <handa@m17n.org>
435
436 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
437 new feature of libotf and m17n-flt.
65b3d997
A
438 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
439 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
440 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
441 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
442 that OUT is NULL. Use OTF_drive_gsub_with_log and
443 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
444 OTF_drive_gpos.
445 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
446 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
447 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 448
e42cd1a7
JB
4492010-04-19 Juanma Barranquero <lekktu@gmail.com>
450
451 * dired.c (Ffile_attributes): Fix typo in docstring.
452
79353a53
AR
4532010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
454
455 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
456 NSInteger (Bug#5811).
457
658b9b93
YM
4582010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
459
460 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
461 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
462
16009a0e
YM
4632010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
464
465 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
466
f016f225
JD
4672010-04-07 Jan Djärv <jan.h.d@swipnet.se>
468
469 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
470 FRAME_LINE_TO_PIXEL_Y.
471
472 * xterm.c (x_set_window_size_1): Don't add border_width/height to
473 pixelwidth/height.
474
84257d93
CY
4752010-04-05 Chong Yidong <cyd@stupidchicken.com>
476
477 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
478 terminal frames (Bug#5837).
479
95b1abcf
CY
4802010-03-31 Chong Yidong <cyd@stupidchicken.com>
481
482 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
483 * nsterm.h: Fix prototype.
484
4a217bed
EZ
4852010-03-31 Eli Zaretskii <eliz@gnu.org>
486
487 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
488 in this function. (Bug#5703)
489
4f103e04
CY
4902010-03-31 Chong Yidong <cyd@stupidchicken.com>
491
492 * nsterm.h: Fix last change.
493
a6d676d9
CY
4942010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
495
496 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
497
67fee863
JD
4982010-03-30 Jan Djärv <jan.h.d@swipnet.se>
499
500 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
501 invisible (Bug#5766).
502
9ae6e189
CY
5032010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
504
505 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
506 HAVE_NS conditionals.
194d44e7 507 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
508
509 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
510 filename for the title.
511 (ns_set_doc_edited): Do nothing if the selected window is a
512 minibuffer window.
513
514 * nsterm.h: Add prototypes for ns_set_name_as_filename and
515 ns_set_doc_edited.
516
517 * nsterm.m: Remove unneeded prototype.
518
25c72475
GM
5192010-03-28 Glenn Morris <rgm@gnu.org>
520
521 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
522 in the DOC file. (Bug#5336)
523
f79a01db
CY
5242010-03-24 Chong Yidong <cyd@stupidchicken.com>
525
526 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
527
93318cbd
JD
5282010-03-20 Jan Djärv <jan.h.d@swipnet.se>
529
530 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
531
532 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
533
534 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
535
ad13a3ee
YM
5362010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
537
538 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
539 XLoadQueryFont.
540
fbdc1721
KH
5412010-03-16 Kenichi Handa <handa@m17n.org>
542
543 * coding.c (decode_coding_ccl): Fix previous change for the
544 multibyte case.
fb608df3
KH
545 (encode_coding_ccl): Don't setup ccl program here. Fix for the
546 case that the output buffer is fullfilled.
547 (encode_coding): Setup ccl program here.
fbdc1721 548
35cd7cd6
CY
5492010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
550
551 * editfns.c (Fformat): Account for string precision when computing
552 field width (Bug#5710).
553
618db430
SM
5542010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
555
c0335e02
SM
556 Make it possible to C-g in a tight bytecode loop again (bug#5680).
557 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
558 (QUIT): Use it to consolidate code and remove redundancy.
559 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
560
254c06a8
SM
561 * regex.c (regex_compile): Setup gl_state as well.
562
618db430
SM
563 * syntax.c (skip_chars): Setup gl_state (bug#3823).
564 (in_classes): Use CONSP before XCAR/XCDR.
565
233f0c9f
CY
5662010-03-03 Chong Yidong <cyd@stupidchicken.com>
567
568 * keymap.c (Fwhere_is_internal): Use Fequal to compare
569 definitions, so that keyboard macros are correctly handled
570 (Bug#5481).
571
75f80e63
EZ
5722010-03-02 Eli Zaretskii <eliz@gnu.org>
573
574 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
575 text that could be relocated inside the call to emacs_mule_char.
576 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
577 (CODING_DECODE_CHAR): Add a comment describing its purpose.
578
dcfb9bc4
KH
5792010-03-02 Kenichi Handa <handa@m17n.org>
580
fc9a17bc
KH
581 * character.c (parse_str_as_multibyte): Fix handling of the
582 multibyte form of raw-bytes.
583 (str_as_multibyte): Likewise.
584
dcfb9bc4
KH
585 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
586 form of raw-bytes.
587
412c01b6
CY
5882010-02-28 Chong Yidong <cyd@stupidchicken.com>
589
590 * charset.c (load_charset_map_from_file)
591 (load_charset_map_from_vector): Zero out allocated
592 charset_map_entries before using them.
593
df7e1ea0
AS
5942010-02-27 Andreas Schwab <schwab@linux-m68k.org>
595
596 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
597
fe69a722
CY
5982010-02-27 Chong Yidong <cyd@stupidchicken.com>
599
4ed28cf4
CY
600 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
601 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 602
7379cfce
KH
6032010-02-26 Kenichi Handa <handa@m17n.org>
604
f88cc4d6
KH
605 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
606
7379cfce
KH
607 * xdisp.c (reseat_to_string): Fix previous change.
608
cf2fdcfb
CY
6092010-02-26 David Reitter <david.reitter@gmail.com>
610
611 * nsfont.m (nsfont_draw): ns_antialias_text should be a
612 Lisp_Object (Bug#4736).
613
cc6c7c75
KH
6142010-02-25 Kenichi Handa <handa@m17n.org>
615
616 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
617
32e737d7
JD
6182010-02-24 Jan Djärv <jan.h.d@swipnet.se>
619
620 * xterm.c (XTflash): Move declarations before statements.
621
622 * gtkutil.c (xg_get_gdk_display): Remove (unused).
623 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
624 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
625 (xg_create_tool_bar): Remove unused variables.
626 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 627 (xg_create_frame_widgets): Remove variable grav.
32e737d7 628
676cae9f
CY
6292010-02-21 Chong Yidong <cyd@stupidchicken.com>
630
631 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
632
886cc2b8
SM
6332010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
634
635 * term.c (fatal): Add a final \n if needed (bug#5596).
636
ddb2d8e2
CY
6372010-02-18 Chong Yidong <cyd@stupidchicken.com>
638
639 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
640
2a4f8d3d
GM
6412010-02-18 Glenn Morris <rgm@gnu.org>
642
643 * callint.c (Finteractive): Doc fix.
644
ebaf11b6
KH
6452010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
646
886cc2b8
SM
647 * coding.c (record_conversion_result):
648 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
649 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
650 memory allocation error.
651
d0396581
KH
6522010-02-17 Kenichi Handa <handa@m17n.org>
653
886cc2b8
SM
654 * coding.c (decode_coding_ccl): Don't setup ccl program here.
655 Fix for the case that the output buffer is fullfilled.
d0396581
KH
656 (decode_coding): Setup ccl program here. Keep looping when the
657 decoder stopped because the output buffer is
658 fullfilled (bug#5534).
659
660 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
661
98599f74
JD
6622010-02-13 Jan Djärv <jan.h.d@swipnet.se>
663
471e4f04 664 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 665 bug #5571.
886cc2b8 666 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 667 overdrawn.
98599f74 668
182659ae
JD
6692010-02-10 Jan Djärv <jan.h.d@swipnet.se>
670
671 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
672 doing_interact here.
673 (ice_connection_closed): New function.
674 (x_session_check_input, smc_die_CB, ice_io_error_handler)
675 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
676 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
677 returns I/O error.
678 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
679 bug #5512.
680
9be32c4e 6812010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
682
683 * nsfont.m (nsfont_open): The system's value for the font descent
684 is negative, so round it down to avoid clipping.
685
a2f3eb19
CY
6862010-02-06 Chong Yidong <cyd@stupidchicken.com>
687
688 * charset.c (load_charset_map_from_file)
689 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 690 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 691
3088147c
CY
6922010-02-05 Chong Yidong <cyd@stupidchicken.com>
693
694 * charset.c (load_charset_map_from_file): Allocate large
695 charset_map_entries structure on the heap rather than the stack.
696 (Bug#5526).
697
b57d9029
KH
6982010-01-31 Kenichi Handa <handa@m17n.org>
699
700 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 701 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 702
c67d885b
CY
7032010-01-31 Chong Yidong <cyd@stupidchicken.com>
704
705 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
706 <deactivated@gmail.com> (Bug#3605).
707
8fab2362
CY
7082010-01-31 David De La Harpe Golden <david@harpegolden.net>
709
710 * fileio.c (Frename_file): Correctly rename symlinks to
711 directories (Bug#5496).
712
cb2a62f2
CY
7132010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
714
715 * nsterm.m (ns_ring_bell): Handle visible bell like X.
716
944c7a26
AS
7172010-01-30 Andreas Schwab <schwab@linux-m68k.org>
718
719 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
720
c024ac08
CY
7212010-01-29 Chong Yidong <cyd@stupidchicken.com>
722
723 * frame.c (DEFAULT_ROWS): Change default to 35.
724
725 * xfns.c (x_default_font_parameter): Change default XFT font to
726 monospace-10 (Bug#3643).
727
af93af83
EZ
7282010-01-29 Eli Zaretskii <eliz@gnu.org>
729
730 * w32inevt.c (key_event): Remove unnecessary comparison of
731 event->uChar.AsciiChar with 128.
732
ca0eb708
CY
7332010-01-28 Chong Yidong <cyd@stupidchicken.com>
734
b242dbfc
CY
735 * fileio.c (Frename_file): Fix last change (Bug#5487).
736
ca0eb708
CY
737 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
738
739 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
740
45d45af5
JD
7412010-01-28 Jan Djärv <jan.h.d@swipnet.se>
742
743 * xfns.c (Fx_create_frame): Remove window size matching code from
744 2010-01-15.
a73f9c9d 745 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 746
7e233730
JR
7472010-01-27 Jason Rumney <jasonr@gnu.org>
748
749 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 750 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 751
86e893e3
KH
7522010-01-27 Kenichi Handa <handa@m17n.org>
753
754 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 755 pattern string (Bug#4209).
86e893e3 756
8719abec
CY
7572010-01-27 David De La Harpe Golden <david@harpegolden.net>
758
759 * fileio.c (Frename_file): Call copy-directory and
760 delete-directory for directories, in order to handle cross-device
761 renaming (Bug#3353).
762
844794c8
JD
7632010-01-25 Jan Djärv <jan.h.d@swipnet.se>
764
aa3e13b5 765 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 766 sizes 24 and 10. Bug #3643.
844794c8 767
bd4b5750
SM
7682010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
769
8dc1adf6 770 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
771 * keymap.c (shadow_lookup): Add `remap' arg.
772 (describe_map, describe_vector): Update calls to shadow_lookup.
773 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
774 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
775 perform remapping during shadow_lookup check of remapped_sequences.
776
285d07e2
CY
7772010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
778
779 * image.c (png_load): Use png_sig_cmp instead of the obsolete
780 png_check_sig, which has been removed in libpng 1.4.
781
c6d09b8d
CY
7822010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
783
784 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
785 lacks this header file).
786
3d782998
YM
7872010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
788
789 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
790 as in Emacs 22.
791
2aff7c53
YM
7922010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
793
794 * lisp.h (make_pure_string): String pointer arg now points to const.
795
796 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
797 args now point to const.
798
74327f7a
EZ
7992010-01-22 Eli Zaretskii <eliz@gnu.org>
800
801 * lread.c (Fload): Don't treat files without .elc extension as
802 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
803 them. (bug#5303)
804
4d1e6632
KH
8052010-01-20 Kenichi Handa <handa@m17n.org>
806
807 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
808 treat the source as actual byte sequence.
809
1fdede8f
AM
8102010-01-19 Alan Mackenzie <acm@muc.de>
811
812 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 813 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
814 `signal_after_change_p' to `coherent_change_p', and make the
815 invocation of `modify_region' conditional on it.
816
67477f30
JD
8172010-01-19 Jan Djärv <jan.h.d@swipnet.se>
818
819 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
820 for debug purpose.
821 (syms_of_xsettings): Declare xft-settings.
822
244b023e
CY
8232010-01-18 Chong Yidong <cyd@stupidchicken.com>
824
825 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
826
617364fe
CY
8272010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
828
829 * xterm.c (event_handler_gdk): Block input (Bug#5037).
830
4fe22cdf
CY
8312010-01-16 Chong Yidong <cyd@stupidchicken.com>
832
833 * emacs.c (standard_args): Adjust arg priorities to reflect how
834 they are processed in startup.el.
835
e118d2be
AS
8362010-01-16 Andreas Schwab <schwab@linux-m68k.org>
837
838 * Makefile.in (lisp, shortlisp): Update.
839
523ae620
SM
8402010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
841
842 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
843 code, link the new kboard into all_kboard before running Lisp code,
844 and protect the new terminal with GCPRO (Bug#5365).
845 (x_term_init): Remove unused var `atom'.
846 (x_delete_display, x_delete_terminal): Remove unused var `i'.
847
f0d13888
JD
8482010-01-15 Jan Djärv <jan.h.d@swipnet.se>
849
850 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
851 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
852 to find out usable size of the desktop. Don't make frames larger than
ac146f82 853 this. Bug #3643.
f0d13888 854
cc320f07
KH
8552010-01-15 Kenichi Handa <handa@m17n.org>
856
857 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
858
7ffdf101
CY
8592010-01-15 Chong Yidong <cyd@stupidchicken.com>
860
861 * nsterm.m (Qnone): Define.
862
863 * nsfns.m (Qnone): Move definition to nsterm.m.
864
d12bd917
KH
8652010-01-14 Kenichi Handa <handa@m17n.org>
866
867 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
868 systems.
869
d9a7c140
KH
8702010-01-14 Kenichi Handa <handa@m17n.org>
871
872 Make auto-composition work on all buffers even if they are
873 fundamental mode.
874
875 * composite.c (Vauto_composition_mode): New variable.
876 (composition_compute_stop_pos): Check Vauto_composition_mode
877 instead of Vauto_composition_function.
878 (composition_adjust_point, Ffind_composition_internal): Likewise.
879 (syms_of_composite): Declare Lisp variable
880 "auto-composition-mode" here.
881
63286bb2
CY
8822010-01-13 Chong Yidong <cyd@stupidchicken.com>
883
884 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
885 during call to vendor-specific-keysyms (Bug#5365).
886
c2623ee7
YM
8872010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
888
889 * keyboard.c (input_available_signal) [SYNC_INPUT]:
890 Call SIGNAL_THREAD_CHECK (Bug#5333).
891
892 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
893 Call SIGNAL_THREAD_CHECK.
894
0b5397c2
SM
8952010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 Try to fix bug#5314. This is probably not the final word, tho.
898 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
899 recent-auto-save-p as a side-effect.
900 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
901 * buffer.c (Fkill_buffer, reset_buffer):
902 * editfns.c (Fsubst_char_in_region):
903 * fileio.c (Finsert_file_contents, Fdo_auto_save)
904 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
905
dc954cb2
KH
9062010-01-13 Kenichi Handa <handa@m17n.org>
907
908 Display buffer name, etc. in mode line by composing correctly.
909
910 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
911 STRING is not nil.
0b5397c2 912 (display_mode_element): Adjust for the change of
dc954cb2
KH
913 decode_mode_spec and display_line.
914 (decode_mode_spec): Change arg MULTIBYTE to STRING.
915 (display_string): Handle the case that STRING is non-null and
916 LISP_STRING is not nil.
917
0b5397c2
SM
918 * xterm.c (x_draw_composite_glyph_string_foreground):
919 Pay attention to s->face->overstrike.
dc954cb2
KH
920
921 * composite.c (composition_reseat_it): Don't check PT if STRING is
922 non nil.
923
4a00eaca
YM
9242010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
925
926 * keyboard.c (read_char): Don't apply previous change when current
927 buffer is unchanged by command execution.
928
60abb287
JD
9292010-01-12 Jan Djärv <jan.h.d@swipnet.se>
930
931 * keyboard.c (read_char): Return after executing from special map.
932
893db5bc
GM
9332010-01-12 Glenn Morris <rgm@gnu.org>
934
935 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
936 bug-gnu-emacs rather than emacs-pretest-bug.
937
4d03ece0
CY
9382010-01-11 Chong Yidong <cyd@stupidchicken.com>
939
940 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
941 initializing the Lisp variables that depend on them.
942
1df47e38
YM
9432010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
944
945 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
946 Clear areas that will not be updated after change of menu bar lines.
947 Clear the menu bar window's current matrix when the window gets empty.
948
2f1c6384
CY
9492010-01-09 Chong Yidong <cyd@stupidchicken.com>
950
e398c61c
CY
951 * intervals.h, textprop.c (extend_property_ranges): Return value
952 and args changed. Discard properties that begin at or after the
953 new end (Bug#5306).
954
955 * editfns.c (Fformat): Caller changed.
956
e5a29a10
CY
957 * nsterm.m (ns_set_default_prefs): Delete function.
958 (syms_of_nsterm): Initialize ns_command_modifier,
959 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
960 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
961
2f1c6384
CY
962 * xdisp.c (pos_visible_p): Check for invisible text at the correct
963 position (Bug#4040).
964
d427a9fa
EZ
9652010-01-09 Eli Zaretskii <eliz@gnu.org>
966
967 * editfns.c (Ffloat_time): Doc fix.
968
21b9df2f
JD
9692010-01-09 Jan Djärv <jan.h.d@swipnet.se>
970
971 * xfns.c (Fx_create_frame): Don't create frame larger than display
972 by default bug#3643.
973
4b00d3b1
YM
9742010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
975
976 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
977 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
978 windows above internal border.
979
980 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
981 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
982 windows above internal border.
983
984 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
985 tool bar windows specially.
986
987 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
988
989 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
990 specially.
991 (XTflash): Take account of menu bar height.
992
993 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
994 specially.
995
5075d853
JD
9962010-01-08 Jan Djärv <jan.h.d@swipnet.se>
997
ac146f82 998 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
999 also be true before we can return early (bug #5339).
1000
474217c8
CY
10012010-01-06 David Reitter <david.reitter@gmail.com>
1002
1003 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1004 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1005 (Bug#3233).
1006
c0e6d47d
JD
10072010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1008
d0cf45b7
JD
1009 * font.c (font_open_entity): Enable chache and call cached_font_ok
1010 for the driver if defined.
1011 (QCuser_spec): New symbol.
1012 (font_spec_from_name): Save name as user-spec.
1013 (font_load_for_lface): Keep user-spec instead of name.
1014 (font_open_by_name): Save name as user-spec.
1015 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1016 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1017
1018 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1019 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1020 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1021
1022 * font.h (struct font_driver): Add cached_font_ok.
1023
c0e6d47d
JD
1024 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1025
7c583cd8
JD
10262010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1027
1028 * xterm.c (x_new_font): Move code for setting rows/cols before
1029 resizing ...
ac146f82 1030 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1031
1032 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1033 (xg_frame_resized, xg_frame_set_char_size):
1034 Call xg_clear_under_internal_border.
7c583cd8 1035 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1036
03f77f0a
CY
10372010-01-05 Chong Yidong <cyd@stupidchicken.com>
1038
1039 * keyboard.c (read_key_sequence): Catch keyboard switch after
1040 making a new tty frame (Bug#5095).
1041
2a1ef5be
KH
10422010-01-05 Kenichi Handa <handa@m17n.org>
1043
1044 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1045
e3eb1dae
SM
10462010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1047
1048 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1049 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1050 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1051
777013f2
MA
10522010-01-03 Michael Albinus <michael.albinus@gmx.de>
1053
1054 * dbusbind.c (xd_add_watch): Improve debug message.
1055 (xd_remove_watch): Improve debug message. If DATA is the session
1056 bus, unset D-Bus session environment.
1057 (Fdbus_init_bus): Pass the bus as argument to
1058 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1059
8932b1c2
CY
10602010-01-01 Chong Yidong <cyd@stupidchicken.com>
1061
87231e2c
CY
1062 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1063
4801c5fa
CY
1064 * lread.c (syms_of_lread): Make it clearer that these are the
1065 names of loaded files (Bug#5068).
1066
8932b1c2
CY
1067 * eval.c (run_hook_with_args): Handle the case where the global
1068 value has the obsolete single-function form (Bug#5026).
1069
11e3c684
CY
10702009-12-27 Chong Yidong <cyd@stupidchicken.com>
1071
1072 * minibuf.c (Fall_completions): Minor optimization.
1073
5b28ce35
EZ
10742009-12-26 Eli Zaretskii <eliz@gnu.org>
1075
5ce6e4f4
JB
1076 * .gdbinit (pgx): Fix display of composite glyphs.
1077 Display cmp.from and cmp.to as well.
1078 (pitx): Fix last change.
5b28ce35 1079
bcffff46
KH
10802009-12-25 Kenichi Handa <handa@m17n.org>
1081
1082 * composite.h (composition_adjust_point): Update prototype.
1083
1084 * composite.c (composition_reseat_it): Don't make a composition
1085 spanning over point.
1086 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1087 composable characters.
1088 (composition_adjust_point): New arg NEW_PT. Callers changed.
1089
1090 * keyboard.c (command_loop_1): Force redisplay if the last point
1091 was within a composition.
1092 (adjust_point_for_property): Don't adjust point for automatic
1093 composition when called after buffer modification.
1094
3f670e9a
EZ
10952009-12-19 Eli Zaretskii <eliz@gnu.org>
1096
5ce6e4f4
JB
1097 * .gdbinit (pitx): Don't use enum names, use their values.
1098 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1099 (pgx): Don't use enum names, use their values.
1100 (pitmethod): New helper command.
1101 (pitx): Use it to display iteration method.
1102 (pgrowit): New command.
1103
ad903955
EZ
1104 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1105
3f670e9a
EZ
1106 Update dependencies in Makefile.in.
1107
1108 * Makefile.in (alloc.o): Depend on termhooks.h.
1109 (atimer.o): Depend on blockinput.h.
1110 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1111 and frame.h.
1112 (callint.o): Depend on systime.h, coding.h, and composite.h.
1113 (callproc.o): Depend on buffer.h.
1114 (casefiddle.o): Don't depend on charset.h.
1115 (casetab.o): Depend on character.h.
1116 (ccl.o): Depend on composite.h.
1117 (chartab.o): Depend on ccl.h.
1118 (cm.o): Depend on dispextern.h.
1119 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1120 (coding.o): Don't depend on $(INTERVALS_H).
1121 (composite.o): Don't depend on dispextern.h explicitly (it's in
1122 $(INTERVALS_H)). Depend on ccl.h.
1123 (data.o): Depend on systime.h, coding.h, composite.h,
1124 dispextern.h, font.h, and ccl.h.
1125 (dired.o): Depend on composite.h.
1126 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1127 composite.h (it's in $(INTERVALS_H)).
1128 (doc.o): Depend on systime.h, coding.h, and composite.h.
1129 (editfns.o): Don't depend explicitly on dispextern.h.
1130 (emacs.o): Depend on frame.h and coding.h.
1131 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1132 (fileio.o): Depend on frame.h and commands.h. Don't depend
1133 explicitly on dispextern.h.
1134 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1135 composite.h.
1136 (fns.o): Don't depend on termhooks.h.
1137 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1138 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1139 coding.h, $(INTERVALS_H), window.h, xterm.h.
1140 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1141 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1142 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1143 fontset.h, ccl.h, and ftfont.h.
1144 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1145 (gtkutil.o): Depend on dispextern.h and composite.h.
1146 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1147 termhooks.h, and ccl.h.
1148 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1149 (intervals.o): Depend on systime.h and coding.h.
1150 (keyboard.o): Depend on composite.h and coding.h.
1151 (keymap.o): Depend on coding.h and frame.h.
1152 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1153 (macros.o): Depend on systime.h, coding.h, and composite.h.
1154 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1155 and atimer.h.
1156 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1157 dispextern.h explicitly.
0b5397c2
SM
1158 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1159 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1160 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1161 (regex.o): Don't depend on charset.h.
1162 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1163 (search.o): Don't depend explicitly on composite.h.
1164 (sound.o): Depend on atimer.h and systime.h.
1165 (syntax.o): Don't depend explicitly on composite.h.
1166 (sysdep.o): Depend on coding.h and composite.h.
1167 (term.o): Depend on xterm.h and buffer.h.
1168 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1169 (textprop.o): Don't depend on dispextern.h explicitly.
1170 (undo.o): Depend on dispextern.h.
1171 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1172 dispextern.h and composite.h explicitly.
1173 (xdisp.o): Depend on ccl.h.
1174 (xfaces.o): Depend on coding.h and ccl.h.
1175 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1176 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1177 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1178 ftfont.h.
1179 (xgselect.o): New dependency.
1180 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1181 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1182 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1183 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1184 (xsmfns.o): Depend on frame.h and dispextern.h.
1185 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1186 sysselect.h.
1187
7a6f7fea
AS
11882009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1189
1190 * font.c (Fclear_font_cache): Pass correct cache argument to
1191 font_clear_cache.
1192
f4c21026
AS
11932009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1194
1195 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1196 twice.
1197
f7ab0997
CY
11982009-12-15 Chong Yidong <cyd@stupidchicken.com>
1199
1200 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1201 calling file-remote-p. Reported by Jim Meyering.
1202
fa8e045a
MA
12032009-12-15 Michael Albinus <michael.albinus@gmx.de>
1204
1205 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1206 avoid compiler warnings. (Bug #5217)
fa8e045a 1207
a63dba42
KH
12082009-12-14 Kenichi Handa <handa@m17n.org>
1209
1210 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1211 in 8-bit encoding.
1212
5ce6e4f4 12132009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1214
1215 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1216 tooltip windows.
1217
223e5fc6
JD
12182009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1219
36acb2a7
JD
1220 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1221 Xatom_net_window_type.
1222
1223 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1224 Xatom_net_window_type.
1225
b8f00677
JD
1226 * xterm.c (my_log_handler): New function.
1227 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1228 so we can filter out buggy messages. (Bug #5120).
b8f00677 1229
e5f0bc9a
JD
1230 * xterm.c (xg_scroll_callback): Parameter list changed,
1231 use parameter GtkScrollType to determine scroll/line/page.
1232 Only allow dragging if a button < 4 is grabbed (bug #5177).
1233 (xg_end_scroll_callback): New function.
1234 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1235 xg_create_scroll_bar.
1236
1237 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1238 (scroll_end_callback): Remove.
1239 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1240 button-release-event. Replace value-changed event with change-value,
1241 bug #5177,
1242 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1243 bug #5177.
1244
1245 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1246 (xg_create_scroll_bar): Add GCallback end_callback.
1247
223e5fc6
JD
1248 * xftfont.c (QClcdfilter): New variable.
1249 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1250 (syms_of_xftfont): Initialize QClcdfilter.
1251
3c055b77
JD
12522009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1253
1254 * xsettings.c (struct xsettings): Add member seen.
1255 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1256 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1257 (apply_xft_settings): Only update Xft settings with what member seen
1258 indicates as new.
1259
05fe33ff
EZ
12602009-12-12 Eli Zaretskii <eliz@gnu.org>
1261
1262 * dispextern.h (struct text_pos): Use EMACS_INT;
1263 (struct glyph): Use EMACS_INT for charpos.
1264 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1265 region_beg_charpos, region_end_charpos,
1266 redisplay_end_trigger_charpos, and also for
1267 iterator_stack_entry.end_charpos and
1268 iterator_stack_entry.stop_charpos.
1269
e8d7886a
JD
12702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1271
5ce6e4f4 1272 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1273 (xg_create_scroll_bar): Call scroll_end_callback on button release
1274 event (bug #5177).
1275 (xg_event_is_for_scrollbar): != replaced with ==.
1276
d0db2ec8
KH
12772009-12-12 Kenichi Handa <handa@m17n.org>
1278
1279 * ftfont.c (struct ftfont_info): New member matrix.
1280 (ftfont_open): Setup xftfont_info->matrix.
1281 (MFLTFontFT): New member matrix.
1282 (FLOOR, CEIL, ROUND): New macros.
1283 (ftfont_get_metrics): Handle matrix transformation.
1284 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1285
1286 * xftfont.c (struct xftfont_info): New member matrix.
1287 (xftfont_open): Setup xftfont_info->matrix.
1288
12892009-12-10 Kenichi Handa <handa@m17n.org>
1290
1291 * xdisp.c (append_space_for_newline): Consider face-remapping.
1292
2cc7b62f
AS
12932009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1294
b87dd913
AS
1295 * xsettings.c: Include "keyboard.h".
1296
eba5eb94
AS
1297 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1298
2cc7b62f
AS
1299 Fix implicit function declarations.
1300 * cmds.c: Include "frame.h".
1301 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1302 * frame.h: Move declaration of delete_frame outside of
1303 HAVE_WINDOW_SYSTEM.
1304
a4ef73c8
CY
13052009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1306
1307 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1308
1309 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1310 GTK builds.
1311
944a300c
AS
13122009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1313
1314 * unexelf.c (unexec): Don't search for .data twice.
1315
022eef62
CY
13162009-12-05 Chong Yidong <cyd@stupidchicken.com>
1317
426ac949
CY
1318 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1319 if push failed.
1320 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1321 of push_display_prop (Bug#5000).
1322
022eef62
CY
1323 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1324 value of font_list_entities (Bug#5085).
1325
be95bee9
JB
13262009-12-04 Juanma Barranquero <lekktu@gmail.com>
1327
1328 Fix `string-to-number' to deal consistently with integers and floats.
1329 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1330 trailing characters, not just whitespace.
1331 (read1): Pass new arg 0 to keep old behavior.
1332 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1333 trailing chars, as it is already done for integers. Doc fixes.
1334 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1335
24c2d7ce
EZ
13362009-12-04 Eli Zaretskii <eliz@gnu.org>
1337
0b5397c2
SM
1338 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1339 Delete unused enumeration value.
24c2d7ce 1340
7e694795
EZ
13412009-12-03 Eli Zaretskii <eliz@gnu.org>
1342
1343 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1344
84b31826
SM
13452009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1346
1347 * process.c (Fmake_network_process): Fix up the tests for
1348 "connectionless socket", so they DTRT for seqpacket sockets as well.
1349
f00c449b
SM
13502009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1351
1352 * process.c (Qseqpacket): New symbol.
1353 (HAVE_SEQPACKET): New macro.
1354 (Fmake_network_process): Accept new :type `seqpacket'.
1355 (init_process): Add `seqpacket' feature when applicable.
1356 (syms_of_process): Initialize Qseqpacket.
1357
8096a0ff
YM
13582009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1359
1360 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1361 if entity is Qnil.
1362
3e0de07f
SM
13632009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1364
1365 * print.c (print_preprocess): Preprocess the key_and_value table of
1366 hashtables, even tho they're "hidden" (bug#5082).
1367
abeafb2a
JD
13682009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1369
1370 * frame.c (frame_make_pointer_invisible)
1371 (frame_make_pointer_visible): Declare f before statements.
1372
4bf47195
EZ
13732009-11-28 Eli Zaretskii <eliz@gnu.org>
1374
1375 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1376 omitted dependencies on lisp.h.
1377
c525b3f2
JD
13782009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1379
ece2d4ed
JD
1380 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1381 is NULL.
1382
1383 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1384
1385 * frame.c (frame_make_pointer_invisible)
3e0de07f 1386 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1387 frame.
1388
c525b3f2
JD
1389 * search.c (simple_search): Remove warning by making *p const.
1390
2f00e299
DN
13912009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1392
1393 * xdisp.c (power_letter): Remove duplicate const.
1394
084b049b
JD
13952009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1396
a1fadc6f
JD
1397 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1398
5ce6e4f4 1399 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1400 defaults (bug #5025).
1401
28259cac
SM
14022009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * insdel.c (adjust_markers_for_delete): Move it in the
1405 right direction! (bug#4803)
1406
e8e14166
YM
14072009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1408
1409 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1410
1411 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1412
86677b58
GM
14132009-11-24 Glenn Morris <rgm@gnu.org>
1414
1415 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1416
581e51e8
JD
14172009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1418
cfc86c7a
JD
1419 * Makefile.in: Must create deps for ecrt0.o in its rule.
1420
581e51e8
JD
1421 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1422 because that is what Gtk+ font dialog understands.
1423
1424 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1425 of Fcopy_sequence.
1426 (font_open_by_name): Put name given into QCname for font-object returned.
1427
1428 * frame.c (x_set_font): Save original font name as frame parameter
1429 font-parameter.
1430
1431 * xsettings.c (set_default_xft_settings): New function.
1432 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1433 is found.
1434
8b264ecb
AS
14352009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1436
1437 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1438 searching backwards through multibyte buffer.
1439
872870b2
JD
14402009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1441
1442 * xterm.c: #include xgselect.h.
1443 (x_initialize): Call xgselect_initialize.
1444
1445 * xsettings.c (something_changedCB): C++ comments => C comments.
1446 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1447 does that now.
1448
1449 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1450 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1451 (scroll_bar_button_cb): Remove.
5ce6e4f4 1452 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1453 event.
1454 (xg_create_scroll_bar): Don't bind button-press-event and
1455 button-release-event.
1456
1457 * process.c: Include xgselect.h if defined (USE_GTK) ||
1458 defined (HAVE_GCONF).
1459 (wait_reading_process_output): Call xg_select for the same condition.
1460
1461 * xgselect.c (xg_select): New function to better integrate with
1462 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1463
1464 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1465
1466 * Makefile.in (XOBJ): Add xgselect.o.
1467
62a6e103
AS
14682009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1469
0b5397c2
SM
1470 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1471 Remove ignored second argument. All callers changed.
62a6e103
AS
1472 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1473 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1474 * xdisp.c (string_char_and_length): Likewise.
1475
b0ca0f33
DN
14762009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1477
1478 * xterm.c (x_new_font):
1479 * print.c (print_object):
1480 * cmds.c (Fself_insert_command): Move declarations before statements.
1481
dd5a6279
CY
14822009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1483
1484 * s/cygwin.h: Remove unneeded linker flags.
1485
4a8e097d
JD
14862009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1487
0d1d0d26
JD
1488 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1489
1490 * xsettings.h: Declare xsettings_get_system_font.
1491
1492 * xsettings.c (xsettings_get_system_font): New function.
1493 (init_gconf): No use initiating gconf unless we have Xft also.
1494 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1495 HAVE_GCONF.
1496
4a8e097d
JD
1497 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1498 add a blank entry so it doesn't collapse into nothing.
1499
8ab1650e
SM
15002009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1501
1502 * lread.c (Funintern): Comment out last change.
1503
82c602f0
RS
15042009-11-19 Richard Stallman <rms@gnu.org>
1505
1506 * lread.c (Funintern): Error if symbol is t or nil.
1507
87e32266
SM
15082009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1509
1510 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1511 representation of Lisp integers.
1512 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1513
1b9ac145
AS
15142009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1515
1516 * lisp.h: Remove declaration of Ffont_get_system_font.
1517 * xfns.c: Move include of "xsettings.h".
1518 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1519
dfb3c4c6
JD
15202009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1521
87e32266
SM
1522 * xsettings.c (something_changedCB, Ffont_get_system_font):
1523 Check use_system_font.
dfb3c4c6
JD
1524 (syms_of_xsettings): DEFVAR font-use-system-font.
1525
9370c1d8
AS
15262009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1527
25fe851a
AS
1528 * xfns.c (x_default_font_parameter): Remove dead assignment.
1529
9370c1d8
AS
1530 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1531
637fa988
JD
15322009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1533
87e32266 1534 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1535 not have FC_LCD_*. #define them if not there.
a6eb20d8 1536
87e32266 1537 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1538
637fa988
JD
1539 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1540
1541 * xterm.c (handle_one_xevent): Call xft_settings_event for
1542 ClientMessage, PropertyNotify and DestroyNotify.
1543 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1544 Call xsettings_initialize.
1545
1546 * xftfont.c (xftfont_fix_match): New function.
1547 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1548 Call xftfont_fix_match after XftFontMatch.
1549
1550 * xfont.c (xfont_driver): Initialize all members.
1551
87e32266
SM
1552 * xfns.c (x_default_font_parameter):
1553 Try font from Ffont_get_system_font.
637fa988
JD
1554 Do not get font from x_default_parameter if we got one from
1555 Ffont_get_system_font.
87e32266 1556 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1557
1558 * w32font.c (w32font_driver): Initialize all members.
1559
1560 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1561
1562 * lisp.h: Declare syms_of_xsettings.
1563
87e32266
SM
1564 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1565 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1566
1567 * ftfont.c (ftfont_filter_properties): New function.
1568
1569 * frame.c (x_set_font): Remove unused variable lval.
1570
87e32266 1571 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1572
1573 * font.c (font_put_extra): Don't return if val is nil, it means
1574 boolean option is off.
1575 (font_parse_fcname): Collect all extra properties in extra_props
1576 and call filter_properties for all drivers with extra_props and
1577 font as parameter.
87e32266
SM
1578 (font_open_entity): Do not use cache, it does not pick up new
1579 fontconfig settings like hinting.
637fa988
JD
1580 (font_load_for_lface): If spec had a name in it, store it in entity.
1581
a73f9c9d 1582 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1583
1584 * config.in: HAVE_GCONF is new.
1585
1586 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1587 xsettings.o is new.
1588
5a942932
KH
15892009-11-17 Kenichi Handa <handa@m17n.org>
1590
1591 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1592 back to the default font in case that no suitable font is found.
1593
b7c7a4d1
SM
15942009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1595
1596 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1597 Suggested by Chad Brown <yandros@mit.edu>.
1598 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1599
072f1e39
JD
16002009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1601
1602 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1603
5d1e70a2
AS
16042009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1605
87e32266 1606 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1607
a53cfbe5
JD
16082009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1609
473a99b7
JD
1610 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1611 has a parent.
1612
a53cfbe5 1613 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1614 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1615
1616 * config.in: Generated (AUTO_DEPEND).
1617
f04bb9b2
MA
16182009-11-13 Michael Albinus <michael.albinus@gmx.de>
1619
b7c7a4d1 1620 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1621 Vdbus_registered_functions_table, because it contains also
1622 properties. Fix docstring.
b7c7a4d1 1623 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1624
8f11f7ec
SM
16252009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1626
1627 * alloc.c (mark_object): Don't reprocess marked strings.
1628 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1629 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1630
8a605fe8
KH
16312009-11-13 Kenichi Handa <handa@m17n.org>
1632
8f11f7ec 1633 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1634 semantics of Vword_combining_categories.
1635 (Vword_combining_categories): Describe the slight change of the
1636 semantics.
1637
241c4680
EZ
16382009-11-13 Eli Zaretskii <eliz@gnu.org>
1639
1640 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1641
1642 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1643
5d58e44c
SM
16442009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1645
1646 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1647
5e13f9d3
JB
16482009-11-12 Juanma Barranquero <lekktu@gmail.com>
1649
1650 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1651
cf54c754
DR
16522009-11-11 David Reitter <david.reitter@gmail.com>
1653
1654 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1655 variables to fix 2009-11-09 change.
1656
a4ada374
DN
16572009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1658
91433552
DN
1659 * process.c (ifflag_def): Make flag_sym constant.
1660 (Fnetwork_interface_info): Use a constant pointer.
1661 (ifflag_table):
1662 * xfns.c (cursor_bits):
1663 * xdisp.c (power_letter):
1664 * termcap.c (speeds, esctab):
1665 * sysdep.c (baud_convert):
1666 * keyboard.c (lispy_accent_codes, modifier_names):
1667 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1668 (jpeg_format, tiff_format, gif_format, svg_format)
1669 (interlace_start, interlace_increment, gs_format):
1670 * gtkutil.c (separator_names):
1671 * fringe.c (swap_nibble):
1672 * fns.c (base64_value_to_char, base64_char_to_value):
1673 * fileio.c (make_temp_name_tbl):
1674 * coding.c (suffixes): Make constant.
1675
f4265f6c
DN
1676 * frame.c (make_initial_frame):
1677 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1678 build_string.
1679 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1680
04420943
DN
1681 * s/freebsd.h:
1682 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1683
0a5d24ae
DN
1684 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1685 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1686
a4ada374
DN
1687 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1688 * xterm.c (syms_of_xterm):
1689 * xfaces.c (syms_of_xfaces):
1690 * xdisp.c (syms_of_xdisp):
1691 * lread.c (syms_of_lread):
1692 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1693 build_string.
91433552 1694
a4ada374
DN
1695 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1696
af98fc7f
SM
16972009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1698
8ab1650e 1699 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1700
e90292a9
JD
17012009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1702
1703 * keyboard.h: Declare timer_check.
1704
1705 * keyboard.c (timer_check_2): New function that does what the old
1706 timer_check did.
1707 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1708 returned, i.e. don't return -1 with timers pending.
1709
1710 * process.c: Remove extern declaration of timer_check.
1711
1712 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1713 even if timer_check returned -1.
1714
af98fc7f
SM
1715 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1716 xg_dialog_data.
e90292a9
JD
1717 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1718 the event loop.
1719 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1720 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1721 Destroy the dialog after xg_dialog_run.
1722
045b83c0
SM
17232009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1724
1725 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1726
1fb99a3a
JD
17272009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1728
1729 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1730
04e452cb
JB
17312009-11-09 Juanma Barranquero <lekktu@gmail.com>
1732
1733 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1734
ef7417fd
SM
17352009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1736
1737 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1738 w32menu.c, and nsmenu.m.
1739 Simplify the obsolete case where position is nil.
1740 (cleanup_popup_menu): New function, moved from nsmenu.m.
1741 (struct skp): Remove slot `notreal'.
1742 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1743 adjust callers.
1744 (single_menu_item): Adjust call to parse_menu_item.
1745 (syms_of_menu): Defsubr x-popup-menu.
1746 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1747 (keymap_panes): Don't export any more.
1748 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1749 (xmenu_show): Declare.
1750 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1751 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1752 * keyboard.h (parse_menu_item): Update declaration.
1753 * xmenu.c (Fx_popup_menu): Remove.
1754 (syms_of_xmenu): Don't defsubr x-popup-menu.
1755 * w32menu.c (Fx_popup_menu): Remove.
1756 (syms_of_w32menu): Don't defsubr x-popup-menu.
1757 * nsmenu.m (cleanup_popup_menu): Remove.
1758 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1759 moved to menu.c's Fx_popup_menu.
1760 (Fx_popup_menu): Remove.
1761 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1762 menu_items (it's done in menu.c already).
1763
424d6179
SM
17642009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1765
1766 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1767 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1768
c0df13a6 17692009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1770
1771 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1772 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1773 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1774 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1775
2de9f71c
SM
17762009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1777
1778 Let integers use up 2 tags to give them one extra bit and thus double
1779 their range.
1780 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1781 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1782 New macros.
1783 (enum Lisp_Type): Use them. Give explicit values.
1784 (Lisp_Type_Limit): Remove.
1785 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1786 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1787 Pay attention to USE_2_TAGS_FOR_INTS.
1788 (INTEGERP): Use LISP_INT_TAG_P.
1789 * fns.c (internal_equal): Simplify the default case.
1790 (sxhash): Use case_Lisp_Int.
1791 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1792 any more.
1793 (Ftype_of): Use case_Lisp_Int.
1794 (store_symval_forwarding): Take into account the fact that Ints can
1795 now have more than one tag.
1796 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1797 buffer_slot_type_mismatch):
1798 * xfaces.c (face_attr_equal_p):
1799 * print.c (print_object):
1800 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1801 Use case_Lisp_Int.
1802
323637a2
EZ
18032009-11-06 Eli Zaretskii <eliz@gnu.org>
1804
7ac65b38
EZ
1805 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1806
323637a2
EZ
1807 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1808 warning.
1809
e511451f
JD
18102009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1811
1812 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1813
1814 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1815
1816 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1817 ButtonPressRelease and MotionNotify (bug#4870).
1818
5e2327cf
DN
18192009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1820
5adc433e
DN
1821 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1822
d67b4f80
DN
1823 * xterm.c (syms_of_xterm):
1824 * xselect.c (syms_of_xselect):
1825 * xmenu.c (syms_of_xmenu):
1826 * xfns.c (syms_of_xfns):
1827 * xfaces.c (syms_of_xfaces):
1828 * xdisp.c (syms_of_xdisp):
1829 * window.c (syms_of_window):
1830 * w32fns.c (syms_of_w32fns):
1831 * undo.c (syms_of_undo):
1832 * textprop.c (syms_of_textprop):
1833 * terminal.c (syms_of_terminal):
1834 * syntax.c (syms_of_syntax):
1835 * sound.c (syms_of_sound):
1836 * search.c (syms_of_search):
1837 * print.c (syms_of_print):
1838 * minibuf.c (syms_of_minibuf):
1839 * macros.c (syms_of_macros):
1840 * keymap.c (syms_of_keymap, initial_define_key)
1841 (initial_define_lispy_key):
1842 * keyboard.c (syms_of_keyboard):
1843 * insdel.c (syms_of_insdel):
1844 * image.c (syms_of_image):
1845 * fringe.c (syms_of_fringe):
1846 * frame.c (syms_of_frame):
1847 * fontset.c (syms_of_fontset):
1848 * fns.c (syms_of_fns):
1849 * fns.c (syms_of_fns):
1850 * fileio.c (syms_of_fileio):
1851 * fileio.c (syms_of_fileio):
1852 * eval.c (syms_of_eval):
1853 * doc.c (syms_of_doc):
1854 * dispnew.c (syms_of_display):
1855 * dired.c (syms_of_dired):
1856 * dbusbind.c (syms_of_dbusbind):
1857 * data.c (syms_of_data):
1858 * composite.c (syms_of_composite):
1859 * coding.c (syms_of_coding):
1860 * cmds.c (syms_of_cmds):
1861 * charset.c (define_charset_internal, syms_of_character):
1862 * ccl.c (syms_of_ccl):
1863 * category.c (syms_of_category, init_category_once):
1864 * casetab.c (syms_of_casetab):
1865 * casefiddle.c (syms_of_casefiddle):
1866 * callint.c (syms_of_callint):
1867 * bytecode.c (syms_of_bytecode):
1868 * buffer.c (keys_of_buffer, syms_of_buffer):
1869 * alloc.c (syms_of_alloc):
1870 * process.c (syms_of_process, init_process):
1871 * lread.c (syms_of_lread, init_obarray):
1872 * font.c (build_style_table):
1873 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1874 intern_c_string, calls to make_pure_string with
1875 make_pure_c_string. Use pure_cons instead of Fcons.
1876
5e2327cf
DN
1877 * process.c (socket_options): Make it const.
1878 (set_socket_option, init_process): Use a const pointer.
1879
1880 * lread.c (intern_c_string): New function.
1881 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1882 (defvar_int): Uset it. Make the name const char*.
1883
1884 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1885 (defvar_int): Update prototypes.
1886 (DEFUN, EXFUN): Support for prototypes is now required.
1887 (intern_c_string): New prototype.
1888 (struct Lisp_Subr): Make symbol_name constant.
1889
1890 * font.c (struct table_entry): Remove unused member. Make NAMES
1891 constant.
1892 (weight_table, slant_table, width_table): Make constant.
1893
1894 * emacs.c (struct standard_args): Make name and longname constant.
1895
1896 * character.h (DEFSYM): Use intern_c_string.
1897
a56eaaef
DN
18982009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1899
1900 * alloc.c (make_pure_c_string): New function.
1901
1902 * eval.c (Fautoload): Purecopy all arguments.
1903
f6a07420
KH
19042009-11-05 Kenichi Handa <handa@m17n.org>
1905
1906 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1907 the buffer in case of replace.
1908
5d28d4b1
DN
19092009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1910
1911 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1912
b349d111
SM
19132009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1914
d528b1ce
SM
1915 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1916 when applicable (bug#4851).
1917
b349d111
SM
1918 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1919 (P_): Support for prototypes is now required.
1920
c38eb027
CY
19212009-10-31 Chong Yidong <cyd@stupidchicken.com>
1922
1923 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1924 (Bug#4827).
1925
0405f8d9
EZ
19262009-10-30 Eli Zaretskii <eliz@gnu.org>
1927
d528b1ce 1928 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1929
ca0a881a
DN
19302009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1931
1932 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1933
d528b1ce
SM
1934 * lread.c (Fload): Purecopy the file name when building
1935 Vpreloaded_file_list.
ca0a881a 1936
47e0e0e4
JR
19372009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1938
1939 * w32fns.c (syms_of_w32fns): Change default value of
1940 w32-scroll-lock-modifier to nil. (Bug#2827)
1941
057bce6f
JB
19422009-10-26 Juanma Barranquero <lekktu@gmail.com>
1943
782a943e 1944 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1945
242bc74c
AS
19462009-10-26 Andreas Schwab <schwab@redhat.com>
1947
1948 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1949
522d013a
JB
19502009-10-26 Juanma Barranquero <lekktu@gmail.com>
1951
1952 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1953 For delta < 0, skip check that only makes sense when the mini-window
1954 is going to be enlarged. (Bug#4534)
1955
18060980
CY
19562009-10-25 Chong Yidong <cyd@stupidchicken.com>
1957
1958 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1959 string in menu maps (Bug#4471).
1960
fec8f0fe
CY
19612009-10-24 Chong Yidong <cyd@stupidchicken.com>
1962
1963 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1964 FRAME_NS_VIEW on terminal frames (Bug#4765).
1965
10d66ec0
AS
19662009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1967
1cae01f7
AS
1968 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1969 DBUS_TYPE_UINTnn separately to get proper sign extension.
1970
58a12889
AS
1971 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1972 can properly handle unsigned types.
d528b1ce 1973 (make_uid, make_gid): Remove.
58a12889 1974
987c9327
AS
1975 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1976 types again.
1977
522d013a 1978 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1979 (system_process_attributes): Likewise.
1980
905a9ed3
DN
19812009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1982
1983 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1984
1985 * eval.c (Fautoload): Purecopy the filename. Simplify.
1986
1987 * category.c (Fdefine_category): Purecopy docstring.
1988
a599b3e8
AS
19892009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1990
7b792fc9
AS
1991 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1992
a599b3e8
AS
1993 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1994
b35ac83e
CY
19952009-10-23 Chong Yidong <cyd@stupidchicken.com>
1996
1997 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1998 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1999 (Bug#4775).
2000
e8903e00
SM
20012009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2002
2003 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2004 (init_fileio_once):
2005 * lisp.h (init_fileio_once): Remove.
2006 * emacs.c (main): Don't call init_fileio_once.
2007
8f43cbf3
DN
20082009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2009
2010 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2011
26898943
AS
20122009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2013
2014 * doprnt.c (doprnt): Fix overflow check.
2015
5c646d5a
JD
20162009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2017
3132a7ea
JD
2018 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2019
5c646d5a
JD
2020 * xterm.h (x_wait_for_event): Declare it.
2021
2022 * xterm.c (pending_event_wait): New variable.
2023 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2024 see pending_event_wait.eventtype.
2025 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2026 (x_new_font): Call change_frame_size with new rows/columns before we
2027 try to resize the frame.
5c646d5a 2028 (x_wait_for_event): New function.
d528b1ce
SM
2029 (x_set_window_size_1): Don't change gravity unless change_gravity
2030 is set.
5c646d5a
JD
2031 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2032 don't change frame size, instead wait for the ConfigureNotify.
2033 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2034 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2035 (x_initialize): Initialize pending_event_wait.
2036
2037 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2038 size.
2039
2040 * widget.c (EmacsFrameSetValues): Add comment.
2041 (EmacsFrameSetCharSize): Just call x_set_window_size.
2042
2043 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2044 x_wait_for_event.
d528b1ce 2045 (flush_and_sync): Remove again.
5c646d5a
JD
2046 (xg_get_font_name): Suggest monospace if no previous font is known.
2047
e9c1637d
SM
20482009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2049
2050 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2051 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2052
5a72cccb
YM
20532009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2054
2055 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2056 processing pending events when event is filtered for input method.
ab04798f 2057 (Bug#3681)
5a72cccb 2058
2629aa37
JB
20592009-10-20 Juanma Barranquero <lekktu@gmail.com>
2060
2061 * fns.c: Add #endif accidentally removed in previous change.
2062
c3417a74
DN
20632009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2064
2065 * fns.c: Remove code for unsupported system: MAC_OS.
2066 * image.c: Likewise. Include setjmp.h.
2067
9685cef2
JD
20682009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2069
2070 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2071 pixel -1 (bug #4742).
2072
d7306fe6
DN
20732009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2074
019d2c4c
DN
2075 * process.c (create_pty): Remove conditionals for no longer
2076 supported systems: UNIPLUS and RTU.
2077
ee6bacd4
DN
2078 * xterm.c:
2079 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2080
d7306fe6
DN
2081 * alloc.c: Do not define struct catchtag.
2082 * eval.c: Move struct catchtag definition ...
2083 * lisp.h: ... here.
2084
2085 * image.c: Move png.h #include earlier to avoid warnings.
2086
2087 * xterm.c:
2088 * xsmfns.c:
2089 * xselect.c:
2090 * xrdb.c:
2091 * xmenu.c:
2092 * xftfont.c:
2093 * xfont.c:
2094 * xfns.c:
2095 * xfaces.c:
2096 * xdisp.c:
2097 * window.c:
2098 * widget.c:
2099 * w32xfns.c:
2100 * w32uniscribe.c:
2101 * w32term.c:
2102 * w32select.c:
2103 * w32reg.c:
2104 * w32proc.c:
2105 * w32menu.c:
2106 * w32inevt.c:
2107 * w32heap.c:
2108 * w32font.c:
2109 * w32fns.c:
2110 * w32console.c:
2111 * w32.c:
2112 * w16select.c:
2113 * vm-limit.c:
2114 * unexsol.c:
2115 * unexec.c:
2116 * unexcw.c:
2117 * unexaix.c:
2118 * undo.c:
2119 * tparam.c:
2120 * textprop.c:
2121 * terminfo.c:
2122 * terminal.c:
2123 * termcap.c:
2124 * term.c:
2125 * syntax.c:
2126 * sound.c:
2127 * sheap.c:
2128 * search.c:
2129 * scroll.c:
2130 * region-cache.c:
2131 * regex.c:
2132 * ralloc.c:
2133 * process.c:
2134 * print.c:
b024548b
DN
2135 * nsterm.m:
2136 * nsselect.m:
2137 * nsmenu.m:
2138 * nsimage.m:
2139 * nsfont.m:
2140 * nsfns.m:
d7306fe6
DN
2141 * msdos.c:
2142 * minibuf.c:
2143 * menu.c:
2144 * marker.c:
2145 * macros.c:
2146 * keymap.c:
2147 * keyboard.c:
2148 * intervals.c:
2149 * insdel.c:
2150 * indent.c:
2151 * gtkutil.c:
2152 * ftxfont.c:
2153 * ftfont.c:
2154 * fringe.c:
2155 * frame.c:
2156 * fontset.c:
2157 * font.c:
2158 * fns.c:
2159 * floatfns.c:
2160 * filelock.c:
2161 * fileio.c:
2162 * emacs.c:
2163 * editfns.c:
2164 * dosfns.c:
2165 * doprnt.c:
2166 * doc.c:
2167 * dispnew.c:
2168 * dired.c:
2169 * dbusbind.c:
2170 * data.c:
2171 * composite.c:
2172 * coding.c:
2173 * cmds.c:
2174 * cm.c:
2175 * chartab.c:
2176 * charset.c:
2177 * character.c:
2178 * ccl.c:
2179 * category.c:
2180 * casetab.c:
2181 * casefiddle.c:
2182 * callproc.c:
2183 * callint.c:
2184 * bytecode.c:
2185 * buffer.c:
2186 * atimer.c: Include setjmp.h. (Bug#4643)
2187
fd5f21e6
SM
21882009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2189
4c0354d7
SM
2190 Remove leftover table unibyte_to_multibyte_table.
2191 * character.c (unibyte_to_multibyte_table): Remove.
2192 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2193 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2194 * character.h (UNIBYTE_TO_CHAR): New macro.
2195 (MAKE_CHAR_MULTIBYTE): Use it.
2196 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2197 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2198 (message_dolog, set_message_1):
2199 * search.c (Freplace_match):
2200 * editfns.c (Fcompare_buffer_substrings):
2201 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2202 (concat):
2203 * insdel.c (copy_text, count_size_as_multibyte):
2204 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2205 * term.c (produce_glyphs):
2206 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2207 * regex.c (RE_CHAR_TO_MULTIBYTE):
2208 * cmds.c (internal_self_insert):
2209 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2210
fd5f21e6
SM
2211 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2212
4418646e
DN
22132009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2214
2215 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2216
35f5c1d2
JB
22172009-10-16 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2220
a0cd8f6b
AR
22212009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2222
2223 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2224 still needed under Tiger.
2225
2226 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2227
2228 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2229 __Apple__.
2230
2231 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2232
01a8d3fa
KH
22332009-10-15 Kenichi Handa <handa@m17n.org>
2234
2235 * print.c (print_object): Escape a symbol like "2E10" too.
2236
bf6c75c9 22372009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2238
2239 Cleanups and changes for 64-bit compile under Snow Leopard.
2240 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2241
2242 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2243
c5959062 2244 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2245 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2246 cast argument.
2247 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2248 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2249
2250 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2251
2252 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2253 where appropriate.
2254
2255 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2256 where appropriate.
6e4780c5
JB
2257 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2258 Use stringWithUTF8String.
bf6c75c9
AR
2259 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2260
6e4780c5
JB
2261 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2262 Add formal protocol mention to inheritance.
bf6c75c9
AR
2263 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2264
6e4780c5
JB
2265 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2266 Fix printf format.
bf6c75c9
AR
2267 (ns_query_color): Use CGFloat where appropriate.
2268 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2269 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2270 argument.
2271
3d87f118
AR
2272 * config.in (NS_HAVE_NSINTEGER): Drop.
2273
a95c8102
AR
2274 * dbusbind.c (dbus-method-return-internal)
2275 (dbus-method-error-internal): Use long format in printf, and cast
2276 argument.
2277
2278 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2279 in printf, and cast argument.
2280
6873acca 2281 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2282 cast argument.
2283
9ec6f100
GM
22842009-10-11 Glenn Morris <rgm@gnu.org>
2285
2286 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2287
5be883cd
JD
22882009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2289
2290 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2291 menu bar with a small width so it doesn't enlarge the frame.
2292
d7a39b51
JB
22932009-10-08 Juanma Barranquero <lekktu@gmail.com>
2294
2295 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2296
0c2b6f8e
GM
22972009-10-06 Glenn Morris <rgm@gnu.org>
2298
2299 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2300 SOME_MACHINE_LISP (this enters indirectly via DOC).
2301
e02131a2
EZ
23022009-10-05 Eli Zaretskii <eliz@gnu.org>
2303
2304 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2305
b4744254
EZ
23062009-10-04 Eli Zaretskii <eliz@gnu.org>
2307
2308 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2309 Doc fix.
2310
dbf64827
JB
23112009-10-03 Martin Rudalics <rudalics@gmx.at>
2312
2313 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2314
e9a0aef8
MA
23152009-10-02 Michael Albinus <michael.albinus@gmx.de>
2316
d528b1ce 2317 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2318 used anymore outside fileio.c.
2319
2320 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2321
64eb2b56
JB
23222009-10-01 Juanma Barranquero <lekktu@gmail.com>
2323
2324 * lisp.h (Qdelete_directory_internal):
2325 Declare, instead of Qdelete_directory.
2326
2327 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2328
9d28c33e
SM
23292009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2330
2331 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2332
9d8f3bd9
MA
23332009-10-01 Michael Albinus <michael.albinus@gmx.de>
2334
9d28c33e 2335 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2336 Fdelete_directory. It is not a command anymore. It has no file
2337 name handler.
2338
9694740b
SM
23392009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2340
2341 * xdisp.c (get_next_display_element): Use an enum in last change.
2342
748e162f
KH
23432009-09-28 Kenichi Handa <handa@m17n.org>
2344
9694740b 2345 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2346 unibyte_display_via_language_environment in handling
2347 Vnobreak_char_display.
2348
17efd58d
AR
23492009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2350
2351 * nsterm.h (ns_app_name): New extern variable.
2352
2353 * nsterm.m (ns_app_name): New variable.
2354 (ns_term_init): Set and use it.
2355 (ns_term_shutdown): Use it.
2356
2357 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2358 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2359
2360 * nsfns.m (ns_set_name_iconic, ns_set_name)
2361 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2362 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2363
9694740b
SM
2364 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2365 Remove double-casting in client_data comparison.
31c2d412 2366
3208cb35
YM
23672009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2368
2369 * keyboard.c (make_lispy_event): Remember last wheel direction.
2370 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2371
b7d552d6
GM
23722009-09-26 Glenn Morris <rgm@gnu.org>
2373
2374 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2375 internal.elc. Add term/pc-win.elc.
2376 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2377 term/x-win.elc.
2378 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2379 term/w32-win.elc.
2380 (NS_SUPPORT): New.
2381 (lisp): Add NS_SUPPORT.
2382 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2383
4ff670a8
DR
23842009-09-25 David Reitter <david.reitter@gmail.com>
2385
2386 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2387 on Mac OS X 10.6+ (bug#4513).
2388
feabfb6c
JB
23892009-09-24 Juanma Barranquero <lekktu@gmail.com>
2390
2391 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2392 some parts of Emacs code (like font selection) don't grok them.
2393 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2394
de59072a
AS
23952009-09-24 Andreas Schwab <schwab@redhat.com>
2396
2397 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2398
a489517b
JB
23992009-09-24 Juanma Barranquero <lekktu@gmail.com>
2400
2401 * dired.c (Fdirectory_files): Fix typo in docstring.
2402
0592970c
AR
24032009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2404
2405 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2406 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2407 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2408 under GNUstep.
2409 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2410
2411 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2412 glyph advancement.
2413
48e8a88b
AR
24142009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2415
2416 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2417 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2418
2419 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2420 deleted (bug #4492).
2421
e14f0a78
AR
2422 * nsfont.m (Vns_reg_to_script): New lisp variable.
2423 (syms_of_nsfont): Declare it.
2424 (ns_registry_to_script): New function.
2425 (ns_get_req_script): Call it.
2426 (ns_findfonts): Don't give up on non-unicode registry.
2427
2428 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2429
5b650faa
SM
24302009-09-20 Tom Tromey <tromey@redhat.com>
2431
2432 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2433 batch mode (bug#4228).
2434
a489517b 24352009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2436
2437 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2438 carefully. (Bug #4339)
0bae4e09 2439
fcfe06f3
CY
24402009-09-18 Chong Yidong <cyd@stupidchicken.com>
2441
d798ba87 2442 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2443
31642728
AR
24442009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2445
2446 * emacs.c (inhibit_x_resources): Update doc string for NS.
2447 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2448 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2449
2450 * nsterm.h (ns_no_defaults): Remove.
2451
2452 * nsterm.m (ns_no_defaults): Remove.
2453 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2454 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2455 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2456 don't update the NSWindow itself.
2457 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2458 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2459
2460 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2461 ns_use_qd_smoothing.
2462
2463 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2464 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2465 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2466 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2467
8686ac71
JB
24682009-09-17 Juanma Barranquero <lekktu@gmail.com>
2469
2470 * emacs.c (inhibit_x_resources): New variable.
2471 (main) [HAVE_NS]: Don't process --quick command line option.
2472 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2473
2474 * lisp.h (inhibit_x_resources): Declare it extern.
2475
2476 * w32reg.c (x_get_string_resource):
2477 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2478
e227ba05
EZ
24792009-09-17 Eli Zaretskii <eliz@gnu.org>
2480
362654a6
JB
2481 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2482 Add lisp/term/internal.elc.
e227ba05 2483
742d40e8
SM
24842009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2485
2486 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2487 (bug#4461).
2488
005bd5a2
DN
24892009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2490
2491 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2492
2493 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2494 (OBJECTS_MACHINE): Remove, unused.
2495
f9af9719
SM
24962009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2497
2498 * frame.c (x_get_resource_string): Remove unused.
2499
0307c7d2
JD
25002009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2501
2502 * xterm.c (x_new_font): Call change_frame_size before calling
2503 x_set_window_size, in case frame size won't change.
2504
2505 * frame.c (x_set_font): Remove dead code.
2506
428b13d6
SM
25072009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2508
2509 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2510
5766c380
SM
25112009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2512
2513 * lread.c (Fload): Don't output a message after loading an obsolete
2514 package any more (done in Lisp now).
2515
2fd0161b
CY
25162009-09-12 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2519
bc5e75b6
SM
25202009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2521
2522 * keymap.c (Fwhere_is_internal): Use nconc2.
2523
c31c985e
AM
25242009-09-11 Alan Mackenzie <acm@muc.de>
2525
2526 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2527 batch mode.
2528
78012bd2
AS
25292009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2530
2531 * xdisp.c (display_mode_element): Detect cycles.
2532
9d889332
SM
25332009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2534
2535 * keymap.c (where_is_internal): Don't erroneously return nil right after
2536 filling the cache.
2537 (where_is_internal_1): Fix up typo.
2538
7ab5d780
GM
25392009-09-11 Glenn Morris <rgm@gnu.org>
2540
2541 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2542 share a common doc-string.
2543
5238a749
SM
25442009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2545
66d77eda
SM
2546 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2547 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2548
5238a749
SM
2549 * keymap.c (QCadvertised_binding): New constant.
2550 (syms_of_keymap): Initialize it.
2551 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2552 if applicable.
2553
19f48442
SM
25542009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2555
50d4ba39
SM
2556 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2557 (parse_menu_item): Streamline since bindings are recomputed all the
2558 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2559 more and don't support lmenu's menu-alias any more either.
2560
a88a5372
SM
2561 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2562 (where_is_internal): Strip it down to only traverse the keymaps.
2563 Move the cache handling from Fwhere_is_internal to here.
2564 (Fwhere_is_internal): Move the handling of remapping and the choice of
2565 the best binding from where_is_internal to here.
2566 Unify the cached/noncached paths, so remapping is also handled
2567 correctly when the cache is used, and so the cache can be used to
2568 speed up remap-handling when applicable.
2569 Give preference to non-remapped bindings.
2570 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2571 non-remapped bindings.
2572 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2573 command remapping.
2574
19f48442
SM
2575 * xdisp.c (display_mode_element): Move list length limit from 50 to
2576 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2577
599498c3 25782009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2579
2580 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2581
f9b7b5ac
SM
25822009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2583
a53af587
JB
2584 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2585 (Bug#4334)
2586
f9b7b5ac
SM
2587 * keymap.c (where_is_internal): Filter out shadowed remappings.
2588 Assume that where_is_internal returns unshadowed bindings to simplify
2589 the code and get rid of the gotos. Use ASIZE.
2590
04f4b72d
JD
25912009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2592
4da146f2
JD
2593 * xterm.c (x_focus_changed): If we get a focusout and pointer
2594 is invisible, make it visible.
2595
04f4b72d
JD
2596 * xterm.h: Remove condition for declaration of
2597 x_*_window_to_frame.
2598
7cef7ce3
SM
25992009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2600
2601 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2602 initial terminal as well.
2603
a54fa5b7
JD
26042009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2605
2606 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2607 x_menubar_window_to_frame.
a54fa5b7
JD
2608
2609 * xterm.c: Remove declarations also in xterm.h
2610 (XTmouse_position): Do not return valid positions
2611 for clicks in the menubar and the toolbar for Gtk+.
2612
2613 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2614 if the widget for the event has the same top level as a frame,
2615 return the frame.
2616 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2617 internal windows, bug #4122.
2618 (x_non_menubar_window_to_frame): Remove.
2619
5a021dd0
GM
26202009-09-02 Glenn Morris <rgm@gnu.org>
2621
2622 * buffer.c (default-major-mode): Move most of the doc from here...
2623 (major-mode): ... to here.
2624
548fe2f3
NR
26252009-08-30 Nick Roberts <nickrob@snap.net.nz>
2626
2627 * process.c (wait_reading_process_output): Keep the descriptor
2628 when pty is used by a non-child process, e.g., in I/O buffer of
2629 GDB this allows inferior to be restarted.
2630
e0840eef
EZ
26312009-08-29 Eli Zaretskii <eliz@gnu.org>
2632
2633 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2634 both branches into one.
2635
82e98df4
SM
26362009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2637
2638 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2639 (main): Use enable-multibyte-characters rather than
2640 default-enable-multibyte-characters. Output a warning message when
2641 running a unibyte session.
2642
890617cb
YM
26432009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2644
2645 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2646 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2647 (copy_data_segment): Also copy __program_vars section.
2648 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2649 (dump_it) [LC_DYLD_INFO]: Use it.
2650
2651 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2652
e7adeadc
EZ
26532009-08-28 Eli Zaretskii <eliz@gnu.org>
2654
2655 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2656 $(SRC)/buildobj.h.
2657 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2658 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2659 $(SRC)/buildobj.h.
2660 (clean): Add buildobj.h.
2661
3ed8bbdc
TZ
26622009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2663
2664 * print.c (print_object): Set escapeflag to 1 when printing
2665 hashtable keys and values.
2666
155a6764
SM
26672009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2668
2669 * lread.c (read_integer): Use doubles (and potentially return a float
2670 number) as we do in string-to-number.
2671 (read1): Use strtol to read integers, signal errors on strtol's
2672 overflow and use floats if strtol's output is too large for
2673 Elisp integers.
2674
877610de
EZ
26752009-08-27 Eli Zaretskii <eliz@gnu.org>
2676
2677 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2678 (make-buildobj-SH): Fix last change.
2679 (SRC): Move to before where it's first used.
2680
ef73e7be
KH
26812009-08-27 Kenichi Handa <handa@m17n.org>
2682
550c8289
KH
2683 * process.c (send_process): Use encode_coding_object instead of
2684 encode_coding_string to perform eol-conversion even if the string
2685 is unibyte.
2686
60afa08d
KH
2687 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2688 character.
2689
ef73e7be 2690 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2691 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2692
7b3a82d7
DN
26932009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2694
5654bf63
DN
2695 * callproc.c (Fcall_process): Remove always true #if.
2696
7b3a82d7
DN
2697 * lisp.h: Replace #if 0 code for checking with text pointing to
2698 the --enable-checking configure flag.
2699
2700 * emacs.c (main): Mention the --enable-profiling configure flag
2701 instead of using CFLAGS.
2702
878bde49
KR
27032009-08-26 Ken Raeburn <raeburn@raeburn.org>
2704
2705 * Makefile.in (buildobj.h): New target.
2706 (doc.o): Depend on it.
2707 (temacs${EXEEXT}): Don't generate buildobj.lst.
2708 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2709 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2710 ($(BLD)/doc.$(O)): Depend on it.
2711 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2712 provided by Eli Zaretskii.)
2713 ($(TEMACS)): Don't generate buildobj.lst.
2714 * doc.c: Include buildobj.h.
2715 (buildobj): New static variable.
2716 (Fsnarf_documentation): Use it, instead of opening and reading
2717 buildobj.lst.
2718
1574224c
MA
27192009-08-25 Michael Albinus <michael.albinus@gmx.de>
2720
2721 * dbusbind.c (Fdbus_call_method)
2722 (Fdbus_call_method_asynchronously): Use English numeric format for
2723 timeout values in doc string.
2724
d9da2f45
KH
27252009-08-25 Kenichi Handa <handa@m17n.org>
2726
ef73e7be
KH
2727 * alloc.c (mark_char_table): New function.
2728 (mark_object): Use mark_char_table for a char-table.
2729
d9da2f45
KH
2730 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2731 (CHAR_TABLE_REF): Use it.
2732
c8edcc01
KR
27332009-08-23 Ken Raeburn <raeburn@raeburn.org>
2734
2735 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2736 before invoking the newly build emacs to check for load-path
2737 shadowing.
2738
7763401b
GM
27392009-08-22 Glenn Morris <rgm@gnu.org>
2740
2741 * Makefile.in (bootstrap_exe): New variable.
2742 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2743 Use ${bootstrap_exe}.
2744
729eadda
EZ
27452009-08-22 Eli Zaretskii <eliz@gnu.org>
2746
2747 * coding.h (encode_coding_string): Don't encode unibyte strings.
2748 (Bug#4047)
2749
eb4c6ace
MA
27502009-08-22 Michael Albinus <michael.albinus@gmx.de>
2751
2752 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2753
2754 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2755 intended as hotfix only.
2756 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2757
36e34d1b
AR
27582009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2759
2760 * nsterm.m (ns_get_color): Update documentation properly for last
2761 change, and clean up loose ends in the code left by it. Fix
2762 longstanding bug with 16-bit hex parsing, and add support for
2763 yet another X11 format (rgb:r/g/b) for compatibility.
2764 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2765 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2766
f983eb8a
SM
27672009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2768
2769 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2770
3f56d3c6
MA
27712009-08-20 Michael Albinus <michael.albinus@gmx.de>
2772
2773 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2774 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2775 (xd_initialize, xd_pending_messages): Check, whether
2776 $DBUS_SESSION_BUS_ADDRESS is set.
2777
fb641d68
YM
27782009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2779
2780 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2781
2782 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2783
cf59a374
GM
27842009-08-20 Glenn Morris <rgm@gnu.org>
2785
2786 * emacs.c (system-type): Doc fix.
2787
1373f3be
SM
27882009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2789
2790 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2791 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2792
058ed861
MA
27932009-08-18 Michael Albinus <michael.albinus@gmx.de>
2794
1373f3be
SM
2795 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2796 New functions.
058ed861
MA
2797 (xd_initialize): Revert change from 2009-08-16.
2798
563a866e 27992009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2800
2801 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2802 font-group vector, return nil.
5fc05db0 2803
e42bdf01
CY
28042009-08-17 Chong Yidong <cyd@stupidchicken.com>
2805
2806 * process.c (status_notify): Don't perform redisplay.
2807 (Fdelete_process, list_processes_1, process_send_signal):
2808 Expliticly perform redisplay.
2809 (wait_reading_process_output): Always check process status, but
2810 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2811
4230ab74
KR
28122009-08-17 Ken Raeburn <raeburn@raeburn.org>
2813
1373f3be 2814 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2815 (XFLOAT_INIT): New macro for storing a float value.
2816 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2817 * fns.c (sxhash): Copy out the value of a float in order to
2818 examine its bytes.
2819 * dbusbind.c (xd_append_arg): Likewise.
2820
4230ab74
KR
2821 * emacs.c (main): Don't call syms_of_data twice.
2822
a0645cdd
MA
28232009-08-16 Michael Albinus <michael.albinus@gmx.de>
2824
2825 * dbusbind.c (xd_initialize): Add connection file descriptor to
2826 input_wait_mask, in order to let select() detect, whether a new
2827 message has been arrived.
ca4f31ea 2828 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2829
485db0ba
MA
28302009-08-15 Michael Albinus <michael.albinus@gmx.de>
2831
1373f3be
SM
2832 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2833 New functions.
485db0ba
MA
2834
2835 * lisp.h (xd_pending_messages): Declare.
2836
2837 * keyboard.c (readable_events): Call xd_pending_messages.
2838
b5b98ff4
CY
28392009-08-15 Chong Yidong <cyd@stupidchicken.com>
2840
1373f3be 2841 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2842
f8354c6e
CY
2843 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2844
b5b98ff4
CY
2845 * buffer.c (set_buffer_internal_1)
2846 (swap_out_buffer_local_variables): Check for unbound local
2847 variables (Bug#4138).
2848
8b9fc636
EZ
28492009-08-14 Eli Zaretskii <eliz@gnu.org>
2850
2851 * process.c (create_pty): Fix last change.
2852
ce959360
CY
28532009-08-13 Chong Yidong <cyd@stupidchicken.com>
2854
2855 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2856 (xbm_load_image): Caller changed.
64b807c9 2857 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2858
c7baf7e9
NR
28592009-08-13 Nick Roberts <nickrob@snap.net.nz>
2860
2861 * process.c (create_pty): New function.
2862 (Fstart_process): Use it to allow Emacs to just associate a pty
2863 with the buffer. See associated change in gdb-mi.el.
2864 (list_processes_1): Deal with no program name.
2865 (start_process_unwind): Use pid == -2 to mean no process.
2866
1ac9108a
SM
28672009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2868
2869 * cmds.c (nonundocount): New global variable.
2870 (keys_of_cmds): Initialize it.
2871 (Fself_insert_command): Use it to combine upto 20 sequential chars
2872 into a single undo entry, just like the Qself_insert_command code in
2873 keyboard.c does.
2874 Call frame_make_pointer_invisible, also like the Qself_insert_command
2875 code in keyboard.c does.
2876 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2877 than its own local replacement for it.
2878
e267324c
KR
28792009-08-10 Ken Raeburn <raeburn@raeburn.org>
2880
1ac9108a 2881 * fns.c (concat): Don't re-set string length to its current value.
77437343 2882
1ac9108a
SM
2883 * coding.h (decode_coding_string, encode_coding_string):
2884 Use SBYTES macro.
f0bed503 2885
1ac9108a 2886 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2887 (doprnt): Merge with doprnt1, discarding lispstrings code.
2888 * lisp.h (doprnt_lisp): Don't declare.
2889
416e006d
JL
28902009-08-07 Juri Linkov <juri@jurta.org>
2891
2892 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2893
6f7d5780
DN
28942009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2895
2896 * print.c (syms_of_print): Undo previous change.
2897
f19a0f5b
TZ
28982009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2899
2900 * lread.c (read1, syms_of_lread): Read hashtables back from the
2901 readable format.
2902
2903 * print.c (print_preprocess, print_object): Print hashtables fully
2904 and readably.
2905 (syms_of_print): Provide 'hashtable-print-readable.
2906
b9173dc2
AR
29072009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2908
2909 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2910 no family set.
2911 (nsfont_open): Handle case when entity has no family.
2912
1586503c
AR
29132009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2914
2915 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2916 element, not a list, for match case.
2917
087048cd
KH
29182009-07-28 Kenichi Handa <handa@m17n.org>
2919
2920 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2921 rigidly.
2922
2923 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2924 font_parse_xlfd. Check font properties more rigidly.
2925
780c2506
DN
29262009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2927
31fd7c5c
JB
2928 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2929 bsd-common.h.
780c2506 2930
a8c0cc18
KH
29312009-07-27 Kenichi Handa <handa@m17n.org>
2932
2933 * xfaces.c (face_with_height): Call font_clear_prop.
2934
4fbe2306
CY
29352009-07-26 Chong Yidong <cyd@stupidchicken.com>
2936
111d9af3
CY
2937 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2938
2939 * xterm.c (x_term_init): Use Qx.
2940
4fbe2306
CY
2941 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2942
1ac9108a 2943 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2944 (ns_get_color): Revert 2009-07-16 change.
2945
beb0b7f9
EZ
29462009-07-25 Eli Zaretskii <eliz@gnu.org>
2947
2948 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2949 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2950
2baf5e76
KR
29512009-07-25 Ken Raeburn <raeburn@raeburn.org>
2952
1ac9108a
SM
2953 * coding.h (decode_coding_string, encode_coding_string):
2954 Use SCHARS macro.
8890e5f5 2955
2baf5e76 2956 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2957 (load_depth): Delete.
2baf5e76
KR
2958 (Qload_in_progress): New variable.
2959 (load_unwind): Don't reference load_depth or load_in_progress.
2960 (Fload): Likewise; specbind Qload_in_progress instead.
2961 (init_lread): Don't initialize load_depth.
2962 (syms_of_lread): Initialize and protect Qload_in_progress.
2963
1395c6f5
AR
29642009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2965
2966 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2967
4e2f36cf
AR
29682009-07-23 Yavor Doganov <yavor@gnu.org>
2969
2970 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2971
5dd9a6f7
AR
29722009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2973
2974 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2975 Bugs 3792, 3720, 2402.
2976 (ns_lookup_indexed_color): Check for bad index.
2977 (ns_index_color): Init unused slot to 0.
2978 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2979 Bug 3714, possibly 3082.
5dd9a6f7 2980
c902b920
JR
29812009-07-22 Jason Rumney <jasonr@gnu.org>
2982
1ac9108a
SM
2983 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2984 Position IME window at cursor (Bug#2570).
c902b920
JR
2985 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2986 (globals_of_w32fns): Dynamically load functions required above.
2987
2988 * w32term.c (w32_draw_window_cursor): Send message to reposition
2989 any IME window.
2990
090101cf
CY
29912009-07-21 Chong Yidong <cyd@stupidchicken.com>
2992
2993 * fileio.c: Revert 2009-07-16 changes.
2994 (Vauto_save_include_big_deletions): New variable.
2995 (Fdo_auto_save): Disable auto-save only if
2996 auto-save-include-big-deletions is nil.
2997
e6583e3d
CY
29982009-07-21 Chong Yidong <cyd@stupidchicken.com>
2999
3000 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3001 the overflowed pixels into account (Bug#3879).
3002
ece435a5
KR
30032009-07-21 Ken Raeburn <raeburn@raeburn.org>
3004
3005 * lread.c (load_depth): New variable.
3006 (Fload, load_unwind, init_lread): Set it to the load recursion
3007 depth; set load_in_progress as a simple boolean based on the
3008 current load_depth. (Bug#3892)
3009
40b2d973
AR
30102009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3011
3012 * nsfont.m (ns_has_attribute): Remove.
3013 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3014
10be7e0d
JL
30152009-07-18 Juri Linkov <juri@jurta.org>
3016
3017 * process.c (Fset_process_query_on_exit_flag): Mention killing
3018 a buffer in docstring.
3019
fa055055
KH
30202009-07-17 Kenichi Handa <handa@m17n.org>
3021
3022 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3023
042f7b69
YM
30242009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3025
3026 * nsfns.m (Fns_set_alpha): Remove function.
3027 (syms_of_nsfns): Don't defsubr it.
3028
3029 * nsterm.m (ns_get_color): Remove incompatible color formats.
3030 (ns_color_to_lisp): Generate #rrggbb color format string.
3031
4be941e3
RS
30322009-07-16 Richard Stallman <rms@gnu.org>
3033
3034 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3035 (Fset_buffer_auto_saved): Handle save_length = -2.
3036
4e6b227d
CY
30372009-07-16 Chong Yidong <cyd@stupidchicken.com>
3038
3039 * xterm.c (Qx_gtk_map_stock): New var.
3040
3041 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3042 of calling intern each time.
3043
a1856973
YM
30442009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3045
3046 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3047 does tiling.
3048
3049 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3050
497e54d8
KH
30512009-07-14 Kenichi Handa <handa@m17n.org>
3052
72d36834
KH
3053 * font.c (font_vconcat_entity_vectors): New function.
3054 (struct font_sort_data): New member font_driver_preference.
3055 (font_compare): Check font_driver_preference.
3056 (font_sort_entities): The format of the first argument changed.
3057 (font_delete_unmatched): Likewise.
3058 (font_list_entities): The return type changed.
3059 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3060 (font_find_for_lface): Adjuste for the above changes.
3061 Don't suppress the checking of C even if the repertory supports it.
3062 (Flist_fonts): Adjust for the above changes.
72d36834 3063
1ac9108a
SM
3064 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3065 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3066 Reject a font who has adstyle property that is different from a
3067 langname derived from registry property.
1ac9108a 3068 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3069
b6046155
EZ
30702009-07-13 Eli Zaretskii <eliz@gnu.org>
3071
3072 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3073 local copy of dirfilename.
3074
fb6b6049
KH
30752009-07-13 Kenichi Handa <handa@m17n.org>
3076
e2402a5e
KH
3077 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3078 against max_char.
3079
fb6b6049
KH
3080 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3081 calling XSYMBOL (sym).
3082
65156807
EZ
30832009-07-11 Eli Zaretskii <eliz@gnu.org>
3084
1ac9108a
SM
3085 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3086 New function.
3087 (directory_files_internal) [WINDOWSNT]:
3088 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3089 the filesystem of the directory is fast or slow.
3090
3091 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3092 file name.
3093 (is_slow_fs): New function.
3094 (stat): Use it to determine whether to issue more system calls to
3095 get accurate file attributes, when w32-get-true-file-attributes is
3096 `local'.
3097
e0ab5fcf
JD
30982009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3099
3100 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3101 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3102 parameter font-parameter as default to the font dialog.
3103
784ceded
KH
31042009-07-10 Kenichi Handa <handa@m17n.org>
3105
3106 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3107
fb8edc0b
EZ
31082009-07-09 Eli Zaretskii <eliz@gnu.org>
3109
1ac9108a 3110 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3111
fb8edc0b
EZ
3112 * w32.c (stat): Treat UNC file names as residing on remote
3113 drives. (Bug#3542)
3114
635c75b1
KH
31152009-07-09 Kenichi Handa <handa@m17n.org>
3116
3117 * fontset.c (fontset_find_font): Fix previous change.
3118
c1d5ce94
MA
31192009-07-08 Michael Albinus <michael.albinus@gmx.de>
3120
3121 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3122 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3123 error flag.
3124
edb61b39
KH
31252009-07-08 Kenichi Handa <handa@m17n.org>
3126
374bf7e4
KH
3127 * fontset.c (fontset_find_font): Fix the logic of handling
3128 charset_matched.
3129 (font_for_char): Delete unused var.
3130 (generate_ascii_font_name): Delete it.
3131
edb61b39
KH
3132 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3133
3134 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3135 (encode_coding_sjis): Fix the code range check.
3136
0f3f018c
CY
31372009-07-07 Chong Yidong <cyd@stupidchicken.com>
3138
3139 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3140 (Fexpand_file_name): Copy string data properly (Bug#3772).
3141
fcaf6f3a
JD
31422009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3143
3144 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3145 first MapNotify.
3146
6809ca75
KH
31472009-07-07 Kenichi Handa <handa@m17n.org>
3148
3149 * character.h (unibyte_has_multibyte_table): Delete extern.
3150 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3151
3152 * charset.c (Fset_charset_priority): Update charset_unibyte.
3153 (syms_of_charset): Initialize charset_unibyte.
3154
3155 * character.c (unibyte_has_multibyte_table): Delete it.
3156 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3157 charset_unibyte.
3158 (multibyte_char_to_unibyte_safe): Likewise.
3159 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3160
1ac9108a 3161 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3162 (x_produce_glyphs): Likewise.
3163
3164 * .gdbinit (xcharset): Fix the treating $arg0.
3165
ad9e2d54
EZ
31662009-07-04 Eli Zaretskii <eliz@gnu.org>
3167
3168 Emulation of `getloadavg' on MS-Windows.
3169 * w32.c: Include float.h
3170 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3171 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3172 (get_native_system_info, get_system_times): New functions.
3173 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3174 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3175 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3176 g_b_init_get_system_times, and num_of_processors.
3177
0a3472c7
JR
31782009-07-03 Jason Rumney <jasonr@gnu.org>
3179
3180 * w32term.c (w32_initialize): Use standard types.
3181
80904120
EZ
31822009-07-03 Eli Zaretskii <eliz@gnu.org>
3183
3184 * dired.c (Ffile_attributes): Decode user and group names by the
3185 locale's encoding. (Bug#3443)
3186
6978862d
DN
31872009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3188
f8d23104
DN
3189 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3190 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3191
3192 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3193
3194 * term.c (init_tty): Remove spurious #ifdef.
3195
6978862d
DN
3196 * m/mips.h: Mention this file is also used for netbsd.
3197 * m/pmax.h: Remove file.
3198
e044e4fc
JD
31992009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * xterm.h (struct x_display_info): Add invisible_cursor.
3202 (struct x_output): Add current_cursor.
3203
3204 * xterm.c (XTtoggle_invisible_pointer): New function.
3205 (x_define_frame_cursor): Don't define cursor if invisible or the
3206 same as before. Set current_cursor.
3207 (x_create_terminal): Set toggle_invisible_pointer_hook.
3208
3209 * xfns.c (make_invisible_cursor): New function.
3210 (x_set_mouse_color): Call make_invisible_cursor.
3211 Set current_cursor.
3212 (x_window): Set current_cursor.
3213
3214 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3215
3216 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3217 inserting a character.
3218 (read_avail_input): Call frame_make_pointer_visible.
3219
3220 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3221 (frame_make_pointer_invisible, frame_make_pointer_visible):
3222 New functions.
e044e4fc
JD
3223 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3224
3225 * frame.h: Declare frame_make_pointer_invisible and
3226 frame_make_pointer_visible.
3227 (struct frame): Add pointer_invisible.
3228
574c8efa
JD
32292009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3230
7b507248
JD
3231 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3232 frame isn't visible.
3233 (xg_frame_resized): If width/height is -1, get size of window
3234 from X server.
3235
3236 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3237 for MapNotify.
3238
835bdaa7 3239 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3240 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3241 (flush_and_sync): Reintroduce.
574c8efa 3242
3f1c6666 32432009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3244
31fd7c5c 3245 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3246
3247 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3248 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3249
3250 * frame.h: Declare Qsticky.
3251
cad9ef74
JD
3252 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3253
3254 * nsfns.m (ns_frame_parm_handlers): Ditto.
3255
3256 * frame.c: Declare Qsticky.
3257 (frame_parms): Add sticky.
3258
3259 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3260
3261 * xterm.h: Declare x_set_sticky.
3262
3263 * xterm.c (x_set_sticky): New function.
3264
69b16610
JD
3265 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3266 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3267 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3268
3269 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3270
3271 * frame.c: Qmaximized is new.
3272 (x_set_frame_parameters): Do not handle fullscreen specially.
3273 Only set width and height if explicitly set.
3274 (x_set_fullscreen): Handle Qmaximized.
3275 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3276 (syms_of_frame): Initialize Qmaximized.
3277
1ac9108a
SM
3278 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3279 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3280
3281 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3282 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3283 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3284 set gravity to NorthWestGravity when USE_GTK.
3285 (set_wm_state): New function.
31fd7c5c 3286 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3287 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3288 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3289 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3290 to x_real_positions and x_fullscreen_adjust.
3291
3292 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3293 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3294 flush_and_sync.
3295 (xg_height_changed): New function.
3296 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3297 and gtk_window_set_policy. Set frame gravity after parsing the
3298 geometry string.
3f1c6666
JD
3299 (xg_update_frame_menubar, free_frame_menubar)
3300 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3301 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3302 Remove calls to xg_frame_set_char_size.
3303
fd503d99
KH
33042009-07-01 Kenichi Handa <handa@m17n.org>
3305
3306 * keyboard.c (decode_keyboard_code): New function.
3307 (tty_read_avail_input): Decode the input bytes if necessary.
3308
1ac9108a
SM
3309 * coding.c (setup_coding_system):
3310 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3311 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3312 use Qno_conversion.
3313
24ed93fb
YM
33142009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3315
3316 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3317
99061dfc
CY
33182009-06-30 Chong Yidong <cyd@stupidchicken.com>
3319
1ac9108a 3320 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3321
ff90fbde
JR
33222009-06-30 Jason Rumney <jasonr@gnu.org>
3323
3324 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3325 is already loaded.
3326 Set user model ID if supported (bug#1849).
3327
5f445726
JM
33282009-06-29 Jim Meyering <meyering@redhat.com>
3329
3330 Remove useless if-before-xfree test.
3331 * nsfont.m (nsfont_close): Remove useless test.
3332 * term.c (delete_tty): Likewise.
3333 * w32.c (system_process_attributes): Likewise.
3334 * w32font.c (w32font_close): Likewise.
3335 * xfaces.c (x_free_gc): Likewise.
3336 * xselect.c (buffer): Likewise.
3337
b9607587
AS
33382009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3339
3340 * process.c (send_process): Keep decoded string in a local
3341 variable and protect it from GC. (Bug#3521)
3342
89ba96f4
EZ
33432009-06-28 Eli Zaretskii <eliz@gnu.org>
3344
3345 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3346 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3347
098a1589
CY
33482009-06-28 Chong Yidong <cyd@stupidchicken.com>
3349
485422be
CY
3350 * xdisp.c (start_display, handle_face_prop)
3351 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3352 (redisplay_window, try_window_id, produce_image_glyph):
3353 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3354
098a1589
CY
3355 * xterm.c (x_update_window_begin, x_new_focus_frame)
3356 (x_scroll_bar_handle_click, handle_one_xevent)
3357 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3358 (x_make_frame_visible, x_make_frame_invisible)
3359 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3360 code chunks that are now obsolete.
3361
78c38319
MA
33622009-06-28 Michael Albinus <michael.albinus@gmx.de>
3363
3364 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3365 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3366 for hours, when optimzation is enabled.
3367 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3368 (xd_read_message): Make them static.
3369
4189ed40
CY
33702009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3371
3372 * term.c (turn_on_face): Allow simultaneously bold and dim
3373 terminal faces (Bug#3530).
3374
cd9b5e16
CY
33752009-06-27 Chong Yidong <cyd@stupidchicken.com>
3376
4e23bedb
CY
3377 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3378
cd9b5e16
CY
3379 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3380 truncation glyphs (Bug#3686).
3381
07cc3c35
GM
33822009-06-27 Glenn Morris <rgm@gnu.org>
3383
3384 * m/pmax.h: Restore file, with only netbsd portions.
3385
31fd7c5c 33862009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3387
cd9b5e16 3388 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3389
42d4a64f
KH
33902009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3391
3392 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3393 the arg FORCE_SYMBOL.
3394
930fe55b 33952009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3396
3397 * fontset.c (fontset_find_font): When a usable rfont_def is found
3398 in a fallback font-group, make it the first element of the group.
3399
57ebc3fd
CY
34002009-06-24 Chong Yidong <cyd@stupidchicken.com>
3401
3402 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3403
f084f942
KH
34042009-06-24 Kenichi Handa <handa@m17n.org>
3405
3406 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3407 set for C.
3408 (fontset_font): Record the availability of a font for C both in
3409 the realized fontsets of the current one and the default one.
3410
2f686c87
DN
34112009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3412
3413 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3414 conditional, it is always defined on AIX.
3415
666e158e
MB
34162009-06-23 Miles Bader <miles@gnu.org>
3417
3418 * window.c (Vrecenter_redisplay): New variable.
3419 (syms_of_window): Initialize it.
3420 (Qtty): New extern declaration.
3421 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3422
c6da7cd2
JM
34232009-06-23 Jim Meyering <meyering@redhat.com>
3424
1ac9108a
SM
3425 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3426 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3427 pointer dereferences are guaranteed to be valid.
c6da7cd2 3428
678dca3d
KH
34292009-06-23 Kenichi Handa <handa@m17n.org>
3430
74d75424
KH
3431 * emacs.c (main): Call init_font ().
3432
3433 * font.h (Vfont_log): Extern it.
3434 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3435
3436 * font.c (font_sort_entities, font_list_entities)
3437 (font_matching_entity, font_open_entity)
3438 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3439 (Vfont_log): Delete static.
3440 (font_log_env_checked): Delete this variable.
3441 (font_add_log): Don't check font_log_env_checked.
3442 (font_deferred_log): Check Vfont_log.
3443 (init_font): New function.
3444
678dca3d
KH
3445 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3446
3447 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3448
3449 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3450
3451 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3452
3453 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3454 (face_for_char): Don't call font_deferred_log here.
3455 (font_for_char): Likewise.
3456
8a668709
CY
34572009-06-22 Chong Yidong <cyd@stupidchicken.com>
3458
9a01ee33
CY
3459 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3460 rather than its background_width for drawing the overline and
3461 underline (Bug#489).
3462
3463 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3464 rather than its background_width for drawing the overline and
3465 underline (Bug#489).
ec7c9926
CY
3466 (xg_default_icon_file): New variable.
3467 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3468 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3469
8a668709
CY
3470 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3471 (load_overlay_strings): Remove externs.
3472 (fast_find_position): Function deleted.
3473 (mouse_face_from_buffer_pos): New function, based on
3474 fast_find_position. Correctly handle before-strings,
3475 display-strings, and after-strings (Bug#1220).
3476 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3477
4d4c02d8
CY
34782009-06-21 Chong Yidong <cyd@stupidchicken.com>
3479
1ac9108a 3480 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3481 (move_it_in_display_line_to, move_it_in_display_line_to)
3482 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3483
70243478
CY
34842009-06-21 Chong Yidong <cyd@stupidchicken.com>
3485
3486 * Branch for 23.1.
3487
13087e59
JR
34882009-06-21 Jason Rumney <jasonr@gnu.org>
3489
3490 * w32term.c (keyboard_codepage): New static variable.
3491 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3492 (w32_read_socket) [WM_CHAR]: Use it to decode character
3493 input (bug#3237).
3494 (w32_initialize): Initialize it.
3495 (codepage_for_locale): New function.
3496
4735b74e
KR
34972009-06-20 Ken Raeburn <raeburn@raeburn.org>
3498
3499 * process.c (status_message): Pass Faset index argument as a lisp
3500 object, so as to work with USE_LISP_UNION_TYPE.
3501
0e727afa
YM
35022009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3503
3504 * coding.c (Ffind_coding_systems_region_internal):
3505 Cache checked characters.
3506
cf299835
KH
35072009-06-18 Kenichi Handa <handa@m17n.org>
3508
1ac9108a 3509 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3510
90f20d94
AS
35112009-06-18 Andreas Schwab <aschwab@redhat.com>
3512
3513 * xdisp.c (redisplay_internal): Check that the frame is still
3514 live after redisplay of its windows.
3515 (redisplay_windows): Check that the window is still live.
3516
7f1faf1c
KH
35172009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3518
3519 * coding.c (detect_coding_utf_16): Fix previous change.
3520
cc13543e
KH
35212009-06-16 Kenichi Handa <handa@m17n.org>
3522
3523 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3524 UTF-16 by checking the dispersion of Eth and Oth bytes.
3525
977b85f4
AS
35262009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3527
3528 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3529
66bd43d1
KH
35302009-06-15 Kenichi Handa <handa@m17n.org>
3531
3532 * process.c (status_message): Fix previous change. Be sure to
3533 decode a localized string.
3534
cb5ca9c5
YM
35352009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3536
3537 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3538 add comment explaining why.
3539
ec7709ba 35402009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3541
ec7709ba 3542 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3543
4b7f335c
AR
35442009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3545
3546 * nsfont.m (ns_attribute_value): Remove.
3547 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3548 (ns_has_attribute): Shrink the normal range.
3549 (ns_findfonts): Don't worry about requested spec in determining
3550 need for synthItal.
e41820ee 3551 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3552
73b26103
SZ
35532009-06-14 Seiji Zenitani <zenitani@mac.com>
3554
3555 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3556
5753e4da
KH
35572009-06-11 Kenichi Handa <handa@m17n.org>
3558
3559 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3560 overhang for the static composition case.
3561
3561b671
KH
35622009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3563
5753e4da
KH
3564 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3565 overhang for the automatic composition case.
3566
3561b671
KH
3567 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3568 composition case.
3569
852bbd41
CY
35702009-06-10 Chong Yidong <cyd@stupidchicken.com>
3571
3572 * xdisp.c (get_next_display_element): When handling wrap-prefix
3573 and line-prefix, treat \n as a control character (bug#3502).
3574
9903d1e6
KH
35752009-06-10 Kenichi Handa <handa@m17n.org>
3576
3577 * font.c (font_parse_family_registry): Fix for one-char foundry.
3578 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3579
0bcbaaaa
CY
35802009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3581
3582 * process.c (status_message): Fix handling of multibyte signal
3583 string (Bug#3499).
3584
40aa3f13
JM
35852009-06-09 Jim Meyering <meyering@redhat.com>
3586
1f80c7e2
CY
3587 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3588 color name is missing.
40aa3f13 3589
72d51285
KH
35902009-06-09 Kenichi Handa <handa@m17n.org>
3591
3592 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3593 FROM-CODE and TO-CODE are codepoints of CHARSET.
3594
c1d04d84
AR
35952009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3596
3597 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3598
35992009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3600
3601 Changes to support :script/:lang/:otf in NS font driver.
3602 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3603 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3604 indicate not part of font driver interface, and change callers.
3605 (ns_get_family): Remove pointless null check.
3606 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3607 ns_spec_to_descriptor, ns_descriptor_to_entity.
3608 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3609 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3610 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3611 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3612 (ns_get_req_script, ns_accumulate_script_ranges)
3613 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3614 New functions.
3615 (nsfont_list, nsfont_match): Use ns_findfonts.
3616 (nsfont_open): Use font descriptor instead of traits.
3617 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3618 (dump_glyphstring): Rename to ns_dump_glyphstring.
3619
c7eb9816
AR
3620 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3621
c1d04d84
AR
3622 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3623
3624 * fontset.c (fontset_from_font): Remove NS-specific code.
3625
ec7709ba 36262009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3627
3628 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3629 nonactive windows.
3630
31fd7c5c 36312009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3632
1ac9108a 3633 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3634
68852c13 36352009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3636
3637 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3638
6756cd1d
CY
36392009-06-07 Chong Yidong <cyd@stupidchicken.com>
3640
3641 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3642 account for the overflowing of newlines into the last glyph on the
3643 display line (Bug#3482).
3644
28bf482a
DR
36452009-06-05 David Reitter <david.reitter@gmail.com>
3646
ec7709ba
JB
3647 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3648 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3649 Fns_selection_exists_p, Fns_selection_owner_p.
3650
fdb55376
JR
36512009-06-03 Jason Rumney <jasonr@gnu.org>
3652
3653 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3654 available. (Bug#3379)
3655
05129fbe
KH
36562009-05-29 Kenichi Handa <handa@m17n.org>
3657
1ac9108a
SM
3658 * coding.c (get_translation_table):
3659 Check Venable_character_translation.
05129fbe 3660
ec7709ba 36612009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3662
ec7709ba
JB
3663 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3664 (x_make_frame_visible): Move frame to front rather than calling
15891144 3665 ns_raise_frame().
ec7709ba 3666 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3667 isn't key window.
ec7709ba 3668 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3669 drawRect may be called by NSView even if the frame is hidden.
3670
ec7709ba
JB
3671 * nsfns.m (Fx_create_frame): Follow other ports in
3672 determining visibility; default to t. Ensure async_visible is set.
15891144 3673
21f73755
EZ
36742009-05-23 Eli Zaretskii <eliz@gnu.org>
3675
3676 * dired.c (Ffile_attributes): Doc fix.
3677
34001e41
CY
36782009-05-22 Chong Yidong <cyd@stupidchicken.com>
3679
3680 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3681
46306a17
SM
36822009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3683
3684 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3685 and xfont_scratch_props.
3686 (syms_of_xfont): Do it here instead.
3687 (xfont_find_ccl_program): Delete, unused.
3688 (xfont_open): Delete unused var `i'.
3689
ef6e0694
KH
36902009-05-21 Kenichi Handa <handa@m17n.org>
3691
3692 * fontset.c (Qlatin): Don't make it static.
3693
46306a17
SM
3694 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3695 New functions.
ef6e0694
KH
3696 (xfont_scripts_cache, xfont_scratch_props): New variables.
3697 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3698 (xfont_list_pattern): Argument changed. Callers changed.
3699 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3700 (xfont_list): Don't reject a font spec with :script property.
3701 (xfont_has_char): Fix setting of encoding.
3702 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3703 xfont_scratch_props.
3704
37052009-05-19 Kenichi Handa <handa@m17n.org>
3706
46306a17 3707 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3708 Callers changed.
3709
37102009-05-18 Kenichi Handa <handa@m17n.org>
3711
3712 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3713
ac71ced7
SM
37142009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3715
3716 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3717 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3718
1c6d1051
YM
37192009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3720
3721 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3722 (x_delete_terminal): Dissociate resource database from display and
3723 then call XrmDestroyDatabase before closing display.
3724
9b9b779c
AR
37252009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3726
3727 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3728 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3729 whether selected frame is viable before raising it (based on patch
3730 by David Reitter), and improve commentary.
3731 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3732
cccd42d5
KH
37332009-05-15 Kenichi Handa <handa@m17n.org>
3734
3735 * font.c (Ffont_spec): Check arguments.
3736
337fbd17
CY
37372009-05-14 Chong Yidong <cyd@stupidchicken.com>
3738
3739 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3740 weight when testing attributes (Bug#3282).
3741
47a6002f
JD
37422009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3743
3744 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3745 what we expect to get in the next ConfigureNotify event.
3746
9cb363db
YM
3747 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3748 before Xft one (Bug#1696).
3749
b9126609
CY
37502009-05-07 David Reitter <david.reitter@gmail.com>
3751
3752 * nsfns.m (Fx_display_planes): Compute bitplanes using
3753 NSBitsPerPixelFromDepth (Bug#3207).
3754
27a69fd9
CY
37552009-05-10 Chong Yidong <cyd@stupidchicken.com>
3756
3757 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3758
00f37552
TTN
37592009-05-10 Ulrich Mueller <ulm@gentoo.org>
3760
3761 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3762
2d82a920
DR
37632009-05-07 David Reitter <david.reitter@gmail.com>
3764
ec7709ba
JB
3765 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3766 Respect mouse face background.
2d82a920 3767
46b0d52d
DR
37682009-05-07 David Reitter <david.reitter@gmail.com>
3769
ec7709ba
JB
3770 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3771 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3772 in ns_update_begin and ns_update_end.
3773
ce1b23bb
SM
37742009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3775
5996e1b7
SM
3776 * nsfns.m (ns_get_screen): Rewrite.
3777 Don't presume selected-frame is of type `ns'.
3778
ba98e3a0
SM
3779 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3780 all drivers.
3781
ce1b23bb
SM
3782 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3783
bcda200f
YM
37842009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3785
3786 * keyboard.h (add_user_signal): Fix typo in extern.
3787
3788 * lisp.h (add_user_signal): Remove extern.
3789
3790 * unexelf.c (unexec): Consider a section to precede the .bss section
3791 if its addresses overlap that of .bss.
3792 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3793 instead of dumping process.
3794
864660a2
SM
37952009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3796
3797 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3798
50da4e56
SM
37992009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3802
51520a1a
DN
38032009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3804
3805 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3806 any statements.
3807
409ea3a1
AS
38082009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3809
59c4c60f
AS
3810 * process.c (read_process_output): Make sure the current buffer is
3811 always restored.
3812
409ea3a1
AS
3813 * coding.c (record_conversion_result): Don't modify
3814 Vlast_code_conversion_error for successful result.
3815 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3816
56f00ed2
KH
38172009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3818
3819 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3820 (load_charset_map): Remove unnecessary code.
56f00ed2 3821
4491c9d2
DR
38222009-04-30 David Reitter <david.reitter@gmail.com>
3823
35f5b128 3824 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3825 through f24.
3826
6970f632
CY
38272009-04-30 Chong Yidong <cyd@stupidchicken.com>
3828
3829 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3830
3831 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3832 face_at_buffer_position.
3833 (face_before_or_after_it_pos, get_next_display_element)
3834 (note_mouse_highlight): Update face_at_buffer_position call.
3835
3836 * term.c (term_mouse_highlight):
3837 * msdos.c (IT_note_mouse_highlight):
3838 * fontset.c (Finternal_char_font):
35f5b128 3839 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3840
3841 * dispextern.h (face_at_buffer_position): Update prototype.
3842
0c616f63
KH
38432009-04-30 Kenichi Handa <handa@m17n.org>
3844
35f5b128 3845 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3846
ad3aaf33
AS
38472009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3848
3849 * callproc.c (Fcall_process): Fix GC protection. Make sure
3850 current buffer is always restored.
3851
c3c963a0
YM
38522009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3853
3854 * atimer.c (init_atimer): Also clear stopped_atimers.
3855
3856 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3857
7e3386cb
YM
3858 * process.c (create_process): Clean up merger residues of
3859 2008-07-17 change.
3860
91f68422
CY
38612009-04-29 Ulrich Mueller <ulm@gentoo.org>
3862
3863 * lread.c (Vread_circle): New variable.
3864 (read1): Disable recursive read if Vread_circle is nil.
3865
24b34550
KH
38662009-04-29 Kenichi Handa <handa@m17n.org>
3867
3868 * fontset.h (set_default_ascii_font): Delete extern.
3869
3870 * fontset.c (set_default_ascii_font): Delete this unused function.
3871
3872 * frame.c (x_set_font): When ARG is a font-object, check if the
3873 font-object matches with the ASCII font-spec of the frame's
9c358bda 3874 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3875
77bf07e1
AS
38762009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3877
3878 * fns.c (Flocale_info): Protect vector from GC during decoding.
3879
3880 * process.c (Fstart_process): Protect argv strings from GC during
3881 encoding.
3882
2c55aacf
AS
38832009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3884
3885 * sysdep.c: Include <ctype.h>.
3886
b892d3c9
DR
38872009-04-27 David Reitter <david.reitter@gmail.com>
3888
35f5b128 3889 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3890 Remove commented-out code.
3891
9d0644c4
JB
38922009-04-26 Johan Bockgård <bojohan@gnu.org>
3893
3894 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3895
b7053016
JR
38962009-04-25 Jason Rumney <jasonr@gnu.org>
3897
3898 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3899
4e8231f3
YM
39002009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3901
3902 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3903 Swap bytes in short integer if fringe bitmap width > 8.
3904
493dcf2c
KH
39052009-04-23 Kenichi Handa <handa@m17n.org>
3906
3907 * xfaces.c (Fx_list_fonts): If a font size is specified in
3908 PATTERN, set it in returned scalable fonts.
3909
401e9e57
CY
39102009-04-22 Chong Yidong <cyd@stupidchicken.com>
3911
708e05dc
CY
3912 * keyboard.c (Fset_input_meta_mode): Doc fix.
3913
3914 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3915
1ac9108a 3916 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3917
3918 * coding.c (Fterminal_coding_system): Doc fix.
3919
3920 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3921 (Fx_display_pixel_height, Fx_display_planes)
3922 (Fx_display_color_cells, Fx_server_max_request_size)
3923 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3924 (Fx_display_mm_height, Fx_display_mm_width)
3925 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3926 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3927 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3928 (check_x_display_info): Handle terminal objects instead of
3929 terminal ids.
3930
401e9e57
CY
3931 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3932 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3933 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3934 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3935
df80c7f0
KH
39362009-04-21 Kenichi Handa <handa@m17n.org>
3937
5a8f12af 3938 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3939 (font_score): Check AVGWIDTH too.
908567ef 3940
df80c7f0
KH
3941 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3942 worst case.
1ac9108a
SM
3943 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3944 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3945
705af33f
JR
39462009-04-19 Jason Rumney <jasonr@gnu.org>
3947
3948 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3949 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3950
3951 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3952 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3953 get_phys_cursor_geometry.
3954
b71ac3dd 3955 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3956 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3957 using get_phys_cursor_geometry.
3958
3959 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3960 correctly calculated.
3961
dc2933eb
JD
39622009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3963
1ac9108a
SM
3964 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3965 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3966 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3967 is deprecated.
3968
973e7849
AS
39692009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3970
3971 * font.c (font_put_frame_data): Use xfree instead of free.
3972
314d66f4
JB
39732009-04-17 Juanma Barranquero <lekktu@gmail.com>
3974
3975 * w32font.c (Qja, Qko): Remove declarations.
3976 (syms_of_w32font): Don't DEFSYM them.
3977
cf702558
CY
39782009-04-17 Chong Yidong <cyd@stupidchicken.com>
3979
3980 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3981
3982 * font.h (Qja, Qko): Extern them.
3983
3984 * ftfont.c (Qja, Qko): Remove declarations.
3985
3986 * xfont.c (Qja, Qko): Remove declarations.
3987
b50504f5
KH
39882009-04-17 Kenichi Handa <handa@m17n.org>
3989
bde25748
KH
3990 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3991 string from a vector to handle Latin-1 characters correctly.
3992
b50504f5
KH
3993 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3994 entity even if the cache hits.
3995
f4646fff
AS
39962009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3997
3998 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3999 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4000
e7deaab0
AS
4001 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4002 * lisp.h: Adjust prototypes.
4003
0a0e7d49
CY
40042009-04-16 Chong Yidong <cyd@stupidchicken.com>
4005
4006 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4007 change (Bug#3003).
4008
3c908a57
KH
40092009-04-16 Kenichi Handa <handa@m17n.org>
4010
1ac9108a 4011 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4012
4013 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4014 adstyle.
4015
4016 * ftfont.c (Qja, Qko): Don't make them static.
4017 (enum ftfont_cache_for): New enum.
4018 (fc_charset_table): Undo the previous change.
4019 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4020 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4021 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4022 non-scarable font, try to get AVERAGE_WIDTH.
4023 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4024 Change ft_face_cache from a list of a hash-table. Don't check
4025 `ja' and `ko' adstyle here.
4026 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4027 FTFONT_CACHE_FOR_CHARET.
4028 (ftfont_get_charset): Undo the previous change.
1ac9108a 4029 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4030 (ftfont_close): Likewise.
4031 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4032
4033 * font.c (font_sort_entites): Change the meaning of the arg
4034 BEST-ONLY. Don't optimize for VEC of lenght 1.
4035 (font_select_entity): Just return the value of font_sort_entites.
4036
4037 * xfaces.c (merge_face_vectors): Reflect font properties in
4038 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4039 font_clear_prop if a face attribute doesn't change.
4040
3c908a57
KH
4041 * charset.h (charset_ksc5601): Extern it.
4042
4043 * charset.c (charset_ksc5601): New variable.
4044 (Fdefine_charset_internal): Set charset_ksc5601.
4045 (init_charset_once): Initialize charset_ksc5601 to -1.
4046
d65859c3
DN
40472009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4048
4049 * fileio.c (history_delete_duplicates): Remove unused declaration.
4050
4051 * callint.c (history_delete_duplicates): New declaration.
4052 (Fcall_interactively): Remove command history duplicates when
4053 history_delete_duplicates is true.
4054
3ba010e5
EZ
40552009-04-14 Eli Zaretskii <eliz@gnu.org>
4056
4057 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4058
06f19b91
KH
40592009-04-14 Kenichi Handa <handa@m17n.org>
4060
4061 * font.c (Ffont_info): Fix docstring. Fix the second element of
4062 the returned value (bug#2949).
4063
2cce8bfc
CY
40642009-04-14 Chong Yidong <cyd@stupidchicken.com>
4065
4066 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4067
d156542d
KH
40682009-04-14 Kenichi Handa <handa@m17n.org>
4069
4070 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4071 encoding charset is ascii_compatible.
4072
4073 * charset.c (Fdefine_charset_internal): Make charset
4074 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4075 code_offset is 0, and covers all ASCII characters.
4076
86fa089e
SM
40772009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4078
4079 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4080 (ns_string_to_pasteboard_internal):
4081 * nsmenu.m (process_dialog):
4082 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4083 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4084 * lisp.h (Fx_load_color_file): Declare.
4085
a8a3728b
KH
40862009-04-13 Kenichi Handa <handa@m17n.org>
4087
1ac9108a 4088 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4089 (font_select_entity): Suppress the code to optimize for the same
4090 kind of fonts.
4091 (font_load_for_lface): Get a font that supports at least ASCII
4092 characters.
4093
4094 * ftfont.c (Qja, Qko): New variables.
4095 (fc_charset_table): Delete uniquifier data for iso8859-1.
4096 (ftfont_get_latin1_charset): New function.
4097 (get_adstyle_property): New function.
4098 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4099 bitmap fonts.
4100 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4101 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4102 `ko' or `ja'.
4103 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4104 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4105 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4106 property.
4107 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4108 (syms_of_ftfont): DEFSYM Qja and Qko.
4109
483670b5
KH
41102009-04-09 Kenichi Handa <handa@m17n.org>
4111
12b55765
KH
4112 * charset.c (map_charset_chars): For a charset of `superset'
4113 method, fix calculation of code range.
4114
483670b5
KH
4115 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4116 from the list of extra properties.
4117 (font_clear_prop): Be sure to delete `:name' font property.
4118
57d3b93b
KH
41192009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4120
b4b2c2ca
YM
4121 * dispnew.c (redraw_overlapping_rows): Fix detection of
4122 overlapping for topmost and bottommost rows.
4123
1ac9108a 4124 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4125
472c3609
JR
41262009-04-06 Jason Rumney <jasonr@gnu.org>
4127
4128 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4129
ab193662
KH
41302009-04-06 Kenichi Handa <handa@m17n.org>
4131
4132 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4133
4134 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4135
0c26f026
KH
41362009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4137
4138 * ftfont.c (ftfont_open): Fix checking of the return value of
4139 FT_Load_Char. Fix setting font->underline_thickness.
4140
e173bbce
CY
41412009-04-04 Chong Yidong <cyd@stupidchicken.com>
4142
4143 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4144 (Fterminal_parameters, Fterminal_parameter)
4145 (Fset_terminal_parameter): In doc string, refer to terminal
4146 objects rather than terminal ids.
4147
693a2698
EZ
41482009-04-04 Eli Zaretskii <eliz@gnu.org>
4149
4150 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4151 ret_lim_data. (Bug#2867)
4152
d5221487
CY
41532009-04-03 Chong Yidong <cyd@stupidchicken.com>
4154
4155 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4156 so they don't get wider than the window, matching 2006-01-23
4157 change to the partner function in xdisp.c (Bug#2800).
4158
223509a3
KH
41592009-04-03 Kenichi Handa <handa@m17n.org>
4160
4161 * print.c (print_object): Make each lowest sub_char_table start a
4162 new line (Bug#2866).
4163
74fcd0b1
KH
41642009-04-02 Kenichi Handa <handa@m17n.org>
4165
4166 * fontset.c (fontset_font): Record no-font when a fontset
4167 explicitly tells not to try another font-specs.
4168
c542407d
SM
41692009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4170
4171 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4172
e3869731
KH
41732009-03-30 Kenichi Handa <handa@m17n.org>
4174
d8d2f142
KH
4175 * fontset.c (fontset_from_font): Specify only registry in a
4176 font-spec for all characters supported by that registry.
4177
e3869731
KH
4178 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4179 even if HAVE_M17N_FLT is not defined.
4180
5da5f805
CY
41812009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4182
4183 * ftfont.c: Conditionalize prototyping and use of
4184 ftfont_variation_glyphs.
4185
ab226c50
SM
41862009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4187
9628fed7
SM
4188 * frame.c (delete_frame): Work around compiler bug.
4189
4190 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4191 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4192 Some more EMACS_INT.
4193 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4194
4195 * xdisp.c (dump_glyph): Fix typo.
4196
ae19ba7c
SM
4197 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4198 (adjust_markers_gap_motion, adjust_markers_for_delete)
4199 (adjust_markers_for_insert, adjust_point)
4200 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4201 (make_gap, copy_text, count_size_as_multibyte, insert)
4202 (insert_and_inherit, insert_before_markers)
4203 (insert_before_markers_and_inherit, insert_1)
4204 (count_combining_before, count_combining_after, insert_1_both)
4205 (insert_from_string, insert_from_string_before_markers)
4206 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4207 (insert_from_buffer_1, adjust_after_replace)
4208 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4209 (replace_range_2, del_range, del_range_1, del_range_byte)
4210 (del_range_both, del_range_2, modify_region)
4211 (prepare_to_modify_buffer, signal_before_change)
4212 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4213 for buffer positions and sizes.
4214 * lisp.h: Adjust prototypes accordingly.
4215
4216 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4217 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4218 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4219
ab226c50
SM
4220 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4221
46dfb8fb
JD
42222009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4223
4224 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4225 lines and columns so we keep the same pixel height and width.
4226
4227 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4228 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4229 (x_handle_net_wm_state): New function to update frame parameter
4230 fullscreen.
4231 (x_term_init): Initialize atoms for _NET_WM_STATE.
4232
4233 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4234
d347e494
SM
42352009-03-27 Kevin Ryde <user42@zip.com.au>
4236
4237 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4238 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4239 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4240 (Fgpm_mouse_stop): Pass that new parameter.
4241 * termhooks.h (close_gpm): Adjust prototype.
4242
84db11d6
SM
42432009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4244
c95a5008
SM
4245 * lisp.h (Fx_focus_frame): Declare.
4246
84db11d6
SM
4247 * callint.c (Fcall_interactively): For '^' just delegate the work to
4248 handle-shift-selection.
4249 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4250
0a1958d6
CY
42512009-03-24 Chong Yidong <cyd@stupidchicken.com>
4252
0bfdff23
CY
4253 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4254
0a1958d6
CY
4255 * data.c (Qinteractive_form): New variable.
4256 (Finteractive_form): Use it.
4257
4258 * eval.c (Fcommandp): Use Qinteractive_form.
4259
58aec0d6
JR
42602009-03-24 Jason Rumney <jasonr@gnu.org>
4261
4262 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4263 Calculate total size precisely. Decode environment variables
4264 before substituting. (Bug#38)
4265
553dd618
KH
42662009-03-24 Kenichi Handa <handa@m17n.org>
4267
4268 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4269 encoding (Bug#2722).
553dd618 4270
c39ea606
JD
42712009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4272
4273 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4274 that gdpy is set.
4275
bc9b2b5e
AM
42762009-03-22 Alan Mackenzie <acm@muc.de>
4277
4278 * callint.c (Finteractive): Clarify the doc string - even
4279 promptless elements need \n separators.
4280
9f995a76
JR
42812009-03-22 Jason Rumney <jasonr@gnu.org>
4282
4283 * w32term.c (syms_of_w32term): Doc fix for
4284 x-use-underline-position-properties.
4285
22749e9a
EZ
42862009-03-21 Eli Zaretskii <eliz@gnu.org>
4287
4288 * w32.c (getpwuid): Change argument type to unsigned.
4289 (struct w32_id): Change type of `rid' member to unsigned.
4290 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4291 argument ID to unsigned. All callers changed.
4292 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4293
e00553bf
EZ
42942009-03-20 Eli Zaretskii <eliz@gnu.org>
4295
4296 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4297 negative, produce a float value.
4298
4299 * dired.c (make_uid, make_gid): New functions.
4300 (Ffile_attributes): Use them to avoid negative UID and GID.
4301
f761d6b6
JB
43022009-03-20 Juanma Barranquero <lekktu@gmail.com>
4303
4304 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4305 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4306 Fix typos in docstrings.
4307
d507f8d7
KH
43082009-03-19 Kenichi Handa <handa@m17n.org>
4309
4310 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4311 changed, use font_load_for_lface to get a new font object.
4312 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4313
4314 * frame.c (x_set_font): Handle the case that ARG is a cons.
4315
c68845e0
GM
43162009-03-19 Glenn Morris <rgm@gnu.org>
4317
4318 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4319
bfa49dd1
CY
43202009-03-19 Chong Yidong <cyd@stupidchicken.com>
4321
4322 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4323
8458d4c1
KH
43242009-03-19 Kenichi Handa <handa@m17n.org>
4325
4326 * charset.c (load_charset_map_from_file): When a mapfile can't be
4327 loaded, signal an error.
4328
78e7d1fe
EZ
43292009-03-18 Eli Zaretskii <eliz@gnu.org>
4330
4331 * dired.c (Ffile_attributes): Make sure UID and GID are always
4332 positive, even if the value is too large for a positive EMACS_INT.
4333 Doc fix.
4334
4335 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4336
5da9fdfa
YM
43372009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4338
4339 * xmenu.c (xdialog_show): Move Fredisplay call ...
4340 (Fx_popup_dialog): ... here.
4341
7519c40d
SM
43422009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4343
4344 * dired.c (file_name_completion): Disable the first optimization just
4345 installed, since it is not implemented correctly.
4346
2cd298e2
SM
43472009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4348
4349 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4350 only if the entry can affect bestmatch.
2cd298e2
SM
4351 Stop the search early, as Ftry_completion already does.
4352
48d37adf
CY
43532009-03-17 Chong Yidong <cyd@stupidchicken.com>
4354
e10c9c93 4355 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4356
9286b16a
CY
43572009-03-15 Chong Yidong <cyd@stupidchicken.com>
4358
4359 * keyboard.c (parse_menu_item): Don't display remappings as menu
4360 equivalent bindings (Bug#788).
4361
f7b146dc
JR
43622009-03-15 Jason Rumney <jasonr@gnu.org>
4363
4364 * w32term.h (WM_EMACS_PAINT): New message.
4365 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4366 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4367 before passing to lisp thread. (Bug#950)
4368
f761d6b6 43692009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4370
d93f9575
CY
4371 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4372 variable as it was never reset.
4373 (ns_term_init): Remove initialization of Lisp-settable defaults
4374 and ns_expand_space.
4375 (-setPanelFromDefaultValues): Remove ns_expand_space.
4376 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4377 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4378 i.e. no additional spacing, similar to Carbon port.
4379
d93f9575
CY
4380 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4381 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4382
305018ec
JD
43832009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4384
4385 * sound.c (alsa_configure): Remove call to deprecated
4386 snd_pcm_sw_params_set_xfer_align.
4387
f761d6b6 43882009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4389
4390 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4391 after clicking in a detached tool bar.
4392 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4393
46e722a9
SM
43942009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4395
348db3dd
SM
4396 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4397 int/Lisp_Object mixup).
46e722a9 4398
a3d16f39
KH
43992009-03-13 Kenichi Handa <handa@m17n.org>
4400
4401 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4402 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4403 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4404 (set_fontset_font): Change ARG to a vector. Handle range_list in
4405 ARG correctly.
4406 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4407 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4408 the above change.
4409 (fontset_from_font): Fix previous change.
fe24f56a 4410 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4411 entry. If FONTSET is the default fontset, don't set the extra
4412 slot of the returning char-table.
4413
b066e6b6
JB
44142009-03-12 Juanma Barranquero <lekktu@gmail.com>
4415
4416 * nsfns.m (Fx_close_connection): Doc fix.
4417 (Fns_do_applescript): Reflow docstring.
4418 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4419 (Fx_display_pixel_width, Fx_display_pixel_height)
4420 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4421 Fix typos in docstrings.
4422 (Fns_set_alpha): Fix typos in error messages.
4423
d472514e 44242009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4425
d472514e 4426 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4427 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4428 were used for such events.
4429
d472514e
JB
4430 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4431 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4432
d472514e 4433 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4434 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4435
fb930676
KH
44362009-03-11 Kenichi Handa <handa@m17n.org>
4437
ff85581a
KH
4438 * font.h (font_open_by_spec): Extern it.
4439
c50b7e98
KH
4440 * font.c (font_open_by_spec): New function.
4441 (font_open_by_name): Use font_open_by_spec.
4442
fb930676
KH
4443 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4444 fontset of the frame.
4445
4446 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4447 modify the default font of frames that use this fontset.
4448 (num_auto_fontsets): New variable.
4449 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4450 name. Be sure to set FONTSET_ASCII to the correct font name.
4451 (update_auto_fontset_alist): New function.
4452
df4e8455
JB
44532009-03-11 Juanma Barranquero <lekktu@gmail.com>
4454
4455 * makefile.w32-in: Update dependencies.
4456
0a375797
AR
44572009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4458
4459 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4460
61313fa3
SM
44612009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4462
4463 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4464
b55103fb
CY
44652009-03-10 Chong Yidong <cyd@stupidchicken.com>
4466
4467 * lread.c (Feval_buffer): Doc fix.
4468
dde2559c
KH
44692009-03-09 Kenichi Handa <handa@m17n.org>
4470
4471 * charset.c (Qfile_name_handler_alist): Extern it.
4472 (load_charset_map_from_file): Temporarily bind
4473 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4474
df4e8455 44752009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4476
47f588bb
GM
4477 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4478 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4479
4ddf94bd
AR
44802009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4481
4c9bdfc2
AR
4482 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4483 (x_set_window_size): Change back to calculated method of setting
4484 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4485 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4486 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4487
fe41ae9e
AR
4488 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4489
4c9bdfc2
AR
4490 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4491 accelerator in parens under GNUstep.
4492
825d0875
KH
44932009-03-06 Kenichi Handa <handa@m17n.org>
4494
4495 These changes are to detect incorrect composition sequence without
f3b3be74 4496 looking ahead the source. (Bug#2370)
825d0875
KH
4497
4498 * coding.h: Include "composite.h".
4499 (enum compisition_state): New enum.
4500 (struct compisition_status): New struct.
4501 (struct iso_2022_spec): New member cmp_status.
4502 (struct emacs_mule_spec): New struct.
4503 (struct coding_system): New members ctext_extended_segment_len and
4504 embedded_utf_8. Change the union member
4505 spec.emacs_mule_full_support to spec.emacs_mule.
4506
4507 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4508 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4509 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4510 (ADD_COMPOSITION_DATA): New arg nbytes.
4511 (emacs_mule_char): New arg cmp_status.
4512 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4513 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4514 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4515 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4516 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4517 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4518 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4519 (EMACS_MULE_COMPOSITION_END): New macro.
4520 (emacs_mule_finish_composition): New function.
4521 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4522 (decode_coding_emacs_mule): Avoid long looking ahead while
4523 handling composition.
4524 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4525 (ENCODE_COMPOSITION_RULE): New macro.
4526 (finish_composition): New function.
4527 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4528 (DECODE_COMPOSITION_START): New implementation.
4529 (DECODE_COMPOSITION_END): Likewise.
4530 (STORE_COMPOSITION_RULE): New macro.
4531 (decode_coding_iso_2022): Avoid long looking ahead while handling
4532 composition, CTEXT extended segment, and embedded UTF-8.
4533 (setup_coding_system): For a coding of type iso-2022, reset
4534 CODING_ISO_EXTSEGMENT_LEN (coding) and
4535 CODING_ISO_EMBEDDED_UTF_8 (coding).
4536 (get_translation): Delete arguments last_block, from_nchars,
4537 to_nchars. Callers changed.
4538 (produce_chars): Don't modify charbuf. Adjusted for the change of
4539 get_translation.
98a326f7 4540 (produce_composition): Adjust for the new annotation sequence.
825d0875 4541 (handle_composition_annotation): Likewise.
98a326f7 4542 (consume_chars): Adjust for the change of get_translation.
825d0875 4543
ccbc4452
AR
45442009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4545
4ddf94bd 4546 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4547
988a7ddb
KH
45482009-03-05 Kenichi Handa <handa@m17n.org>
4549
4550 * font.c (font_select_entity): New function.
4551 (font_find_for_lface): Use font_select_entity to select a font.
4552
4553 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4554 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4555 font with C restriction.
4556
98a326f7 45572009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4558
be1bce46 4559 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4560
10ea2b82
JR
45612009-03-04 Jason Rumney <jasonr@gnu.org>
4562
2c93b248 4563 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4564 characters that have already been read. (Bug#2569)
2c93b248 4565
10ea2b82
JR
4566 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4567 Log an error message if check_image_size failed.
4568 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4569 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4570
71a0c011
EZ
45712009-03-02 Eli Zaretskii <eliz@gnu.org>
4572
4573 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4574 when decoding process output.
4575
2f63bba8
RS
45762009-03-01 Richard M Stallman <rms@gnu.org>
4577
4578 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4579
4580 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4581
0a9564cb
EZ
45822009-02-28 Eli Zaretskii <eliz@gnu.org>
4583
4584 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4585 (decode_coding_emacs_mule, decode_coding_iso_2022)
4586 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4587 (decode_coding_raw_text, decode_coding_charset)
4588 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4589 Honor inhibit-eol-conversion. (Bug #2186)
4590
449148b3
JR
45912009-02-28 Jason Rumney <jasonr@gnu.org>
4592
4593 * coding.c (detect_coding_charset): If not checking latin extra,
4594 fail on characters between 0x80 and 0xA0. (Bug#2354)
4595
a4aee864
EZ
45962009-02-28 Eli Zaretskii <eliz@gnu.org>
4597
4598 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4599 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4600
d88bee5a
GM
46012009-02-27 Glenn Morris <rgm@gnu.org>
4602
4603 * callint.c (Finteractive): Doc fix.
4604
a808f22d
KH
46052009-02-27 Kenichi Handa <handa@m17n.org>
4606
4607 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4608
caf8d60c
CY
46092009-02-27 Chong Yidong <cyd@stupidchicken.com>
4610
4611 * font.c (font_style_to_value): Set value for unknown symbols to
4612 100 instead of 255.
b61137ea
CY
4613 (weight_table, slant_table, width_table): Treat "unspecified" as
4614 the default value.
caf8d60c 4615
1a0de25c
JB
46162009-02-26 Juanma Barranquero <lekktu@gmail.com>
4617
4618 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4619
8fc45744
JB
46202009-02-25 Juanma Barranquero <lekktu@gmail.com>
4621
107bd7d1
JB
4622 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4623 error as soon as a recursive load is detected.
8fc45744 4624
f097e223
AR
46252009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4626
4627 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4628 before caching.
4629
8810a12f
KH
46302009-02-24 Kenichi Handa <handa@m17n.org>
4631
4632 * fontset.c (fontset_find_font): Fix the condition for checking
4633 unavailable font.
4634
2c7d1565
GM
46352009-02-24 Glenn Morris <rgm@gnu.org>
4636
4637 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4638 whitespace that confuses documentation.
4639
a20878b6
MB
46402009-02-23 Miles Bader <miles@gnu.org>
4641
4642 * process.c (Flist_system_processes, Fprocess_attributes)
4643 (syms_of_process): Rename `system-process-attributes' to
4644 `process-attributes'.
4645
b3b58c01
AS
46462009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4647
1b3b981b
AS
4648 * coding.h (struct coding_system): Make safe_charsets a pointer to
4649 unsigned char.
4650 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4651 being 255.
4652 (SAFE_CHARSET_P): Likewise.
4653 (setup_iso_safe_charsets): Properly setup safe_charsets.
4654 (Fdefine_coding_system_internal): Likewise.
4655 (setup_coding_system): Likewise. Remove unneeded casts.
4656 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4657 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4658 unneeded casts.
4659
b3b58c01
AS
4660 * insdel.c (del_range_2): Don't modify gap contents when called
4661 from decode_coding_object. (Bug#1809)
4662
0b6f228c
CY
46632009-02-21 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4666 Qfont_object.
4667 (Ftype_of): Recognize font objects.
4668
4669 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4670
4671 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4672 moved to data.c.
4673
52f8870b
AR
46742009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4675
4676 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4677 async_iconified. Based on a patch by Christian Lynbech
4678 <christian.lynbech@tieto.com>.
4679 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4680
7087d5e9
GM
46812009-02-20 Glenn Morris <rgm@gnu.org>
4682
4683 * syntax.c (Fskip_chars_forward): Fix doc typo.
4684
41d2ceef
CY
46852009-02-20 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4688
1a3b7ca6
CY
46892009-02-19 Chong Yidong <cyd@stupidchicken.com>
4690
4691 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4692
73cce38d
KH
46932009-02-19 Kenichi Handa <handa@m17n.org>
4694
4695 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4696 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4697
a51092ee
DN
46982009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4699
4700 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4701
c423ecca
KH
47022009-02-18 Kenichi Handa <handa@m17n.org>
4703
4704 * font.c (font_check_otf_features): Fix handling of `nil' element.
4705 (Ffont_spec): Describe :lang and :otf in the docstring.
4706
4c1958f4
AS
47072009-02-16 Andreas Schwab <schwab@suse.de>
4708
4709 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4710 string.
4711
5704f39a
KH
47122009-02-16 Kenichi Handa <handa@m17n.org>
4713
4714 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4715 (Bug#1723)
5704f39a 4716
8f0085aa
CY
47172009-02-14 Chong Yidong <cyd@stupidchicken.com>
4718
a057d86a 4719 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4720
4721 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4722 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4723
aff01dd9
EZ
47242009-02-14 Eli Zaretskii <eliz@gnu.org>
4725
4726 * msdos.c (MAX_SCREEN_BUF): New macro.
4727 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4728 Encode the entire run of glyphs sharing the same face, instead of
4729 doing that one glyph at a time (fixes a bug with displaying
4730 double-size characters).
4731
ba301db3
AR
47322009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4733
4734 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4735
4736 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4737 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4738 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4739
4740 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4741 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4742
51d861de
SM
47432009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4744
ac146f82 4745 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4746 invisible areas.
4747
7fed8996
JR
47482009-02-12 Jason Rumney <jasonr@gnu.org>
4749
631ea4fb
JR
4750 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4751 (add_font_entity_to_list): Call check_face_name even when family
4752 is unspecified.
4753
cb4a3e42
JR
4754 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4755 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4756 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4757
7fed8996 4758 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4759 raster fonts. (Bug#2219)
7fed8996 4760
895416e3
KH
47612009-02-12 Kenichi Handa <handa@m17n.org>
4762
4763 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4764 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4765 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4766 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4767 (find_automatic_composition): While looking forward and backward,
4768 check static composition. Fix where to stop looking forward.
4769 (composition_adjust_point): Fix checking of static composition.
4770 (Fcomposition_get_gstring): Pay attention to
1dacf998 4771 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4772
4773 * lisp.h (fast_looking_at): Extern it.
4774
4775 * search.c (fast_looking_at): New function.
4776
51d861de 4777 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4778 <struct glyph>.u.cmp.to.
4779 (append_composite_glyph): Likewise.
4780
51d861de 4781 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4782 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4783 composition.
51d861de 4784 (append_composite_glyph): Adjust for the change of
895416e3
KH
4785 <strcut glyph>.u.cmp.to.
4786
8510724d
JB
47872009-02-11 Juanma Barranquero <lekktu@gmail.com>
4788
4789 * casetab.c (init_casetab_once):
4790 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4791 * font.c (font_update_lface):
4792 * fontset.c (Fnew_fontset):
4793 * ftfont.c (ftfont_drive_otf):
4794 * xfont.c (xfont_open):
4795 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4796
294fa707
SM
47972009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4798
4799 * fileio.c (Fwrite_region): !NILP -> CONSP.
4800
b5bfebec
AS
48012009-02-10 Andreas Schwab <schwab@suse.de>
4802
4803 * process.c (send_process): Properly relocate pointer into data
adab88bd 4804 when using encoded data. (Bug#2272)
b5bfebec 4805
cb84a2be
KH
48062009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4807
4808 * coding.c (detect_coding_charset): Fix previous change.
4809
89e09428
JR
48102009-02-08 Jason Rumney <jasonr@gnu.org>
4811
4812 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4813 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4814
4470a277
AS
48152009-02-07 Andreas Schwab <schwab@suse.de>
4816
4817 * unexelf.c (unexec): Fix error message.
4818
3175b12a
AR
48192009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4820
4821 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4822 when modal window is active. (Bug #2152)
3175b12a
AR
4823 (applicationShouldTerminate:): Remove now-unneeded while loop
4824 around NSRunAlertPanel.
4825
4826 * nsmenu.m (popupSession): New file-global variable.
4827 (pop_down_menu): End the popupSession before closing dialog.
4828 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4829 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4830 don't query NSApp for events (just sleep instead).
4831
8434d0b8
EZ
48322009-02-07 Eli Zaretskii <eliz@gnu.org>
4833
51d861de
SM
4834 * coding.c (syms_of_coding) <translation-table-for-input>:
4835 Modify doc string to discourage use for character code unification.
8434d0b8 4836
aa82edfd
CY
48372009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4838
4839 * atimer.c (run_timers): Update pending_atimers.
4840
2d283c7c
CY
48412009-02-06 Chong Yidong <cyd@stupidchicken.com>
4842
eb306cab
CY
4843 * image.c (svg_load_image): Fix last change.
4844
2d283c7c
CY
4845 * xfns.c (Fx_create_frame): Signal an error if no font is
4846 found (Bug#2147).
4847
4d8e170e
JB
48482009-02-05 Juanma Barranquero <lekktu@gmail.com>
4849
4850 * character.c (syms_of_character) <script-representative-chars>:
4851 Fix typo in docstring.
4852
c96169a0
AR
48532009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4854
4855 * nsmenu.m (pop_down_menu): New function.
4856 (ns_popup_dialog): Call it on unwind.
4857 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4858 call timer_check() (Bug#2154).
4859 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4860 handling_signal is set.
4861 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4862
31fd7c5c 4863 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4864
4865 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4866
4867 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4868
51d861de
SM
4869 * keyboard.c (poll_for_input_1, handle_async_input):
4870 Set handling_signal under HAVE_NS.
c96169a0 4871
aacd8ba1
GM
48722009-02-04 Glenn Morris <rgm@gnu.org>
4873
4874 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4875
4cb75c4b
KH
48762009-02-04 Kenichi Handa <handa@m17n.org>
4877
4878 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4879
4880 * charset.c (Fchar_charset): New optional arg restriction.
4881
4882 * coding.h (coding_system_charset_list): Extern it.
4883
4884 * coding.c (coding_system_charset_list): New function.
4885
4886 * composite.c: Include coding.h and termhooks.h.
4887 (composition_gstring_p): Fix for the terminal case.
4888 (composition_gstring_width): Likewise.
4889 (fill_gstring_body): Likewise.
4890 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4891 the frame.
4892 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4893 is within a composition.
867d4bb3 4894 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4895
4896 * term.c (encode_terminal_code): Fix handling of composition.
4897 (produce_composite_glyph): For static composition, get pixel_width
4898 from struct composition.
4899
826ba17e
AS
49002009-02-02 Andreas Schwab <schwab@suse.de>
4901
4902 * unexelf.c (unexec): Handle unaligned bss offset.
4903
8ad093db
AR
49042009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4905
4906 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4907 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4908
8ad093db
AR
4909 * keyboard.c (handle_interrupt): Don't call
4910 quit_throw_to_read_char() under NS.
d0a76a6e 4911
8ad093db
AR
4912 * blockinput.h: Remove NS-specific code.
4913
4d18a7a2
DN
49142009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4915
db878925
DN
4916 * dispnew.c (window_change_signal): Don't try to get the size of a
4917 suspended tty frame.
4918 * term.c (Fresume_tty): Resize if the size has changed while the
4919 tty was suspended.
4920
4d18a7a2
DN
4921 * alloc.c (mark_stack): Properly conditionalize previous change.
4922
8984df7c
JB
49232009-01-30 Juanma Barranquero <lekktu@gmail.com>
4924
4925 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4926 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4927 Remove; this code is not used on Windows.
4928
75f4f1ac
EZ
49292009-01-30 Eli Zaretskii <eliz@gnu.org>
4930
4931 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4932 EOLs that also has stray ^M characters.
4933
07a1e794
JB
49342009-01-30 Juanma Barranquero <lekktu@gmail.com>
4935
4936 * atimer.c (run_timers, alarm_signal_handler):
4937 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4938 * w32inevt.c (w32_console_read_socket):
4939 * w32term.c (w32_read_socket):
4940 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4941
a8b11cc9
CY
49422009-01-30 Chong Yidong <cyd@stupidchicken.com>
4943
4944 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4945 Initialize it as a relative filename pattern.
4946 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4947 (Fcall_process_region): Simplify temp file creation using
4948 temporary-file-directory.
4949
c279587b
EZ
49502009-01-29 Eli Zaretskii <eliz@gnu.org>
4951
4952 * msdos.c: Rename pending_signals to msdos_pending_signals.
4953 (sig_suspender, sigprocmask): Adjust.
4954
a8fe3242
CY
49552009-01-29 Chong Yidong <cyd@stupidchicken.com>
4956
4957 * keyboard.c (pending_signals): New var.
4958 (poll_for_input, input_available_signal, init_keyboard): Set it.
4959 (process_pending_signals): New function.
4960
4961 * lisp.h (QUIT): Check pending_signals instead of
4962 interrupt_input_pending. Use process_pending_signals.
4963
51d861de 4964 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4965
51d861de 4966 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4967
4968 * sysdep.c (emacs_write): Use process_pending_signals.
4969
4970 * xterm.c (XTread_socket): Update pending_signals.
4971
4972 * w32term.c (w32_read_socket): Update pending_signals.
4973
4974 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4975
6570a1c4
KH
49762009-01-29 Kenichi Handa <handa@m17n.org>
4977
4978 * xftfont.c (xftfont_has_char): New function.
4979 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4980
d72a4afa
AR
49812009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4982
4983 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4984 under GNUstep.
4985 (ns_query_color): New declaration.
4986
4987 * nsterm.m (ns_confirm_quit): New variable.
4988 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4989 (EmacsApp-applicationShouldTerminate:): Use it.
4990 (EmacsPrefsController): Let user set it.
4991 (ns_query_color): New function.
4992 (ns_defined_color): Use it.
4993 (ns_initialize): Drop.
4994 (ns_term_init): Add two lines from ns_initialize(), and set
4995 input_interrupt_mode to nil.
4996
4997 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4998 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4999
9fe78804
KH
50002009-01-28 Kenichi Handa <handa@m17n.org>
5001
5002 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5003 (fontset_get_font_group): Remember that no font-group is specified
5004 for C.
9fe78804 5005
fa57de36
CY
50062009-01-27 Chong Yidong <cyd@stupidchicken.com>
5007
930600e9
CY
5008 * fns.c (concat): Check for string overflow (bug#1787).
5009
fa57de36
CY
5010 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5011 Quadruple undo limits (bug#1501).
5012
7179ce7b
KH
50132009-01-27 Kenichi Handa <handa@m17n.org>
5014
5015 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5016 directly use GT_Get_Char_index.
5017
5018 * xftfont.c (struct xftfont_info): New member `index'.
5019
5020 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5021 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5022
5be8fcc0
CY
50232009-01-26 Kenichi Handa <handa@m17n.org>
5024
5025 * fontset.c (fontset_find_font): Fix handling of non-cons return
5026 value of fontset_get_font_group.
5027 (fontset_font): Revert last change.
5028
19ae3e61
JR
50292009-01-26 Jason Rumney <jasonr@gnu.org>
5030
5031 * w32font.c (w32font_list_internal): Return quickly if registry is
5032 unknown. Simplify final return.
5033 (add_font_entity_to_list): Break complex logic down into more
5034 manageable chunks. Move unknown registry check to
5035 w32font_list_internal.
5036
8612b71a
AR
50372009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5038
5039 Changes to remove Feval calls from GUI under NS.
5040
d8038940
JB
5041 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5042 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5043 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5044
5045 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5046 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5047 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5048 instead of NON_ASCII_KEYSTROKE_EVENT.
5049 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5050 (EmacsApp-applicationShouldTerminate:): Query user.
5051 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5052 instead of Feval.
5053
5054 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5055
5056 * keyboard.c (kbd_buffer_get_event): Check for it.
5057 (keys_of_keyboard): Define lispy keys for
5058 ns-put/unput-working-text.
5059
5060 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5061 versions.
5062 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5063
6288ae55
CY
50642009-01-25 Chong Yidong <cyd@stupidchicken.com>
5065
5066 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5067 setting current_buffer directly. (Bug#2044)
6288ae55 5068
289e7f8f
CY
50692009-01-24 Chong Yidong <cyd@stupidchicken.com>
5070
5ce87308 5071 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5072 any work. (Bug#1952, bug#1990).
5ce87308 5073
64cc3cf6 5074 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5075
b3243e6f
AR
50762009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5077
5078 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5079 (ns_no_defaults): New declaration.
5080 (main): Use it.
e0d2e69a 5081
d900b2af 5082 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5083
d900b2af 5084 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5085
d900b2af
AR
5086 * nsterm.m (ns_no_defaults): New variable.
5087 (ns_initialize): Don't read defaults when ns_no_defaults.
5088 (EmacsView-readSelectionFromPasteboard:)
5089 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5090 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5091 (ns_dumpglyphs_stretch): New function.
5092 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5093 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5094
e0d2e69a
AR
5095 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5096
3ac71f5d
CY
50972009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5098
5099 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5100 call for Sparc64.
5101
3fe53a83
AR
51022009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5103
5104 * nsfns.m:
5105 * nsgui.h:
5106 * nsmenu.m:
5107 * nsselect.m:
5108 * nsterm.h:
5109 * nsterm.m: Remove '23' comments that indicated code added during
5110 update from emacs-20 -> emacs-23.
5111
10f87c6f 51122009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5113
5114 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5115 ns_alternate_modifier. (Bug#1217)
a3b53a85 5116
c7cef62d
AR
5117 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5118 Display all shortcuts, including those w/o super modifier.
5119
575fb8bd
AR
5120 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5121
918b848b
CY
51222009-01-22 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * fileio.c (Vwrite_region_post_annotation_function)
5125 (Vwrite_region_annotation_buffers): New vars.
5126 (build_annotations_unwind): Just reset
5127 Vwrite_region_annotation_buffers.
5128 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5129 Call write-region-post-annotation-function.
5130 (build_annotations): Add to Vwrite_region_annotation_buffers if
5131 buffer changes.
5132
a39e2539
AR
51332009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5134
5135 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5136 Tiger.
51d861de
SM
5137 * nsfns.m (ns_do_applescript):
5138 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5139
35ed44db
AR
51402009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5141
5142 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5143
cbe0b5bf
AR
51442009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5145
5146 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5147
6049d3a0
AR
5148 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5149
5150 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5151 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5152 handle Ctrl-tab. (Bug#1841)
5153 (ns_get_color): Use unsigned long long for scanned hex string value.
5154 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5155 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5156 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5157 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5158 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5159 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5160 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5161
d3810c21 5162 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5163 DPI. (Bug#1316)
d3810c21
AR
5164 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5165 values in onTiger section.
4c7077c3 5166
e301e634
CY
51672009-01-19 Chong Yidong <cyd@stupidchicken.com>
5168
7f82490b
CY
5169 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5170 Check return value of font_spec_from_name.
64cc3cf6 5171 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5172
5173 * font.c (font_spec_from_name): Return Qnil if font name could not
5174 be parsed.
5175 (font_parse_name): Treat a `?' character as part of an XLFD.
5176
e301e634
CY
5177 * fns.c (Fsubstring): Doc fix.
5178
1c0db158
KH
51792009-01-19 Kenichi Handa <handa@m17n.org>
5180
51d861de 5181 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5182 (ftfont_list): Likewise.
5183
acf20901
JB
51842009-01-18 Juanma Barranquero <lekktu@gmail.com>
5185
fff4e459
JB
5186 * dbusbind.c (Fdbus_register_signal):
5187 * process.c (conv_sockaddr_to_lisp):
5188 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5189
acf20901
JB
5190 * callproc.c (Fgetenv_internal): Doc fix.
5191
e7abcdfb
CY
51922009-01-16 Chong Yidong <cyd@stupidchicken.com>
5193
5194 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5195 it is not even used.
5196
b60861e6
GM
51972009-01-16 Glenn Morris <rgm@gnu.org>
5198
5199 * font.c (Ffont_variation_glyphs): Silence compiler.
5200
8db52afe
JB
52012009-01-15 Juanma Barranquero <lekktu@gmail.com>
5202
5203 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5204 Reported by David Robinow <drobinow@gmail.com>.
5205
4cddb209
KH
52062009-01-15 Kenichi Handa <handa@m17n.org>
5207
51d861de 5208 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5209
f247f67b
JR
52102009-01-14 Jason Rumney <jasonr@gnu.org>
5211
5212 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5213 never a fontset. (Bug#1562)
f247f67b 5214
f56a4450
KH
52152009-01-14 Kenichi Handa <handa@m17n.org>
5216
5217 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5218 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5219
4e99855e
CY
52202009-01-13 Chong Yidong <cyd@stupidchicken.com>
5221
5222 * font.c (font_clear_prop): If clearing the family, clear the font
5223 width index too.
5224
fff4e459 5225 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5226
24f01470
JB
52272009-01-12 Juanma Barranquero <lekktu@gmail.com>
5228
5229 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5230 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5231 functions, use sizeof.
5232
a41240a3
MR
52332009-01-12 Martin Rudalics <rudalics@gmx.at>
5234
5235 * keyboard.c (read_char): Fix case where last_nonmenu_event
5236 returned a bad value with submenus. (Bug#447)
5237
944636b8
CY
52382009-01-12 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5241 family, clear the font width index too.
5242
0dad7c6f
JR
52432009-01-11 Jason Rumney <jasonr@gnu.org>
5244
5245 * keyboard.c (cmd_error_internal): Exit when errors occur before
5246 frame creation and not in daemon mode. (Bug#1836)
5247
7c2363af
CY
52482009-01-10 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5251 of a display vector, backtrack.
5252 (try_window_reusing_current_matrix): Check glyph type before
5253 referencing charpos member.
5254
97b1b294
EZ
52552009-01-10 Eli Zaretskii <eliz@gnu.org>
5256
5257 Fix Bug #876:
5258
5259 * coding.c (inhibit_null_byte_detection): New variable.
5260 (detect_coding, detect_coding_system): Don't pay attention to null
5261 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5262 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5263 <inhibit-iso-escape-detection>: Doc fix.
5264
4624b6e3
JR
52652009-01-09 Jason Rumney <jasonr@gnu.org>
5266
5267 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5268 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5269 Only report Unicode Plane 2 fonts as unicode-sip.
5270
323b840c
CY
52712009-01-09 Chong Yidong <cyd@stupidchicken.com>
5272
51d861de
SM
5273 * xfaces.c (Fx_font_family_list): Delete function.
5274 Move compatibility version to faces.el.
323b840c 5275
51d861de 5276 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5277
eba7400d
MR
52782009-01-09 Martin Rudalics <rudalics@gmx.at>
5279
5280 * frame.c (x_set_frame_parameters): Remember requested value for
5281 fullscreen before it's reset by the parameter handler.
5282
4b09796d
GM
52832009-01-09 Glenn Morris <rgm@gnu.org>
5284
5285 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5286 (last_command_event): ... and update all users.
4b09796d
GM
5287 (last_input_char): For clarity, rename to...
5288 (last_input_event): ... and update all users.
5289 (last-command-char, last-input-char): Move to subr.el as aliases.
5290 * cmds.c, commands.h: Update for last_command_char rename.
5291
14ccea62
CY
52922009-01-08 Chong Yidong <cyd@stupidchicken.com>
5293
51d861de 5294 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5295
5f004711
JR
52962009-01-08 Jason Rumney <jasonr@gnu.org>
5297
5298 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5299 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5300 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5301 Don't declare.
fff4e459 5302 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5303 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5304
b71f6f73
KH
53052009-01-07 Kenichi Handa <handa@m17n.org>
5306
50b06221 5307 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5308 remember the coding system used for decoding in
50b06221
KH
5309 coding_system (Bug#1039).
5310
b71f6f73 5311 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5312 breaking the loop. (Bug#870)
b71f6f73
KH
5313 (decode_coding_utf_16, decode_coding_emacs_mule)
5314 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5315 (decode_coding_charset): Likewise.
5316
56f668f7
MR
53172009-01-05 Martin Rudalics <rudalics@gmx.at>
5318
5319 * frame.c (x_set_frame_parameters): Make sure height (width) get
5320 applied when fullwidth (fullheight) is set. (Bug#1522)
5321
5da9424d
JB
53222009-01-04 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5325 (utc_base): Declare as ULONGLONG, not long double.
5326 (convert_time_raw): Delete.
5327 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5328 (initialize_utc_base): New function.
5329 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5330 (convert_from_time_t): Use initialize_utc_base; compute result with
5331 64-bit arithmetic.
5332 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5333
c4605e09
EZ
53342009-01-03 Eli Zaretskii <eliz@gnu.org>
5335
9acef61c 5336 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5337 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5338 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5339 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5340 [!subprocesses]: Define.
5341 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5342 (Flist_system_processes, Fsystem_process_attributes)
5343 [!subprocesses]: Call list_system_processes and
5344 system_process_attributes instead of returning Qnil.
5345
9acef61c
JB
5346 * dosfns.c (system_process_attributes, list_system_processes):
5347 New functions.
c4605e09
EZ
5348
5349 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5350
5351 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5352 Don't use the default (no-op) implementation.
5353
8b7d0a16
JR
53542009-01-03 Jason Rumney <jasonr@gnu.org>
5355
a6d46bc1
JR
5356 * keyboard.c (parse_modifiers_uncached): Wheel events are
5357 clicks (bug#687).
5358
8b7d0a16
JR
5359 * w32term.c (x_query_colors, x_query_color): New functions.
5360
5361 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5362 (svg_load_image): Cast returned pointers from dynamically loaded
5363 functions. Eliminate W32 specific code.
5364
bfe11752
DN
53652009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5366
89e2438a
DN
5367 * nsfns.m (x_set_foreground_color, x_set_background_color)
5368 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5369 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5370 x_ prefix instead of ns_. Update references.
5371 (syms_of_nsfns): Add a FIXME comment.
5372
5373 * nsterm.m (x_set_cursor_type): New prototype.
5374 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5375
bfe11752
DN
5376 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5377 for Solaris instead of incorrectly providing Qutime and Qcutime.
5378
031da700
EZ
53792009-01-02 Eli Zaretskii <eliz@gnu.org>
5380
5381 * w32.c (process_times): Compute sum of utime and stime.
5382 (system_process_attributes): Add Qtime to the alist.
5383
5384 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5385 and add them to the alist.
5386
5387 * process.c (top level) <Qtime, Qctime>: New variables.
5388 (syms_of_process): staticpro them.
5389 (Fsystem_process_attributes): Add their documentation to the doc
5390 string.
5391
5392 * process.h: Declare Qtime and Qctime.
5393
df23bf08
JR
53942009-01-02 Jason Rumney <jasonr@gnu.org>
5395
9acef61c 5396 * image.c (Qgobject): New symbol.
df23bf08
JR
5397 (syms_of_image): Initialize it.
5398 (init_svg_functions): Load some functions from gobject library.
5399
5bbdf7aa
DN
54002009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5401
5402 * frame.c (make_terminal_frame): Remove redundant code and useless
5403 block.
5404
63136da6
AS
54052009-01-01 Andreas Schwab <schwab@suse.de>
5406
5407 * process.c (conv_sockaddr_to_lisp): Add workaround for
5408 getsockname bug on BSD.
5409
9ef69046
CY
54102009-01-01 Chong Yidong <cyd@stupidchicken.com>
5411
d6fafbe0
CY
5412 * xfns.c (x_create_tip_frame): Set border width of the X window.
5413
51d861de 5414 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5415
f9c34147
JR
54162009-01-01 Jason Rumney <jasonr@gnu.org>
5417
9acef61c 5418 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5419 Don't block input, as per earlier xterm.c changes.
5420
f5497e45
AR
54212008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5422
5423 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5424 (ns_appkit_version_int): New function.
5425 (x-server-version): Use ns_appkit_version_int and follow 21+
5426 convention of returning 3 integers.
5427
c19cab20
KH
54282008-12-30 Kenichi Handa <handa@m17n.org>
5429
5430 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5431 (CHAR_SURROGATE_PAIR_P): New macro.
5432
5433 * font.h (struct font_driver): New member get_variation_glyphs.
5434
9acef61c 5435 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5436 (Ffont_variation_glyphs): New function.
5437 (syms_of_font): Defsubr it.
5438
5439 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5440 ftfont_variation_glyphs.
5441 (setup_otf_gstring): New function.
5442 (ftfont_drive_otf): Use it.
5443 (ftfont_shape_by_flt): Handle variation selector.
5444 (ftfont_variation_glyphs): New function.
5445
28cd591f
MR
54462008-12-30 Martin Rudalics <rudalics@gmx.at>
5447
5448 * frame.c (Vemacs_iconified): Remove.
5449
7f714baf
JR
54502008-12-30 Jason Rumney <jasonr@gnu.org>
5451
5452 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5453 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5454
9d2d22ab
CY
54552008-12-30 Chong Yidong <cyd@stupidchicken.com>
5456
5457 * indent.c (Fvertical_motion): Don't advance iterator if we have
5458 reseated to the desired position.
5459
5460 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5461 checking for pos match.
5462
545312c2
KH
54632008-12-30 Kenichi Handa <handa@m17n.org>
5464
1ede3eb6
KH
5465 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5466 just get the low 8-bit of the code.
5467
545312c2
KH
5468 * font.c (font_intern_prop): Validate str as multibyte.
5469
bd7bbf29
DN
54702008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5471
31e0750e
DN
5472 * dispextern.h (struct face): Move lface and hash from the middle
5473 of bitfields.
5474
bd7bbf29
DN
5475 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5476
b5672e7c
DN
54772008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5478
5479 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5480 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5481 instead of intervals.h.
5482
d704470f
AS
54832008-12-26 Andreas Schwab <schwab@suse.de>
5484
5485 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5486 cons.
5487
54b33868
MR
54882008-12-26 Martin Rudalics <rudalics@gmx.at>
5489
5490 * textprop.c (Qminibuffer_prompt): New variable.
5491 (syms_of_textprop): Initialize it.
5492 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5493 in minibuffer-prompt face. (Bug#1662)
5494
40b615d6
JR
54952008-12-25 Jason Rumney <jasonr@gnu.org>
5496
5497 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5498
baae5c2d
JR
54992008-12-24 Jason Rumney <jasonr@gnu.org>
5500
5501 * ralloc.c (r_alloc_reset_variable): New function.
5502
5503 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5504 record of what points where. (Bug#716)
baae5c2d 5505
a9051c88
DN
55062008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5507
5508 * minibuf.c (read_minibuf): Follow the non-interactive case when
5509 running as a daemon, before detaching.
5510
8b146312
AS
55112008-12-22 Andreas Schwab <schwab@suse.de>
5512
5513 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5514 * gtkutil.c (free_widget_value): Use xfree instead of free.
5515
56f2de10
MR
55162008-12-22 Martin Rudalics <rudalics@gmx.at>
5517
5518 * frame.c (delete_frame): New function derived from
5519 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5520 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5521 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5522 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5523 * frame.h: Extern delete_frame.
5524 * window.c (window_loop):
5525 * terminal.c (delete_terminal):
5526 * xterm.c (x_connection_closed):
5527 * xfns.c (Fx_hide_tip):
9acef61c 5528 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5529
1fc200d6
JR
55302008-12-21 Jason Rumney <jasonr@gnu.org>
5531
5532 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5533 when character maps to .notdef character.
5534
5e252df2
SM
55352008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5536
5537 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5538
99b72cc4
JR
55392008-12-20 Jason Rumney <jasonr@gnu.org>
5540
5541 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5542 a graphical frame on Windows. (Bug#1325)
99b72cc4 5543
acc49a52
JD
55442008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5545
5546 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5547
6ea15123
CY
55482008-12-20 Chong Yidong <cyd@stupidchicken.com>
5549
5550 * minibuf.c (Fread_buffer): Doc fix.
5551
b2dab6c8
JR
55522008-12-20 Jason Rumney <jasonr@gnu.org>
5553
54ea0c87 5554 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5555 server name in UNC paths. (Bug#719)
54ea0c87 5556
b2dab6c8 5557 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5558 charbuf. (Bug#1035)
b2dab6c8 5559
6d1921be
DN
55602008-12-19 Daniel Engeler <engeler@gmail.com>
5561
5562 * sysdep.c (serial_configure): Fix typo.
5563
53934c98
DN
55642008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5565
5566 * sysdep.c: Include alloca.h.
f4f634e8
DN
5567 (system_process_attributes): Add implementation for Solaris.
5568
5569 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5570
06e111a6
DN
55712008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5572
5573 Reorganize implementation of Flist_system_processes and
5574 Fsystem_process_attributes. No functional changes.
5575 * process.c: Don't #include pwd.h, grp.h and limits.h.
5576 (Flist_system_processes): Just call list_system_processes.
5577 (Fsystem_process_attributes): Just call system_process_attributes.
5578 (procfs_list_system_processes, time_from_jiffies)
5579 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5580 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5581
5582 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5583 (list_system_processes): Rename from
5584 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5585 Provide a do nothing implementation.
5586 (system_process_attributes): Rename from
5587 procfs_list_system_processes.
5588 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5589 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5590
5591 * w32.c (list_system_processes): Rename from
5592 w32_list_system_processes.
5593 (system_process_attributes): Rename from
5594 w32_system_process_attributes.
5595
5596 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5597
5598 * process.h (w32_list_system_processes)
5599 (w32_system_process_attributes): Remove.
362654a6
JB
5600 (list_system_processes, system_process_attributes):
5601 New prototypes.
06e111a6 5602
6a705b23
KH
56032008-12-19 Kenichi Handa <handa@m17n.org>
5604
5605 * xfont.c (xfont_decode_coding_xlfd): New function.
5606 (xfont_encode_coding_xlfd): New function.
5607 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5608 (xfont_list): Decode and encode XLFD by iso-8859-1.
5609 (xfont_match): Likewise.
5610 (xfont_list_family): Likewise.
5611 (xfont_open): Likewise.
5612
d66c0241 5613 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5614 names are utf-8.
5615
d66c0241 5616 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5617 names are utf-8.
5618
5a130941
JD
56192008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5620
5621 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5622 changed.
bfd20325
JD
5623 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5624 clicked on a detached tool bar button.
5a130941 5625
fd95644b
DN
56262008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5627
5628 * emacs.c (main): Print and error and exit when no data is read
5629 from the pipe.
5630
e6eee6ae
JR
56312008-12-17 Jason Rumney <jasonr@gnu.org>
5632
5633 * w32font.c (w32font_has_char): Always return -1.
5634
a35dd56b
KH
56352008-12-16 Kenichi Handa <handa@m17n.org>
5636
5637 * font.c (font_open_entity): Fix previous change.
5638
0e3635c2
DN
56392008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5640
5641 * process.c: Include <limits.h>.
5642
d4835507 56432008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5644
5645 * font.c (font_update_drivers): Fix mistake in reconstructing the
5646 driver list.
5647
56482008-12-16 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * font.c (font_clear_cache): Fix format of font cache data.
5651
e2cbc401
CY
56522008-12-15 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * xftfont.c (xftfont_open): Free Xft font pattern if
5655 XftFontOpenPattern fails.
5656
5657 * xterm.c (x_free_frame_resources): Remove extraneous call to
5658 free_frame_faces.
5659
b131d535
CY
56602008-12-13 Chong Yidong <cyd@stupidchicken.com>
5661
5662 * xterm.c (x_delete_display): Move xim_close_dpy call to
5663 x_delete_terminal.
5664 (x_delete_terminal): Call xim_close_dpy.
5665
e6df5336
JR
56662008-12-13 Jason Rumney <jasonr@gnu.org>
5667
5668 * w32font.c (intern_font_name): New function.
5669 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5670 (w32font_open_internal, Fx_select_font): Decode font name.
5671 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5672
5673 * w32font.h (intern_font_name): Declare new function.
5674
5675 * w32uniscribe.c (add_opentype_font_name_to_list):
5676 Use intern_font_name.
5677
20d68145
CY
56782008-12-13 Chong Yidong <cyd@stupidchicken.com>
5679
9f2554de
CY
5680 * frame.c (Fdelete_frame): Call free_font_driver_list.
5681
3d9bec9a
CY
5682 * font.c (free_font_driver_list): Implement missing function.
5683
20d68145
CY
5684 * w32term.c (w32_term_init): Don't initialize the image cache
5685 here; it will be done in init_frame_faces.
5686
5687 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5688 (struct x_display_info): Remove unused member null_pixel. New
5689 member xim_callback_data.
5690
5691 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5692 (xim_initialize): Save pointer to callback function data.
5693 (xim_close_dpy): Free callback function data. Call XCloseIM,
5694 reverting 2008-11-04 change by David Smith.
5695 (x_term_init): Don't initialize the image cache here; it will be
5696 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5697 (x_delete_display): Free x_dnd_atoms member.
5698
96f9306b
KH
56992008-12-13 Kenichi Handa <handa@m17n.org>
5700
6dec9044
JB
5701 * font.c (font_rescale_ratio): Moved from xfaces.c.
5702 Argument type changed. Handle a font-spec too.
96f9306b 5703 (font_score): Check Vface_font_rescale_alist.
6dec9044 5704 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5705
5706 * xfaces.c (font_rescale_ratio): Moved to font.c.
5707
8d5b4964
CY
57082008-12-13 Chong Yidong <cyd@stupidchicken.com>
5709
5710 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5711
e6df5336
JR
57122008-12-12 Jason Rumney <jasonr@gnu.org>
5713
5714 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5715 Vwindow_system_version to the real w32 major version.
5716
97c6058a
DN
57172008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5718
5719 * term.c (init_tty): Move setting the terminal name before the
5720 potential user: maybe_fatal.
5721
ec4e88d7
CY
57222008-12-11 Chong Yidong <cyd@stupidchicken.com>
5723
d4835507
JB
5724 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5725 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5726
b4233ec9
JR
57272008-12-11 Jason Rumney <jasonr@gnu.org>
5728
8ec71e23 5729 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5730 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5731
b4233ec9 5732 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5733 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5734
011a0143
JB
57352008-12-11 Juanma Barranquero <lekktu@gmail.com>
5736
5737 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5738
3c309f34
JB
57392008-12-11 Juanma Barranquero <lekktu@gmail.com>
5740
5741 * process.c (Fsystem_process_attributes, syms_of_process):
5742 Fix typo in name of Ssystem_process_attributes.
5743 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5744
fedc6ab5
JB
57452008-12-11 Juanma Barranquero <lekktu@gmail.com>
5746
5747 * syntax.c (Fmodify_syntax_entry): Doc fix.
5748
ba3de0e8
JB
57492008-12-10 Juanma Barranquero <lekktu@gmail.com>
5750
5751 * font.c (Ffont_spec): Move usage to end of docstring.
5752
174f1c74
JR
57532008-12-10 Jason Rumney <jasonr@gnu.org>
5754
5755 * w32font.c (Qcham): New symbol.
5756 (font_supported_scripts): Add cham, and comments for other new
5757 scripts in bitfield from OpenType spec.
9d32f818
JR
5758 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5759 contain characters beyond the bmp.
174f1c74 5760
7b649478
KH
57612008-12-10 Kenichi Handa <handa@m17n.org>
5762
5763 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5764 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5765 Qunicode_sip.
5766
2133e2d1
JB
57672008-12-10 Juanma Barranquero <lekktu@gmail.com>
5768
5769 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5770 (Fcoding_system_put): Use QCdefault_char.
5771 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5772
9af886ee
CY
57732008-12-09 Chong Yidong <cyd@stupidchicken.com>
5774
74d819eb
CY
5775 * xftfont.c (syms_of_xftfont): Fix typo.
5776
4ccfa1c0 5777 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5778
7c19d3ae
DN
57792008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5780
5781 * emacs.c (main): Close daemon_pipe on exec.
5782
567826bb
CY
57832008-12-08 Chong Yidong <cyd@stupidchicken.com>
5784
5785 * termchar.h (struct tty): New members termcap_term_buffer and
5786 termcap_strings_buffer.
5787
5788 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5789 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5790 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5791 All callers changed.
5792 (init_tty): Store termcap data and string buffers in new struct
5793 tty members termcap_term_buffer and termcap_strings_buffer.
5794 (delete_tty): Free them.
4ccfa1c0 5795 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5796
aa96c42b
SZ
57972008-12-07 Seiji Zenitani <zenitani@mac.com>
5798
5799 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5800 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5801
b7e1d896
CY
58022008-12-06 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * coding.c (make_conversion_work_buffer): Disable buffer
5805 modification hooks in the work buffer.
5806
b5ec91a5
EZ
58072008-12-05 Eli Zaretskii <eliz@gnu.org>
5808
5809 * process.c (procfs_system_process_attributes): If `nread' has a
5810 negative value, assign zero to it.
5811
a5d2a52b
CY
58122008-12-05 Chong Yidong <cyd@stupidchicken.com>
5813
68c5540b 5814 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5815
7bf1bb21
KH
58162008-12-05 Kenichi Handa <handa@m17n.org>
5817
5818 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5819 second character is a combining character.
5820
2fdc7d00
EZ
58212008-12-05 Eli Zaretskii <eliz@gnu.org>
5822
5823 * process.c (procfs_system_process_attributes): Don't use cmd,
5824 cmdsize, and q without initializing them first.
5825
bf6bfba8
JR
58262008-12-04 Jason Rumney <jasonr@gnu.org>
5827
5828 * w32font.c (w32font_draw): Initialize orig_clip before getting
5829 it, and delete it when finished.
5830
a3b1a468
DN
58312008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5832
5833 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5834 case when running as a daemon before detaching.
5835
8b8be8eb
JB
58362008-12-03 Juanma Barranquero <lekktu@gmail.com>
5837
805f2638 5838 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5839
b1bde622
KH
58402008-12-03 Kenichi Handa <handa@m17n.org>
5841
e500c47d
KH
5842 * font.c (font_at): Set `multibyte' at first.
5843
ca516334
KH
5844 * coding.c (decode_coding_charset): Check type of an element of
5845 vector VALIDS.
7bf1bb21 5846 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5847
4ccfa1c0 5848 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5849 (font_for_char): Likewise.
5850
1e5ecd37
CY
58512008-12-03 Chong Yidong <cyd@stupidchicken.com>
5852
d5b01609 5853 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5854 (font_update_lface): Handle fonts with corrupted size specs,
5855 i.e. non-int and non-float.
d5b01609 5856
11e3a6e4 5857 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5858 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5859 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5860
ab06788b
CY
5861 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5862
1e5ecd37 5863 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5864 underline_minimum_offset for underline position.
1e5ecd37 5865
63c125ab
DN
58662008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5867
5868 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5869
5870 * character.c (c_string_width): Specify the type for LEN.
5871
3a8406e1
KH
58722008-12-03 Kenichi Handa <handa@m17n.org>
5873
4ccfa1c0 5874 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5875 (decode_coding_utf_8): Likewise.
4ccfa1c0 5876 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5877 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5878
651df7d9
CY
58792008-12-02 Chong Yidong <cyd@stupidchicken.com>
5880
5881 * keyboard.c (make_lispy_position): Only use PT if the selected
5882 window is current.
5883
1f625c6c
AS
58842008-12-02 Andreas Schwab <schwab@suse.de>
5885
f7741ce9
AS
5886 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5887
1f625c6c
AS
5888 * doprnt.c (doprnt1): Fix size of charbuf.
5889
92bc2678
CY
58902008-12-02 Chong Yidong <cyd@stupidchicken.com>
5891
5892 * keyboard.c (timer_check): Revert last change.
5893
93b9e8cc
JB
58942008-12-02 Juanma Barranquero <lekktu@gmail.com>
5895
5896 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5897
fd7a37d5
JB
58982008-12-01 Juanma Barranquero <lekktu@gmail.com>
5899
5900 * makefile.w32-in: Update dependencies.
5901 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5902
c115043b
AS
59032008-12-01 Andreas Schwab <schwab@suse.de>
5904
5905 * font.c (register_font_driver): Use xmalloc.
5906 (font_put_frame_data): Likewise.
5907
f5668d2a
CY
59082008-12-01 Chong Yidong <cyd@stupidchicken.com>
5909
860d96be
CY
5910 * xfaces.c (realize_x_face): Make abort condition clearer.
5911
f5668d2a
CY
5912 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5913
379c17e7
CY
59142008-11-30 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * keyboard.c (timer_check): After a timer runs, ensure that the
5917 selected window's buffer is current.
5918
35f36d65
JB
59192008-11-30 Juanma Barranquero <lekktu@gmail.com>
5920
f952c61c
JB
5921 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5922 It was accidentally restored by the Unicode merge.
5923
35f36d65
JB
5924 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5925
b23077df
JB
59262008-11-29 Juanma Barranquero <lekktu@gmail.com>
5927
5928 * w32proc.c: Include "coding.h".
5929 (Fw32_short_file_name): Encode filename passed to Windows API.
5930 (Fw32_long_file_name): Encode filename passed to Windows API and
5931 decode back the result. (Bug#1433)
5932
b8ebe9dd
KH
59332008-11-29 Kenichi Handa <handa@m17n.org>
5934
8cc53f96
KH
5935 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5936 not before accessing it.
5937
b8ebe9dd
KH
5938 * charset.c (Fdefine_charset_internal): After calculating
5939 min_char, max_char, and fastmap, copy the charset structure again.
5940 (encode_char): Fix the previous change.
5941
59bc82c0
SZ
59422008-11-28 Seiji Zenitani <zenitani@mac.com>
5943
5944 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5945
5946 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5947
5948 * nsterm.m (x_set_frame_alpha): New function.
5949
32247e3d
EZ
59502008-11-27 Eli Zaretskii <eliz@gnu.org>
5951
5952 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5953
b003e5ff
JB
59542008-11-27 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5957 pointer to check_face_name.
5958
708550f5
KH
59592008-11-27 Kenichi Handa <handa@m17n.org>
5960
5961 * category.h (SET_CATEGORY_SET): Call set_category_set.
5962 (set_category_set): Extern it.
5963
5964 * category.c (hash_get_category_set): New function.
5965 (Fmodify_category_entry): Adjusted for the change of
5966 char_table_ref_and_range. Call hash_get_category_set to get a
5967 category set to store in the table.
5968
5969 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5970 Funify_charset.
5971
2ae37cf0 5972 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5973 (DECODE_CHAR): Check if the decoder vector is ready.
5974 (ENCODE_CHAR): Check if the encoder char-table is ready.
5975 (maybe_unify_char): Extern it.
5976
5977 * charset.c (Vchar_unified_charset_table): Delete it.
5978 (inhibit_load_charset_map): New variable.
5979 (temp_charset_work): New variable.
5980 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5981 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5982 New macros.
5983 (load_charset_map): Meaning of control_flag changed. If
5984 inhibit_load_charset_map is nonzero, setup a table in
5985 temp_charset_work.
5986 (load_charset): New argument control_flag.
5987 (map_charset_for_dump): New function.
5988 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5989 map_charset_for_dump.
5990 (Fdefine_charset_internal): If the charset method is MAP, load
5991 mapping tables by calling load_charset.
5992 (Funify_charset): Don't load a mapping table but directly set
5993 Vchar_unify_table.
5994 (maybe_unify_char): New function.
5995 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5996 Handle the case of inhibit_load_charset_map being nonzero.
5997 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5998 Handle the case of inhibit_load_charset_map being nonzero.
5999 (Fclear_charset_maps): Just free temp_charset_work.
6000 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6001 variable.
6002
6003 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6004 change of char_table_ref_and_range.
6005 (char_table_ref_and_range): Change the meaning of argument FROM
6006 and TO. Now the caller must provide initial values for *FROM
6007 and *TO.
6008
6009 * fontset.c (fontset_add): Adjusted for the change of
6010 char_table_ref_and_range.
6011 (fontset_get_font_group): Likewise.
6012 (Ffontset_info): Likewise.
6013
6014 * keymap.c (describe_vector): Adjusted for the change of
6015 char_table_ref_and_range. For char-table, put boundary between
6016 non-ASCII and 8-bit characters.
6017
6018 * print.c (print_object): For bool-vector, delete unnecessary
6019 check of ASCII_BYTE_P.
6020
9196133b
JR
60212008-11-26 Jason Rumney <jasonr@gnu.org>
6022
6023 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6024 leading in font height. (Bug#879)
9196133b 6025
9f688acf
GM
60262008-11-26 Glenn Morris <rgm@gnu.org>
6027
6028 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6029 redefinition with ifdef. (Bug#1383)
6030
90d19aff
AR
60312008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6032
6033 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6034
4ccfa1c0 60352008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6036
6037 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6038 New EmacsView methods.
6039 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6040 Fixes bug #1048,1357,1414.
6041
60422008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6043
6044 Fix bug #1362.
6045 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6046 is not an indexed color.
6047 * nsterm.m (free_indexed_color): Add argument checking.
6048 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6049
e7d5ecb3
CY
60502008-11-24 Chong Yidong <cyd@stupidchicken.com>
6051
6052 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6053 Document confirm-after-completion value for
6054 minibuffer-completion-confirm.
6055
c285743c
JR
60562008-11-24 Jason Rumney <jasonr@gnu.org>
6057
6058 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6059 warning.
6060
b0857706
JR
60612008-11-23 Jason Rumney <jasonr@gnu.org>
6062
6063 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6064 restored before returning.
6065
6066 * w32font.c (check_face_name): New function.
6067 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6068 fonts. (Bug#642)
b0857706 6069
ee50ff07
MR
60702008-11-22 Martin Rudalics <rudalics@gmx.at>
6071
6072 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6073 confirm-nonexistent-file-or-buffer in doc-string.
6074
b8ff72fa
SM
60752008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6076
6077 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6078 Fix copy/paste typo. Add checks.
6079
cee53ed4
KH
60802008-11-21 Kenichi Handa <handa@m17n.org>
6081
6082 * coding.c (detect_coding_iso_2022): Reject invalid composition
6083 sequence.
6084 (DECODE_COMPOSITION_START): If the current source is the last
6085 block, and the current composition doesn't end, regard this
6086 sequence as invalid.
6087 (decode_coding_iso_2022): Handle invalid composition sequence.
6088
f6ef1e65
MR
60892008-11-20 Martin Rudalics <rudalics@gmx.at>
6090
6091 * window.c (coordinates_in_window): Don't return
6092 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6093 line when the window is not the rightmost one. (Bug#1372)
6094
e08b1705
MR
60952008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6096
6097 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6098
ad98e89f
EZ
60992008-11-15 Eli Zaretskii <eliz@gnu.org>
6100
6101 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6102 and bright_bg if noninteractive is non-zero.
6103
fb098a4b
CY
61042008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6105
6106 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6107 x_draw_glyph_string_background.
6108
6109 * w32term.c (x_draw_glyph_string): Likewise.
6110
ce952b6e
CY
61112008-11-15 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6114 the next glyph string once past the overhang width.
6115
6116 * nsterm.m (ns_draw_glyph_string): Likewise.
6117
6118 * w32term.c (x_draw_glyph_string): Likewise.
6119
26ea7079
CY
61202008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6121
6122 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6123 double file close.
6124
1c33c906
MR
61252008-11-14 Martin Rudalics <rudalics@gmx.at>
6126
6127 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6128 dedicated status of window before attempting to display another
6129 buffer in it.
6130
8fc29035
JB
61312008-11-14 Juanma Barranquero <lekktu@gmail.com>
6132
6133 * msdos.c (Fmsdos_long_file_names):
6134 (syms_of_msdos) <dos-unsupported-char-glyph>:
6135 * dosfns.c (Fint86): Fix typos in docstrings.
6136
55fb4286
EZ
61372008-11-14 Eli Zaretskii <eliz@gnu.org>
6138
6139 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6140
3fda0315
KY
61412008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6142
6143 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6144
7e849c17
CY
61452008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6146
6147 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6148
6149 * frame.h: Negative alpha means "don't touch".
6150
6151 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6152
6153 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6154
b9fd67bd
DN
61552008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6156
6157 * hftctl.c:
6158 * chpdef.h:
6159 * acldef.h: Remove files used only for systems no longer supported.
6160
6161 * Makefile.in: Fix .o alphabetical ordering.
6162 (hftctl.o): Remove dependency, file removed.
6163 (keymap.o, print.o): Depend on charset.h.
6164
d5998e03
KH
61652008-11-10 Kenichi Handa <handa@m17n.org>
6166
2ae37cf0 6167 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6168
be70e183
CY
61692008-11-08 Chong Yidong <cyd@stupidchicken.com>
6170
6171 * dired.c (file_name_completion): If completion_ignore_case is
6172 enabled, ignore case when checking completion-regexp-list.
6173
7cf94eac
EZ
61742008-11-08 Eli Zaretskii <eliz@gnu.org>
6175
6176 * vm-limit.c (get_lim_data): Fix last change.
6177
ee107a89
KH
61782008-11-08 Kenichi Handa <handa@m17n.org>
6179
6180 * character.c (Fget_byte): New function.
6181 (syms_of_character): Defsubr Fget_byte.
6182
5fd15622
CY
61832008-11-07 Chong Yidong <cyd@stupidchicken.com>
6184
6185 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6186 cursor position is valid after scrolling.
6187
13d62fad
JB
61882008-11-06 Juanma Barranquero <lekktu@gmail.com>
6189
6190 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6191
a1dd2936
GM
61922008-11-06 Glenn Morris <rgm@gnu.org>
6193
6194 * xterm.c (handle_one_xevent): Don't let popup menus cause
6195 mouse-autoselect-window related window switching. (Bug#1261)
6196
860cd236
CY
61972008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6198
6199 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6200
653a3150
AS
62012008-11-04 Andreas Schwab <schwab@suse.de>
6202
6203 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6204
870f5cac
CY
62052008-11-03 Chong Yidong <cyd@stupidchicken.com>
6206
6207 * xfns.c (Fx_wm_set_size_hint): New function.
6208
1e02f3cb
MR
62092008-11-03 Martin Rudalics <rudalics@gmx.at>
6210
6211 * textprop.c (Fprevious_single_char_property_change): Return 0
6212 when there's no change in a string. (Bug#1301)
6213
e630dfc6
MR
62142008-11-02 Martin Rudalics <rudalics@gmx.at>
6215
6216 * frame.c (do_switch_frame): New argument NORECORD passed to
6217 Fselect_window.
6218 (Fselect_frame): New argument NORECORD passed to
6219 do_switch_frame.
6220 (Fset_frame_selected_window): New argument NORECORD passed to
6221 Fselect_frame.
6222 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6223 in call of do_switch_frame.
6224 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6225 Handle NORECORD argument in call of Fselect_frame.
6226 * lisp.h (do_switch_frame, Fselect_frame)
6227 (Fset_frame_selected_window): Adjust declarations.
6228 * window.c (select_frame_norecord): New function.
6229 (run_window_configuration_change_hook): Use it and call
6230 Fselect_frame with NORECORD set.
6231 (Fselect_window): Pass NORECORD to Fselect_frame.
6232 (Fset_window_configuration): Handle NORECORD argument in call of
6233 do_switch_frame.
6234 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6235 Fset_frame_selected_window.
6236 * keyboard.c (command_loop_1): Handle NORECORD in call of
6237 Fselect_frame (currently ifdefd).
6238
9020b223
GM
62392008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6240
6241 * emacs.c (USAGE2): Untabify.
6242
793ffee8
SM
62432008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6244
6245 * composite.c (fill_gstring_header): Fix copy/paste typo.
6246
ab6d1131
MR
62472008-10-31 Martin Rudalics <rudalics@gmx.at>
6248
6249 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6250 (Fother_window): Rename argument and rewrite doc-string.
6251 (select_window_norecord): Fix return value. (Bug#1276)
6252
601a9cf1
JB
62532008-10-30 Juanma Barranquero <lekktu@gmail.com>
6254
6255 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6256 new frames overriding foreground for tooltips. Based on similar patch
6257 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6258
813b0652
CY
62592008-10-29 Chong Yidong <cyd@stupidchicken.com>
6260
6261 * emacs.c (Fdaemon_initialized): Initialize nfd.
6262
4414f58f
MR
62632008-10-29 Martin Rudalics <rudalics@gmx.at>
6264
6265 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6266 (Fwindow_text_height): Clarify doc-strings.
6267 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6268 doc-string of window-scroll-functions.
6269
ecdcaa09
RS
62702008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6271
6272 * category.c (syms_of_category): Fix typo in docstring.
6273
23fe745a
JB
62742008-10-28 Juanma Barranquero <lekktu@gmail.com>
6275
6276 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6277 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6278 Fix typos in docstrings.
6279
ff808935
DN
62802008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6281
6282 * emacs.c (daemon_pipe): Make non-static.
6283 (IS_DAEMON): Move definition ...
6284 * lisp.h (IS_DAEMON): ... here.
6285 (daemon_pipe): Declare.
6286 (is_daemon): Remove.
6287 * dispnew.c (init_display): Use IS_DAEMON.
6288
fc012771
SM
62892008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6290
6291 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6292 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6293
6294 * emacs.c (is_daemon): Remove.
6295 (main): Don't set is_daemon.
6296 (IS_DAEMON): New macro.
6297 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6298 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6299 parent exits.
6300 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6301
d8bdbe6f
CY
63022008-10-27 Chong Yidong <cyd@stupidchicken.com>
6303
d1a072bf
CY
6304 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6305 over-sized glyph, draw it with the default glyph width.
6306
e2e325aa
CY
6307 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6308 glyph, draw it with the default glyph width.
6309
6310 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6311 glyph, draw it with the default glyph width.
6312
d8bdbe6f
CY
6313 * xdisp.c (try_scrolling): When computing the distance from the
6314 scroll margin to PT, try moving some distance past the window
6315 bottom before giving up.
6316
7bfac547
MR
63172008-10-27 Martin Rudalics <rudalics@gmx.at>
6318
6319 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6320 (Fset_window_buffer): Explain in doc-string that a window can be
6321 "strongly" dedicated to its buffer.
6322
4ff029f6
DN
63232008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6324
6325 * emacs.c (daemon_name): New variable.
6326 (main): Deal with --daemon=SERVER_NAME.
6327 (Fdaemonp): Return a name if one was passed to --daemon.
6328
5790ef40
DN
63292008-10-26 Romain Francoise <romain@orebokech.com>
6330
f9bd0df9 6331 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6332 (main): Create a pipe before forking, make the parent exit only after
6333 the child has closed its end of the pipe. Move closing the
6334 descriptors ...
6335 (Fdaemon_initialized): ... here. New function.
6336
f5385255
SM
63372008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6338
4d632321
SM
6339 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6340 the previous unoptimized table.
6341
f5385255
SM
6342 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6343 the distinction between non-nil and non-t value of `dedicated'.
6344
6c56a0f3
CY
63452008-10-25 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6348 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6349
fec89261
MR
63502008-10-25 Martin Rudalics <rudalics@gmx.at>
6351
6352 * window.c (Fget_buffer_window, Fdelete_windows_on)
6353 (Freplace_buffer_in_windows): Make buffer argument optional and
6354 rename to buffer_or_name.
6355
34fcddd0
CY
63562008-10-24 Chong Yidong <cyd@stupidchicken.com>
6357
f5385255
SM
6358 * xdisp.c (handle_single_display_spec, handle_display_prop):
6359 Undo 2005-05-16 change.
34fcddd0
CY
6360 (handle_stop): Pop iterator if it's loaded with an empty string.
6361 (get_overlay_strings_1): Don't save iterator if it's loaded with
6362 an empty string (bug#1201).
6363
064766f2
KH
63642008-10-24 Kenichi Handa <handa@m17n.org>
6365
6366 * ftfont.c (ftfont_otf_features): Fix previous change.
6367 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6368 calling ftfont_otf_features.
6369
f9bd0df9 63702008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6371
6372 * font.c (font_match_p): Fix for the case that a vector of
6373 characters is in script-representative-chars.
6374
1dae9197
MA
63752008-10-24 Michael Albinus <michael.albinus@gmx.de>
6376
6377 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6378 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6379 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6380 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6381 macro. (Bug#1186)
1dae9197 6382
f9bd0df9 63832008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6384
6385 * s/sol2-10.h: New file.
6386
878a4584
JB
63872008-10-23 Juanma Barranquero <lekktu@gmail.com>
6388
6389 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6390 poor beast has survived 9+ years and the jump from xterm.c!).
6391
cd265ca6
MR
63922008-10-23 Martin Rudalics <rudalics@gmx.at>
6393
6394 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6395 Reword doc-string.
f5385255 6396 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6397
472a4dc9
JB
63982008-10-23 Juanma Barranquero <lekktu@gmail.com>
6399
6400 * character.c (syms_of_character) <script-representative-chars>:
6401 <unicode-category-table>: Doc fixes.
6402
159bd5a2
NF
64032008-10-23 Noah Friedman <friedman@splode.com>
6404
6405 * coding.c (make_conversion_work_buffer): Check that
6406 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6407 Fget_buffer_create.
6408
49f9c344
KH
64092008-10-23 Kenichi Handa <handa@m17n.org>
6410
6411 * font.c (font_add_log): Check the values of extra properties.
6412
12bb3111
MR
64132008-10-22 Martin Rudalics <rudalics@gmx.at>
6414
6415 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6416 Reword doc-string.
6417 (Fset_window_parameter): Use NILP.
6418 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6419 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6420
bbeb4e99
JB
64212008-10-22 Juanma Barranquero <lekktu@gmail.com>
6422
6423 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6424
64252008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6426
6427 * nsfns.m (ns_appkit_version): New function.
6428 (x-server-version): Use it.
6429 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6430 (x-server-vendor): Don't check_ns().
6431
6432 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6433
a9b555d3
JB
64342008-10-22 Juanma Barranquero <lekktu@gmail.com>
6435
6436 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6437 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6438
4626499f
KH
64392008-10-22 Kenichi Handa <handa@m17n.org>
6440
e3681952
KH
6441 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6442 scripts.
6443
4626499f
KH
6444 * category.c (word_boundary_p): Check scripts instead of charset.
6445 Handle nil value in word-separating-categories and
6446 word-combining-categories.
6447 (syms_of_category): Fix docstrings of word-separating-categories
6448 and word-combining-categories.
6449
1560f91a
EZ
64502008-10-21 Eli Zaretskii <eliz@gnu.org>
6451
6452 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6453 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6454
f4668441
MR
64552008-10-21 Martin Rudalics <rudalics@gmx.at>
6456
6457 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6458 Rename arg "buffer" to "buffer_or_name".
6459 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6460 it optional.
6461 (no_switch_window): Remove since the return value is not used.
a9b555d3 6462 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6463 Consider window as dedicated when Fwindow_dedicated_p returns a
6464 non-nil value.
6465 * lisp.h: Remove prototype for no_switch_window.
6466
fd75ddb2
JD
64672008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6468
6469 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6470 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6471
07295713
KH
64722008-10-21 Kenichi Handa <handa@m17n.org>
6473
6474 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6475 check Vlatin_extra_code_table.
6476
712adc82
EZ
64772008-10-20 Eli Zaretskii <eliz@gnu.org>
6478
6479 * fileio.c (Fset_file_modes): Doc fix.
6480
f549eb0b
MA
64812008-10-19 Michael Albinus <michael.albinus@gmx.de>
6482
6483 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6484 in arrays.
6485
aac0c6e3
MR
64862008-10-19 Martin Rudalics <rudalics@gmx.at>
6487
6488 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6489 Mention kill-buffer in doc-string.
6490 (Fset_window_buffer): Reinsert tem check removed in last commit.
6491 (Fenlarge_window, Fshrink_window): Have argument names and
6492 doc-string follow Elisp manual more closely.
6493
64942008-10-18 Eli Zaretskii <eliz@gnu.org>
6495
6496 * fileio.c (Fset_file_modes): Doc fix.
6497
64982008-10-18 Martin Rudalics <rudalics@gmx.at>
6499
6500 * window.c (Fwindow_width, Fset_window_start)
6501 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6502 (Fdelete_windows_on, Freplace_buffer_in_windows):
6503 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6504 (Fwindow_dedicated_p): Make window argument optional.
6505 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6506 (Fset_window_buffer): Respect any non-nil dedicated value for
6507 window. Rename "buffer" argument to "buffer_or_name".
6508
65092008-10-18 Ulrich Mueller <ulm@gentoo.org>
6510
6511 * m/sh3.h: New file, machine description for SuperH.
6512
65132008-10-17 Martin Rudalics <rudalics@gmx.at>
6514
6515 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6516
65172008-10-17 Kenichi Handa <handa@m17n.org>
6518
6519 * ftfont.c (ftfont_otf_features): Fix indexing
6520 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6521
65222008-10-16 Magnus Henoch <mange@freemail.hu>
6523
6524 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6525 (Fdbus_call_method_asynchronously): Ditto.
6526 This change makes C-h f display the argument list.
6527
65282008-10-16 Chong Yidong <cyd@stupidchicken.com>
6529
6530 * fileio.c (Fexpand_file_name): Doc fix.
6531
6532 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6533 of :foreground and :background equivalent to unspecified (20.x
6534 compatibility).
6535
65362008-10-15 Eli Zaretskii <eliz@gnu.org>
6537
6538 * buffer.c (syms_of_buffer): Doc fix.
6539
65402008-10-14 Kenichi Handa <handa@m17n.org>
6541
6542 * font.c (font_clear_prop): When clearing font width, clear the
6543 average width field too.
6544
65452008-10-12 Andreas Schwab <schwab@suse.de>
6546
6547 * ftfont.c (ftfont_shape_by_flt): Make static.
6548 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6549
6550 * font.c: Don't include <m17n-flt.h>.
6551
65522008-10-10 Eli Zaretskii <eliz@gnu.org>
6553
6554 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6555
65562008-10-09 Eli Zaretskii <eliz@gnu.org>
6557
6558 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6559 away code.
6560
65612008-10-09 Chong Yidong <cyd@stupidchicken.com>
6562
6563 * dispnew.c (update_text_area): Avoid looping due to large glyph
6564 overhangs (bug#1070).
6565
65662008-10-09 Kenichi Handa <handa@m17n.org>
6567
6568 * fontset.c (face_for_char): If face->fontset is negative, just
6569 return ascii_face.
6570
f5385255
SM
6571 * font.c (font_delete_unmatched): Fix previous change.
6572 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6573
65742008-10-09 Martin Rudalics <rudalics@gmx.at>
6575
6576 * frame.c (Fraise_frame): On text-only terminals select frame in
6577 order to make it visible. (Bug#1061)
6578
65792008-10-08 Chong Yidong <cyd@stupidchicken.com>
6580
6581 * fontset.c (fontset_find_font): Check frame validity.
6582
65832008-10-07 Chong Yidong <cyd@stupidchicken.com>
6584
a9b555d3 6585 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6586 (xg_display_close): Allow Emacs to close all displays (bug#985).
6587
65882008-10-06 Andreas Schwab <schwab@suse.de>
6589
f5385255 6590 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6591
65922008-10-06 Chong Yidong <cyd@stupidchicken.com>
6593
f5385255 6594 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6595
a9b555d3 6596 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6597
6598 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6599 during initialization.
6600
66012008-10-04 Eli Zaretskii <eliz@gnu.org>
6602
6603 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6604 whole thing on MSDOS frames as well as on a TTY.
6605
6606 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6607 well as for TTY.
6608 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6609 well as on a TTY.
6610
6611 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6612 as well as for TTY.
6613
6614 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6615
6616 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6617 MSDOS frames as well.
6618
66192008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6620
6621 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6622 correct arguments.
b71ac3dd 6623 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6624
66252008-10-03 Glenn Morris <rgm@gnu.org>
6626
6627 * emacs.c (USAGE1): Add --daemon.
6628
66292008-10-02 Eli Zaretskii <eliz@gnu.org>
6630
6631 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6632 100, so it's in percents as advertised.
6633
66342008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6635
6636 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6637 (ns_output.current_cursor, ns_output.desired_cursor)
6638 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6639 (FRAME_NEW_CURSOR_COLOR): Remove.
6640
6641 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6642 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6643 enumeration (HOLLOW_BOX_CURSOR, etc.).
6644
6645 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6646 (draw_window_cursor): Simplify code.
f5385255
SM
6647 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6648 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6649 updates manually.
a9b555d3
JB
6650 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6651 Use core Emacs cursor types.
aac0c6e3 6652
b8ff72fa 6653 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6654
66552008-10-02 Martin Rudalics <rudalics@gmx.at>
6656
6657 * process.c (Faccept_process_output): Fix doc-string.
6658
66592008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6660
6661 * gmalloc.c (__sbrk): Also define for uClibc.
6662
6663 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6664 for uClibc.
6665
66662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6667
6668 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6669 styles.
6670 (nsfont_open): Reenable the cache.
6671
66722008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6673
6674 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6675 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6676
66772008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6680 a suspended terminal.
6681
66822008-09-30 Michael Albinus <michael.albinus@gmx.de>
6683
6684 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6685
66862008-09-30 Eli Zaretskii <eliz@gnu.org>
6687
6688 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6689
66902008-09-30 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6693 in a continued line coincides with a line beginning.
6694
66952008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6696
6697 * nsfont.m (nsfont_trait_distance): Fix bug.
6698 (nsfont_list): Return a list rather than a vector (syncs with Handa
6699 changes of 2008-05-14).
6700 (nsfont_open): Improve logging.
6701
67022008-09-29 Andreas Schwab <schwab@suse.de>
6703
6704 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6705
67062008-09-28 Martin Rudalics <rudalics@gmx.at>
6707
6708 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6709 name as char-resolve-modifiers.
6710 Reported by: Markus Triska <markus.triska@gmx.at>
6711
67122008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6713
6714 * dispnew.c (init_display): Return earlier when running as a daemon.
6715
67162008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6717
6718 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6719
67202008-09-27 Eli Zaretskii <eliz@gnu.org>
6721
6722 * composite.c (Fcomposition_get_gstring)
6723 (Fcompose_region_internal, Fcompose_string_internal)
6724 (Ffind_composition_internal): Doc fix.
6725 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6726 (syms_of_composite) <auto-composition-function>: Doc fix.
6727 (syms_of_composite) <composition-function-table>: Doc fix.
6728
67292008-09-25 Chong Yidong <cyd@stupidchicken.com>
6730
6731 * search.c (wordify): New argument for lax word-ends.
6732 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6733
67342008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6735
6736 * lisp.h (is_daemon): Declare.
6737 * dispnew.c (init_display): Do not try to initialize the terminal
6738 when running as a daemon.
6739
67402008-09-22 Chong Yidong <cyd@stupidchicken.com>
6741
6742 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6743 x_display_pixel_height.
6744
67452008-09-22 Martin Rudalics <rudalics@gmx.at>
6746
6747 * undo.c (record_point): Don't call Fundo_boundary for first
6748 change. (Bug#731)
6749
67502008-09-22 Juanma Barranquero <lekktu@gmail.com>
6751
6752 * emacs.c (Fdaemonp): Doc fix.
6753
67542008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6755
6756 * emacs.c (main): Place #ifdef in the proper place.
6757
67582008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 * emacs.c (standard_args): Add --daemon.
6761 (main): Disconnect from the terminal when --daemon is passed.
6762 (is_daemon): New variable.
6763 (Fdaemonp): New function.
6764 (syms_of_emacs): Defsubr it.
6765
67662008-09-20 Chong Yidong <cyd@stupidchicken.com>
6767
6768 * xdisp.c (get_next_display_element): Handle string display
6769 correctly when checking for the end of a box run.
6770
67712008-09-20 Glenn Morris <rgm@gnu.org>
6772
6773 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6774 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6775 (Frename_file): Avoid copying to trash if a rename involves
6776 a delete. (Bug#964).
6777
67782008-09-20 Eli Zaretskii <eliz@gnu.org>
6779
6780 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6781 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6782 frames as well as termcap frames.
6783 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6784 get_named_tty.
6785
67862008-09-19 Eli Zaretskii <eliz@gnu.org>
6787
6788 * process.c (procfs_system_process_attributes): Fix cmdline in
6789 case /proc/PID/cmdline is empty.
6790
6791 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6792 x_display_pixel_height.
6793
67942008-09-19 Juanma Barranquero <lekktu@gmail.com>
6795
6796 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6797
6798 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6799 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6800
68012008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6802
6803 * dispextern.h (struct it): Move line_wrap away from the middle of
6804 bitfields. Move voffset in struct iterator_stack_entry after the
6805 bitfields. Move tab_width near after another short.
6806
68072008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6808
6809 * frame.h (struct frame): Move alpha from the middle of bitfields.
6810
6811 * window.h (struct window): Move frozen_window_start_p after the
6812 rest of the bitfields to reduce padding.
6813
68142008-09-18 Chong Yidong <cyd@stupidchicken.com>
6815
6816 * xterm.h (x_display_info): Remove `height' and `width' members.
6817
6818 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6819
6820 * w32term.h (w32_display_info): Remove `height', `width',
6821 `height_in', and `width_in' members.
6822
b8ff72fa
SM
6823 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6824 New functions.
aac0c6e3
MR
6825 (x_calc_absolute_position): Use them.
6826 (x_term_init): Omit removed `height' and `width' members.
6827
b8ff72fa
SM
6828 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6829 New functions.
aac0c6e3
MR
6830 (w32_read_socket, x_calc_absolute_position): Use them.
6831 (w32_initialize_display_info, w32_term_init): Omit removed members
6832 of w32_display_info.
6833
b8ff72fa
SM
6834 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6835 New functions.
6836 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6837
b8ff72fa
SM
6838 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6839 New functions.
aac0c6e3
MR
6840 (x_calc_absolute_position): Use them.
6841 (x_term_init): Omit removed `height' and `width' members.
6842
6843 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6844 (compute_tip_xy):
6845 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6846 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6847 x_display_pixel_width.
6848
68492008-09-18 Kenichi Handa <handa@m17n.org>
6850
6851 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6852 (composition_compute_stop_pos): Fix handling of static composition.
6853 (Fcomposition_get_gstring): Check FROM and TO at first.
6854
68552008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6856
46e722a9 6857 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6858 mixup (YAILOM).
6859
68602008-09-17 Chong Yidong <cyd@stupidchicken.com>
6861
6862 * indent.c (Fvertical_motion): Use position reported by iterator
6863 instead of PT for determining screen motion (bug#943).
6864
68652008-09-17 Romain Francoise <romain@orebokech.com>
6866
6867 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6868
68692008-09-17 Kenichi Handa <handa@m17n.org>
6870
6871 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6872
6873 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6874 if necessary.
6875
68762008-09-16 Kenichi Handa <handa@m17n.org>
6877
6878 * coding.c (make_conversion_work_buffer): Avoid calling
6879 Fget_buffer_create if it is not necessary.
6880
68812008-09-15 Martin Rudalics <rudalics@gmx.at>
6882
6883 * window.c (Fselect_window): Don't update window_select_count and
6884 use_time when norecord is not nil.
6885
68862008-09-14 Kenichi Handa <handa@m17n.org>
6887
6888 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6889 specpdl_ptr.
6890
68912008-09-12 Kenichi Handa <handa@m17n.org>
6892
6893 * indent.c (scan_for_column): Don't handle automatic composition
6894 if the current buffer is not associated with a window.
6895
6896 * composite.c (composition_reseat_it): If the current buffer is
6897 not associated with a window, ignore the automatic composition.
6898 (find_automatic_composition): Likewise.
6899
69002008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6901
6902 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6903 (Fgpm_mouse_stop): Use it.
6904 * termhooks.h (close_gpm): Declare.
6905 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6906 connection if Gpm_GetEvent fails.
6907
6908 * window.c (set_window_buffer): Always preserve current-buffer.
6909
69102008-09-12 Glenn Morris <rgm@gnu.org>
6911
6912 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6913
69142008-09-11 Glenn Morris <rgm@gnu.org>
6915
6916 * charset.c (charset-map-path): Doc fix.
6917
69182008-09-10 Kenichi Handa <handa@m17n.org>
6919
6920 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6921
6922 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6923 compose a grapheme cluster with the preceding base glyph.
6924
6925 * composite.c (composition_compute_stop_pos): Fix previous change.
6926 Reset cmp_it->id to -1 at first.
6927
69282008-09-10 Glenn Morris <rgm@gnu.org>
6929
6930 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6931
69322008-09-09 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * keyboard.c (read_key_sequence): Reapply translation maps when
6935 switching keyboards.
6936
69372008-09-09 Kenichi Handa <handa@m17n.org>
6938
6939 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6940 characters.
6941
6942 * composite.c (FORWARD_CHAR): Fix calculation
6943 of (POSITION).pos_byte.
6944 (composition_compute_stop_pos): Limit the search of composition to
6945 at most 500 characters ahead. If we reach the limit or find a
6946 newline, set cmp_it->ch to -2 and return 0.
6947 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6948
69492008-09-08 Kenichi Handa <handa@m17n.org>
6950
6951 * indent.c (Fvertical_motion): Be sure to set
6952 it_overshoot_expected if it.cmp_it.id is non-negative.
6953
69542008-09-07 Andreas Schwab <schwab@suse.de>
6955
6956 * callproc.c (Fcall_process): Don't hold references to string data
6957 across garbage collection. Move initialisation of new_argv down
6958 to avoid compiler bug.
6959
69602008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6961
6962 * process.c (Fsystem_process_attributes): Doc fix.
6963
69642008-09-07 Chong Yidong <cyd@stupidchicken.com>
6965
6966 * callproc.c (Fcall_process): Canonicalize current directory name.
6967
6968 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6969 iterator advances to the next line if the current line ends in a
6970 continued tab.
6971
69722008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6973
6974 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6975 member to point to cmp_from.
6976
6977 * xdisp.c: Doc fix for references to gidx data member.
6978
69792008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6980
6981 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6982
69832008-09-07 Kenichi Handa <handa@m17n.org>
6984
6985 * composite.c (FORWARD_CHAR): Check STOP after
6986 incrementing (POSITION).pos.
6987
69882008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6989
6990 * process.c (Fsystem_process_attributes): Doc fix.
6991
69922008-09-06 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * keyboard.c (Ftop_level): Doc fix.
6995
69962008-09-06 Eli Zaretskii <eliz@gnu.org>
6997
6998 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6999 minibuffer, don't let lower part of menu invade the echo area.
7000
7001 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7002 "char *q" to access menu text and advance through it. Revert the
7003 change that displayed ">" instead of ASCII character 0x10.
7004
70052008-09-05 Eli Zaretskii <eliz@gnu.org>
7006
7007 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7008 toggle boxes and radio buttons on MS-DOS as well.
7009
70102008-09-05 Kenichi Handa <handa@m17n.org>
7011
7012 * composite.c (autocmp_chars): Check lookback count.
7013 (composition_compute_stop_pos): Set cmp_it->lookback.
7014 (composition_reseat_it): Check lookback count.
7015 (struct position_record): New struct.
7016 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7017 (find_automatic_composition): New function.
7018 (composition_adjust_point): Use find_automatic_composition.
7019
7020 * dispextern.h (struct composition_it): New member lookback.
7021
70222008-09-02 Chong Yidong <cyd@stupidchicken.com>
7023
7024 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7025 if moving by a single line.
7026
70272008-09-02 Andreas Schwab <schwab@suse.de>
7028
7029 * xterm.c (x_delete_display): Fix merge error.
7030
7031 * fileio.c (Fexpand_file_name): Remove unused variables.
7032
70332008-09-02 Eli Zaretskii <eliz@gnu.org>
7034
7035 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7036 storage on all platforms, not just on DOS_NT.
7037
70382008-09-02 Jason Rumney <jasonr@gnu.org>
7039
b8ff72fa
SM
7040 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7041 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7042
70432008-09-01 Chong Yidong <cyd@stupidchicken.com>
7044
7045 * xfaces.c (Finternal_set_alternative_font_family_alist)
7046 (Finternal_set_alternative_font_registry_alist): Properly copy
7047 entire alist structure.
7048
70492008-09-01 Kenichi Handa <handa@m17n.org>
7050
d66c0241 7051 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7052 representative chars of the script is a vector.
d66c0241
JB
7053 (ftfont_list): Handle the case where the representative chars of
7054 the script is a vector.
aac0c6e3
MR
7055
7056 * character.c (syms_of_character): Docstring of
7057 script-representative-chars fixed.
7058
70592008-08-31 Eli Zaretskii <eliz@gnu.org>
7060
7061 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7062 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7063 the menu. Allocate larger buffer for `text', to account for
7064 possible ^C characters.
7065
70662008-08-31 Martin Rudalics <rudalics@gmx.at>
7067
7068 * xdisp.c (prepare_menu_bars): Don't call
7069 Vwindow_size_change_functions with arg Qt.
7070
70712008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7072
7073 * font.h (font_range):
7074 * fileio.c (report_file_error):
46e722a9
SM
7075 * composite.c (composition_update_it): Yet another int/Lisp_Object
7076 mixup (YAILOM).
aac0c6e3
MR
7077
70782008-08-30 Glenn Morris <rgm@gnu.org>
7079
7080 * data.c (Fmake_variable_frame_local): Doc fix.
7081
7082 * frame.c (Fmodify_frame_parameters): Doc fix.
7083
70842008-08-30 Eli Zaretskii <eliz@gnu.org>
7085
7086 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7087 needed by GetTokenInformation.
7088 (w32_system_process_attributes): Check return values of all system
7089 APIs.
7090
7091 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7092 only when the state changes.
7093 (IT_update_begin, IT_update_end): Add termscript trace.
7094
7095 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7096 clipboard is unavailable. Set dst to NULL if it doesn't point to
7097 malloc'ed data.
7098 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7099 passing random values to xfree.
7100
7101 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7102 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7103
71042008-08-29 Jason Rumney <jasonr@gnu.org>
7105
7106 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7107
71082008-08-29 Eli Zaretskii <eliz@gnu.org>
7109
7110 * composite.c (fill_gstring_body): Avoid compiler warnings.
7111
7112 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7113 LGLYPH_SET_CODE to avoid compiler warnings.
7114
2ae37cf0 7115 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7116
7117 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7118
7119 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7120 LGLYPH_SET_CODE.
7121
71222008-08-29 Kenichi Handa <handa@m17n.org>
7123
7124 * fileio.c (report_file_error): Don't downcase the first character
7125 of errstring if it is still unibyte.
7126
71272008-08-29 Kenichi Handa <handa@m17n.org>
7128
7129 These changes are to re-implement the automatic composition so
7130 that it doesn't use text properties.
7131
7132 * Makefile.in (ftfont.o): Depend on composite.h.
7133 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7134
7135 * character.h (Vunicode_category_table): Extern it.
7136
7137 * character.c (Vunicode_category_table): New variable.
7138 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7139
7140 * chartab.c (optimize_sub_char_table): Perform more greedy
7141 optimization.
7142
b8ff72fa
SM
7143 * composite.h (enum composition_method):
7144 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7145 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7146 (Vcomposition_function_table): Extern it.
7147 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7148 (composition_gstring_put_cache, composition_gstring_from_id)
7149 (composition_gstring_p, composition_gstring_width)
7150 (composition_compute_stop_pos, composition_reseat_it)
7151 (composition_update_it, composition_adjust_point): Extern them.
7152 (Fcomposition_get_gstring): EXFUN it.
7153
d66c0241 7154 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7155 (Vcomposition_function_table)
7156 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7157 (gstring_hash_table, gstring_work, gstring_work_headers):
7158 New variables.
aac0c6e3
MR
7159 (gstring_lookup_cache, composition_gstring_put_cache)
7160 (composition_gstring_from_id, composition_gstring_p)
7161 (composition_gstring_width, fill_gstring_header)
7162 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7163 (composition_reseat_it, composition_update_it)
b8ff72fa 7164 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7165 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7166 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7167 Defsubr composition_get_gstring.
aac0c6e3
MR
7168
7169 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7170 cmp_id.
7171 (struct glyph_string): Delete the member gidx. New members
7172 cmp_id, cmp_from, and cmp_to.
7173 (enum it_method): Delete GET_FROM_COMPOSITION.
7174 (struct composition_it): New struct.
7175 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7176 Delete c, len, cmp_id, cmp_len in u.comp.
7177
7178 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7179 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7180 (enum lglyph_indices): Likewise.
b8ff72fa 7181 (font_range): Adjust extern.
aac0c6e3
MR
7182 (font_fill_lglyph_metrics): Extern it.
7183
7184 * font.c (QCf): New variable.
7185 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7186 (font_prepare_composition): Delete this function.
7187 (font_range): Type and arguments changed.
7188 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7189 (font_fill_lglyph_metrics): New function.
b8ff72fa 7190 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7191 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7192 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7193 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7194
7195 * fontset.h (font_for_char): Extern it.
7196
7197 * fontset.c (font_for_char): New function.
7198
7199 * ftfont.c: Include composite.h.
7200 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7201 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7202
7203 * indent.c: Include composite.h and dispextern.h.
7204 (check_composition): Delete this function.
7205 (scan_for_column): Handle composition by
7206 composition_compute_stop_pos, composition_reseat_it, and
7207 composition_update_it.
7208 (compute_motion): Likewise.
7209 (Fvertical_motion): Fix checking of composition.
7210
7211 * keyboard.c (adjust_point_for_property): Check composition by
7212 composition_adjust_point.
7213
b8ff72fa 7214 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7215 struct glyph_string.
7216
b8ff72fa
SM
7217 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7218 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7219 struct glyph.
7220 (produce_composite_glyph): Likewise.
7221
b8ff72fa
SM
7222 * w32term.c (x_draw_composite_glyph_string_foreground):
7223 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7224 (x_draw_glyph_string): Likewise.
7225
7226 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7227 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7228
7229 * xdisp.c: Include font.h.
7230 (it_props): Delete the entry for Qauto_composed.
7231 (init_iterator): Initialize it->cmp_it.id to -1.
7232 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7233 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7234 (handle_auto_composed_prop): Delete it.
7235 (handle_composition_prop): Handle only static composition.
7236 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7237 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7238 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7239 (pop_it): Likewise.
7240 (get_next_element): Delete next_element_from_composition.
7241 (CHAR_COMPOSED_P): New macro.
7242 (get_next_display_element): For automatic composition, get a face
7243 from the font in the glyph-string.
7244 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7245 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7246 (next_element_from_string): Check if the character at the current
7247 position is composed by CHAR_COMPOSED_P.
7248 (next_element_from_buffer): Likewise.
d66c0241
JB
7249 (next_element_from_composition): Adjust for the change of struct it.
7250 Update it->cmp_it.
b8ff72fa
SM
7251 (dump_glyph): Adjust for the change of struct glyph.
7252 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7253 it and struct glyph. Don't handle automatic composition here.
7254 (fill_gstring_glyph_string): New function.
7255 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7256 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7257 (BUILD_GSTRING_GLYPH_STRING): New macro.
7258 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7259 automatic composition.
b8ff72fa 7260 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7261 struct glyph.
b8ff72fa 7262 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7263
b8ff72fa 7264 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7265 the change of struct glyph_string.
7266 (x_draw_glyph_string): Likewise.
7267
72682008-08-29 Glenn Morris <rgm@gnu.org>
7269
7270 * buffer.c (word-wrap): Doc fix.
7271 * xdisp.c (truncate-partial-width-windows): Doc fix.
7272 Increase default to 50.
7273
72742008-08-29 Chong Yidong <cyd@stupidchicken.com>
7275
7276 * xdisp.c (update_tool_bar_unwind): New function.
7277 (update_tool_bar): Temporarily set selected frame before building
7278 tool-bar items.
7279
72802008-08-28 Michael Albinus <michael.albinus@gmx.de>
7281
7282 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7283 snprintf, respectively.
7284 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7285
72862008-08-28 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7289 LDFLAGS to GNUstep CC invocation.
7290
72912008-08-27 Chong Yidong <cyd@stupidchicken.com>
7292
7293 * indent.c (Fvertical_motion): Revert last change. Handle the
7294 general case where we are moving forward, and PT spans multiple
7295 screen lines.
7296
7297 * eval.c (find_handler_clause): Temporarily increase
7298 max-lisp-eval-depth while printing the backtrace buffer, to
7299 guarantee that help-mode code can run.
7300
73012008-08-27 Eli Zaretskii <eliz@gnu.org>
7302
7303 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7304 colors under -rv.
7305 (IT_set_frame_parameters): Don't swap foreground and background
7306 colors if `(reverse . t)' is present in the frame properties.
7307 (internal_terminal_init): Call init_frame_faces only for the
7308 initial frame.
7309
73102008-08-27 Andreas Schwab <schwab@suse.de>
7311
7312 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7313
73142008-08-27 Andreas Schwab <schwab@suse.de>
7315
7316 * search.c (search_buffer): Set char_base to zero only at the end.
7317
73182008-08-27 Kenichi Handa <handa@m17n.org>
7319
b8ff72fa 7320 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7321
73222008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7323
7324 * xterm.c (x_term_init): Temporarily hide the partially
7325 initialized terminal while calling vendor-specific-keysyms.
7326
73272008-08-26 Eli Zaretskii <eliz@gnu.org>
7328
7329 * msdos.c (internal_terminal_init): Most initializations done only
7330 once, especially initial_screen_colors[] and termscript open.
7331
73322008-08-26 Chong Yidong <cyd@stupidchicken.com>
7333
7334 * eval.c (Fcondition_case): Doc fix.
7335
7336 * widgetprv.h (EmacsFramePart): Change font member to the new font
7337 struct.
7338
7339 * widget.c: Include character.h and font.h for XSETFONT.
7340 (setup_frame_gcs): Compute X font id from font struct, just once.
7341
73422008-08-26 Eli Zaretskii <eliz@gnu.org>
7343
7344 * term.c (get_named_tty): Fix last change.
7345
73462008-08-26 Chong Yidong <cyd@stupidchicken.com>
7347
7348 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7349 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7350
73512008-08-25 Eli Zaretskii <eliz@gnu.org>
7352
7353 * frame.c (do_switch_frame): Mark previously displayed frame as
7354 obscured for FRAME_MSDOS_P frames as well.
7355
73562008-08-24 Eli Zaretskii <eliz@gnu.org>
7357
7358 * frame.c (make_terminal_frame): Initialize f->terminal,
7359 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7360 Set the top frame to newly created frame.
7361 (Fmake_terminal_frame): Reuse the_only_display_info.
7362
7363 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7364 estimating available memory.
7365
b97439ce 73662008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7367
7368 * nsterm.m (ns_draw_window_cursor): Don't call
7369 NSDisableScreenUpdates and NSEnableScreenUpdates on
7370 non-NS_IMPL_COCOA systems.
7371
73722008-08-23 Andreas Schwab <schwab@suse.de>
7373
7374 * process.c (procfs_system_process_attributes): Fix use of
7375 uninitialized variables.
7376
73772008-08-23 Eli Zaretskii <eliz@gnu.org>
7378
7379 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7380
7381 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7382 calling tty-set-up-initial-frame-faces.
7383
b8ff72fa
SM
7384 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7385 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7386
7387 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7388 addition to output_termcap.
7389
7390 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7391
7392 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7393 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7394 highlight.
7395
7396 * process.c [!subprocesses]: Define QCname.
7397 (syms_of_process): Intern and staticpro it.
7398
7399 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7400 Adjust for changes in encoding/decoding routines.
7401 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7402 encode_coding and decode_coding.
7403
b8ff72fa 7404 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7405
7406 * dosfns.c: Include frame.h before termhooks.h.
7407 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7408 variable termscript.
7409
7410 * s/msdos.h (USER_FULL_NAME): Define.
7411 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7412
7413 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7414 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7415 pw->pw_gecos.
7416
7417 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7418 SELECTED_FRAME as additional (1st) argument.
7419 (tty_read_avail_input): Handle output_msdos_raw in
7420 addition to output_termcap.
7421
7422 * msdos.c: Include frame.h before termhooks.h.
7423 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7424 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7425 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7426 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7427 (IT_set_terminal_modes, IT_reset_terminal_modes)
7428 (IT_set_frame_parameters): Use tty->termscript instead of a global
7429 variable termscript.
7430 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7431 global variable terminal_coding. Don't refer to
7432 Vnonascii_translation_table.
7433 (internal_terminal_init): Set Vwindow_system in current_kboard.
7434 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7435 Announce date and time of session start, if termscript is open.
7436 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7437 term.c:init_tty). Open termscript only of not already open.
7438 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7439 here instead of dos_ttraw. Don't initialize display if this is an
7440 initial tty. Don't set FRAME_FONT.
7441 (Vwindow_system_version): Bump to 23.
7442 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7443 is available, set up mouse_position_hook.
7444 (dos_ttraw, IT_set_terminal_modes): If called with initial
7445 terminal, do nothing.
7446 (IT_set_frame_parameters): Handle the Qtty_type frame
7447 parameter by calling internal_terminal_init.
7448 (dos_set_window_size, show_mouse_face)
7449 (clear_mouse_face, IT_note_mode_line_highlight)
7450 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7451 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7452 (initialize_msdos_display): New function.
7453 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7454 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7455 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7456 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7457 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7458 (request_sigio, unrequest_sigio): Don't define, now defined on
7459 sysdep.c.
7460 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7461
7462 * term.c [MSDOS]: Include msdos.h.
7463 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7464 conditional to DOS_NT. Allow only one call to this function in a
7465 session. Don't allocate a new struct tty_display_info; instead,
7466 reuse the_only_display_info. Call get_tty_size to get screen
7467 dimensions. Call init_baud_rate to set bad_rate.
7468 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7469 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7470 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7471 (get_tty_terminal, get_named_tty, Ftty_type)
7472 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7473 output_termcap.
b8ff72fa
SM
7474 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7475 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7476 only when subprocesses are supported.
aac0c6e3
MR
7477
7478 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7479 f->output_data.x.
7480 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7481 terminal devices.
7482
5582fbc7 7483 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7484 x_output.
7485 (FRAME_FONT): Use output_data.tty.
7486 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7487 (struct x_display_info): Rename from display_info. Update all users in
7488 msdos.c.
aac0c6e3 7489 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7490 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7491 (dos_ttraw): Update prototype.
7492
7493 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7494 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7495
74962008-08-23 Jason Rumney <jasonr@gnu.org>
7497
7498 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7499 (fn_TIFFSetDirectory): New library function used.
7500 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7501 (tiff_load): Use :index to select among multiple images. Set count
7502 property when multiple images exist.
7503 (gif_format): Use :index, not :image.
7504
75052008-08-23 Chong Yidong <cyd@stupidchicken.com>
7506
7507 * xdisp.c (try_scrolling): Check INT_MAX instead of
7508 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7509 to obtain INT_MAX.
7510
75112008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7512
7513 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7514
75152008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7516
7517 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7518 GNUstep library location.
7519
75202008-08-21 Chong Yidong <cyd@stupidchicken.com>
7521
7522 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7523 before using it.
7524
7525 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7526
75272008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7528
7529 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7530 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7531 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7532 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7533 (EmacsApp-cursor_blink_handler): Remove declaration.
7534 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7535 match 01 Feb 2008 changes in xterm.c.
7536 (ns_read_socket): Add cast to avoid warning.
7537 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7538 GNUstep.
7539
75402008-08-20 Chong Yidong <cyd@stupidchicken.com>
7541
7542 * xselect.c (x_get_foreign_selection): Return nil if desired
7543 selection could not be obtained, instead of signalling an error.
7544
75452008-08-20 David Reitter <david.reitter@gmail.com>
7546
7547 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7548 * nsterm.m: Remove ns-specific code for cursor blinking.
7549 (ns_draw_window_cursor): Clear cursor properly rather than
7550 redrawing the area. Respect width of bar cursors.
7551 These changes enable the use of generic blink-cursor-mode and
7552 generic cursor types in NS and support smooth cursor movements (do
7553 not blink off after command).
7554 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7555 Nextstep, too.
7556
75572008-08-19 Kenichi Handa <handa@m17n.org>
7558
7559 * font.c (Vfont_log_deferred): New variable.
7560 (font_add_log): Check Vfont_log_deferred.
7561 (font_deferred_log): New function.
7562
7563 * font.h (font_deferred_log): Extern it.
7564
7565 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7566 for sorting.
7567 (face_for_char): Use deferred log.
7568
75692008-08-18 Kenichi Handa <handa@m17n.org>
7570
7571 * fontset.c (face_for_char): Add font log.
7572
7573 * font.c (font_add_log): Add the font properties :script, :lang,
7574 and :otf in the log.
7575
75762008-08-17 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * xdisp.c: Remove dead code.
7579 (handle_invisible_prop, next_overlay_string): Defer call to
7580 setup_for_ellipsis.
7581 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7582
75832008-08-15 Chong Yidong <cyd@stupidchicken.com>
7584
7585 * xfaces.c (lookup_derived_face): Properly handle possible zero
7586 return value of get_lface_attributes.
7587 (merge_faces): Don't tell lookup_derived_face to signal an error
7588 if face is not found.
7589
7590 * dired.c (Fdirectory_files): Doc fix.
7591
7592 * process.c (make_process): Initialize kill_without_query struct
7593 member.
7594
75952008-08-15 Eli Zaretskii <eliz@gnu.org>
7596
7597 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7598 Alternative calculation of totphys for Visual Studio 6.
7599
7600 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7601
7602 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7603 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7604 All users changed.
7605 (stat): Only root directory passed to GetDriveType. Allow RAM
7606 disk as well as local fixed disk when w32-get-true-file-attributes
7607 is set to `local'.
7608 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7609 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7610 (w32_cached_id, w32_add_to_cache): New functions.
7611 (get_name_and_id): Look account names in the cache before calling
7612 lookup_account_sid.
7613 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7614 New initialization flags.
7615 (globals_of_w32): Initialize them to zero.
7616 (w32_system_process_attributes): Use w32_cached_id and
7617 w32_add_to_cache.
7618
76192008-08-14 Lawrence Mitchell <wence@gmx.li>
7620
7621 * lread.c (Fread_char, Fread_char_exclusive): If no character
7622 event is read before timeout is reached, return nil, rather than
7623 converting to a number.
7624
76252008-08-14 Chong Yidong <cyd@stupidchicken.com>
7626
7627 * fns.c (use_dialog_box): Doc fix.
7628
7629 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7630 on OS X.
7631
76322008-08-13 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * frame.c (Qns_parse_geometry): New var.
7635 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7636
76372008-08-11 Chong Yidong <cyd@stupidchicken.com>
7638
7639 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7640 space character in calculating tabs.
7641
76422008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7643
7644 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7645
76462008-08-10 Glenn Morris <rgm@gnu.org>
7647
7648 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7649 silence gcc "limited range of data type" warnings in some
7650 make_fixnum_or_float calls.
7651
76522008-08-09 Eli Zaretskii <eliz@gnu.org>
7653
7654 * w32.c (w32_system_process_attributes): If the process does not
7655 exist, return nil.
7656
7657 * w32.c: Include thelp32.h, psapi.h and coding.h.
7658 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7659 declarations.
7660 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7661 (Process32Next_Proc): New typedefs.
7662 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7663 (g_b_init_process32_next, g_b_init_open_thread_token)
7664 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7665 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7666 (g_b_init_get_process_working_set_size)
7667 (g_b_init_global_memory_status_ex): New static variables.
7668 (globals_of_w32): Initialize them.
7669 (create_toolhelp32_snapshot, process32_first, process32_next)
7670 (open_thread_token, impersonate_self, revert_to_self)
7671 (get_process_memory_info, get_process_working_set_size)
7672 (global_memory_status, global_memory_status_ex): New wrapper
7673 functions.
7674 (w32_list_system_processes, w32_system_process_attributes)
7675 (enable_privilege, restore_privilege, ltime, process_times):
7676 New functions.
7677 (convert_time_raw): New function.
7678 (convert_time): Remove conversion of FILETIME into time in 100
7679 nsec units, call convert_time_raw instead.
7680
7681 * process.h (w32_list_system_processes, w32_system_process_attributes):
7682 Add prototypes.
7683 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7684 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7685 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7686 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7687
7688 * process.c (Fsystem_process_attributes): Doc fix.
7689
76902008-08-08 Chong Yidong <cyd@stupidchicken.com>
7691
7692 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7693 a continued multi-char glyph; if so, advance to the actual glyph.
7694
76952008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7696
7697 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7698
7699 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7700 (.m.o): Use it.
7701 * config.in: Regenerate.
7702
77032008-08-07 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * xdisp.c (redisplay_window): Revert last change.
7706 (try_window): Check bottom scroll margin too.
7707
77082008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7709
7710 * config.in: Regenerate.
7711
7712 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7713 -list-load-path-shadows'.
7714 (nsgui.h): Reduce number of things depending on it.
7715
77162008-08-06 Chong Yidong <cyd@stupidchicken.com>
7717
7718 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7719 instead of window-end which does the wrong thing at eob.
7720 (try_cursor_movement): Minor optimization.
7721 (redisplay_window): If scroll margin is defined, don't assume
7722 window doesn't need scrolling.
7723
77242008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7725
7726 * config.in: Regenerate.
7727
7728 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7729 (mostlyclean): Don't delete *.d under NS.
7730
7731 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7732
77332008-08-06 Kenichi Handa <handa@m17n.org>
7734
7735 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7736
77372008-08-06 Andreas Schwab <schwab@suse.de>
7738
7739 * config.in: Regenerate.
7740
77412008-08-05 Chong Yidong <cyd@stupidchicken.com>
7742
7743 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7744 forcing a window start.
7745
7746 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7747 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7748
77492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7750
7751 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7752 argument.
7753
77542008-08-05 Juanma Barranquero <lekktu@gmail.com>
7755
7756 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7757 <scroll-down-aggressively, before-change-functions>:
7758 <after-change-functions>: Reflow docstrings.
7759
77602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7761 Ken Raeburn <raeburn@gnu.org>
7762
7763 Dock menu customization, based on a patch by Ken Raeburn, plus some
7764 other fixes.
7765 * nsmenu.m (dockMenu): New variable.
7766 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7767
7768 * nsterm.h (dockMenu): Declare.
7769
7770 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7771 (ns_term_init): Initialize dockMenu.
7772 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7773 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7774 left.
7775
7776 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7777
77782008-08-04 Chong Yidong <cyd@stupidchicken.com>
7779
7780 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7781
7782 * config.in: Regenerate.
7783
77842008-08-04 Seiji Zenitani <zenitani@mac.com>
7785
7786 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7787
77882008-08-04 Chong Yidong <cyd@stupidchicken.com>
7789
7790 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7791
77922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7793
7794 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7795
7796 * keyboard.h: Comment an #endif.
7797
7798 * lisp.h (have_menus_p): Adjust comment.
7799
7800 * menu.c (find_and_return_menu_selection): Fix comparison with
7801 client_data.
7802
7803 * nsmenu.m (popup_activated_flag): New variable.
7804 (popup_activated): New function.
7805 (menu-or-popup-active-p): New exported lisp definition.
7806 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7807 when popup done.
7808 (ns_popup_dialog): Set popup_activated_flag.
7809
7810 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7811 version for GNUstep (handled by conditional typedef in nsterm.m).
7812 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7813 in rgb.txt).
7814
7815 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7816
7817 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7818
7819 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7820
7821 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7822 shortcircuit if popup_activated like GTK and X toolkit.
7823
7824 * m/inter386.h: Change DARWIN to DARWIN_OS.
7825
7826 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7827 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7828 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7829 comment on NO_SOCK_SIGIO.
7830
78312008-08-03 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * nsterm.m (windowDidResize): Remove stopModal call.
7834
78352008-08-03 Andreas Schwab <schwab@suse.de>
7836
7837 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7838 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7839
78402008-08-02 Chong Yidong <cyd@stupidchicken.com>
7841
7842 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7843 Don't use uninitialized pointer variable when using getrlimit.
7844
78452008-08-02 Jason Rumney <jasonr@gnu.org>
7846
7847 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7848
78492008-08-02 Eli Zaretskii <eliz@gnu.org>
7850
7851 * alloc.c (NSTATICS): Bump to 0x640.
7852
7853 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7854
7855 * lisp.h: Add prototype for directory_files_internal.
7856
7857 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7858 New functions.
7859 (syms_of_process): Defsubr them. Add initializations for various
7860 Q* symbols used in procfs_system_process_attributes.
7861 (procfs_list_system_processes, procfs_system_process_attributes)
7862 [HAVE_PROCFS]: New functions.
7863 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7864 (procfs_get_total_memory): New functions.
7865
78662008-08-01 Juanma Barranquero <lekktu@gmail.com>
7867
7868 * xfaces.c (Fx_load_color_file): Fix previous change;
7869 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7870
78712008-08-01 Michael Albinus <michael.albinus@gmx.de>
7872
7873 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7874
78752008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7876
7877 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7878
78792008-08-01 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7882
7883 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7884 define NSApplicationDelegateReplySuccess.
7885 (EmacsView -converstationIdentifier): Use long instead of
7886 NSInteger for GNUstep, since it doesn't have NSInteger.
7887
7888 * xmenu.c: Revert last change.
7889
7890 * keyboard.h: Fix last change.
7891
78922008-08-01 Juanma Barranquero <lekktu@gmail.com>
7893
7894 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7895 on Windows.
7896
78972008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7898
7899 Warning clearing and clean-up in NS port.
7900 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7901 Add prototypes.
7902 * nsgui.h (FACE_DEFAULT): Remove, unused.
7903 (XGCValues): Change colors to unsigned long.
7904 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7905 nsterm.m.
7906 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7907 (ns_list_fonts): Remove, unused.
7908 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7909 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7910 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7911 (nsfont_draw): Compare face colors to 0, not nil.
7912 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7913 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7914 (-addSubmenuWithTitle:): Use NSMenuItem class.
7915 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7916 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7917 (ns_clip_to_row): Make gc arg a BOOL.
7918 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7919 ns_clip_to_row() call.
7920 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7921 used). Cast FRAME_FONT assignments.
7922 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7923 (ns_string_to_lispmod): Change arg to const char.
7924 (ns_term_init): Use NSMenuItem class.
7925 (EmacsApp -openFile:): Move to different section of file.
7926 (EmacsApp -application:openFiles:): Don't return a value, call
7927 -replyToOpenOrPrint:.
7928 (EmacsView -keyDown:): Fix up cast.
7929 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7930 (EmacsView -menuDown:): Cast tag in call to
7931 find_and_call_menu_selection().
7932 (ns_list_fonts): Remove, unused.
7933 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7934 (ns_fontname_to_xlfd): Make static.
7935 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7936 Remove prototypes (now in keyboard.h).
7937 (next_menubar_widget_id): Remove, unused.
7938 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7939 Remove prototypes (now in keyboard.h).
7940 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7941
79422008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7943
7944 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7945 (floatfns.o): Depend on syssignal.h.
7946 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7947
7948 * systty.h: Fix previous change that removed BSD_TERMIOS.
7949 Add comments to #ifdefs.
7950
79512008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7952
7953 * w32fns.c (w32-load-color-file): Remove.
7954 (x-open-connection): Use renamed Fx_load_color_file.
7955 * xfaces.c (x-load-color-file): Add.
7956 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7957 Emacs.clr.
7958 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7959
79602008-07-31 Michael Albinus <michael.albinus@gmx.de>
7961
7962 * dbusbind.c (Fdbus_call_method_asynchronously)
7963 (Fdbus_method_error_internal): New defuns.
7964 (xd_read_message): Handle also reply messages.
7965 (Vdbus_registered_functions_table): Extend docstring.
7966
79672008-07-31 Juanma Barranquero <lekktu@gmail.com>
7968
7969 * keyboard.c (gobble_input): Fix previous change.
7970
79712008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7972
7973 * bitmaps/README:
7974 * xfns.c:
7975 * termcap.c:
7976 * term.c:
7977 * syswait.h:
7978 * systty.h:
7979 * systime.h:
7980 * syssignal.h:
7981 * sysdep.c:
7982 * process.h:
7983 * process.c:
7984 * print.c:
7985 * ndir.h:
7986 * lread.c:
7987 * keyboard.c:
7988 * getpagesize.h:
7989 * floatfns.c:
7990 * fileio.c:
7991 * emacs.c:
7992 * doc.c:
7993 * dispnew.c:
7994 * dired.c:
7995 * data.c:
7996 * callproc.c:
7997 * buffer.c:
7998 * README:
7999 * Makefile.in:
8000 * s/template.h:
8001 * s/msdos.h:
8002 * m/vax.h: Remove VMS support.
8003 * s/vms.h:
8004 * vlimit.h:
8005 * uaf.h:
8006 * temacs.opt:
8007 * param.h:
8008 * ioctl.h: Remove file.
8009
80102008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8011
8012 * s/ms-w32.h (MULTI_KBOARD): Remove.
8013 * xterm.c:
8014 * xselect.c:
8015 * xfns.c:
8016 * window.c:
8017 * w32term.c:
8018 * w32fns.c:
8019 * terminal.c:
8020 * termhooks.h:
8021 * term.c:
8022 * sysdep.c:
8023 * keyboard.h:
8024 * keyboard.c:
8025 * frame.h:
8026 * frame.c:
8027 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8028 * config.in: Regenerate.
8029
80302008-07-30 Jason Rumney <jasonr@gnu.org>
8031
8032 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8033
8034 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8035 (w32font_open_internal): Get unicode version of textmetrics.
8036 Don't enable or disable glyph indices here.
8037 (w32font_open): Disable use of glyph indices.
8038
8039 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8040
80412008-07-30 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * minibuf.c (Vread_buffer_function): Doc fix.
8044
80452008-07-30 John Paul Wallington <jpw@pobox.com>
8046
8047 * minibuf.c (read_buffer_completion_ignore_case): New var.
8048 (Fread_buffer): Use it.
8049
80502008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8051
8052 * systty.h (sensemode): Remove empty #if. Remove reference to
8053 BSD_TERMIOS, unused.
8054
8055 * sysdep.c: Remove reference to DGUX.
8056 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8057
8058 * config.in: Regenerate.
8059
80602008-07-30 Jason Rumney <jasonr@gnu.org>
8061
8062 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8063
80642008-07-29 Jason Rumney <jasonr@gnu.org>
8065
8066 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8067 is populated.
8068 (uniscribe_encode_char): Always use uniscribe.
8069 Avoid using context if cache is populated.
8070
80712008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8072
8073 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8074 open menu.
8075
8076 * gtkutil.c (menu_nav_ended): Remove.
8077 (create_menus): Remove signal connect for menu_nav_ended.
8078
80792008-07-28 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * xdisp.c (redisplay_window): Check return value of
8082 compute_window_start_on_continuation_line before forcing a window
8083 start.
8084
80852008-07-28 Jason Rumney <jasonr@gnu.org>
8086
8087 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8088
8089 * w32term.c (w32_enable_unicode_output, cleartype_active):
8090 Remove obsolete display options.
8091 (x_draw_glyph_string_background): Don't use old cleartype_active
8092 workaround.
8093 (w32_initialize): Remove cleartype_active initialization.
8094 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8095
80962008-07-28 Andreas Schwab <schwab@suse.de>
8097
8098 * lisp.h (init_weak_hash_tables, syms_of_font)
8099 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8100 (remove_hash_entry): Don't declare.
8101 * eval.c (maybe_call_debugger): Make static and move before use.
8102 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8103 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8104 * xterm.h (x_set_frame_alpha): Declare.
8105
81062008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8107
8108 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8109 (create_menus): Connect selection-done to menu_nav_ended.
8110
81112008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8112
8113 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8114 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8115 parameter with read of 'alpha' one.
8116 (Qns_frame_parameter): Remove.
5582fbc7 8117 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8118 (next-selection-coding-system, Vselection_coding_system)
8119 (Vnext_selection_coding_system): Drop.
8120
81212008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8122
8123 * nsfns.m (do-applescript, do_applescript): Rename to
8124 ns-do-applescript, ns_do_applescript, and move within file.
8125
81262008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8127
8128 Remove support for Mac Carbon.
8129 * mactoolbox.c:
8130 * macterm.h:
8131 * macterm.c:
8132 * macselect.c:
8133 * macmenu.c:
8134 * macgui.h:
8135 * macfns.c:
8136 * mac.c: Remove file.
8137 * s/darwin.h:
8138 * m/intel386.h:
8139 * xfaces.c:
8140 * xdisp.c:
8141 * window.c:
8142 * tparam.c:
8143 * termhooks.h:
8144 * termcap.c:
8145 * term.c:
8146 * syssignal.h:
8147 * sysselect.h:
8148 * sysdep.c:
8149 * process.c:
8150 * lread.c:
8151 * lisp.h:
8152 * keyboard.c:
8153 * image.c:
8154 * fringe.c:
8155 * frame.h:
8156 * frame.c:
8157 * fontset.c:
8158 * font.h:
8159 * font.c:
8160 * fns.c:
8161 * fileio.c:
8162 * emacs.c:
8163 * dispnew.c:
8164 * dispextern.h:
8165 * config.in:
8166 * atimer.c:
2ae37cf0 8167 * Makefile.in: Remove code for Carbon.
aac0c6e3 8168
f0131492 81692008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8170
8171 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8172
81732008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8174
8175 * macterm.h (kCGBitmapByteOrder32Host): New define for
8176 non-universal SDKs.
8177
8178 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8179 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8180
8181 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8182 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8183
81842008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8185
8186 * w32inevt.c: Include dispextern.h.
8187
81882008-07-26 Andreas Schwab <schwab@suse.de>
8189
8190 * print.c (print_object): Fix off-by-one in last change.
8191
81922008-07-25 Juanma Barranquero <lekktu@gmail.com>
8193
8194 * term.c (syms_of_term): Don't initialize default_orig_pair,
8195 default_set_foreground and default_set_background on Windows.
8196
81972008-07-25 Jason Rumney <jasonr@gnu.org>
8198
8199 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8200 ScriptItemize. Clean up return value checking. Remove unused
8201 variables.
8202 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8203 shaping engine.
8204
8205 * w32font.c (w32font_has_char): Handle the case where we can't
8206 determine the script for a character.
8207
82082008-07-25 Chong Yidong <cyd@stupidchicken.com>
8209
8210 * term.c (syms_of_term): Initialize default_orig_pair,
8211 default_set_foreground, and default_set_background.
8212
8213 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8214 clash (bug#86).
8215 (getloadavg): Callers changed.
8216
8217 * image.c (svg_load_image): Fix last change.
8218 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8219 image size is valid. Use g_object_unref instead of deprecated
8220 rsvg_handle_free to free rsvg handle.
8221 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8222
82232008-07-25 Jason Rumney <jasonr@gnu.org>
8224
8225 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8226 surrogates before looking up glyph index.
8227 (w32font_text_extents): Encode as surrogates if falling back to
8228 functions that need UTF-16 wide chars.
8229
8230 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8231 BMP as surrogates before looking up glyph index.
8232
82332008-07-25 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * image.c (svg_load_image): Check for failure in return value of
8236 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8237
82382008-07-25 Jason Rumney <jasonr@gnu.org>
8239
8240 * w32font.c (Fx_select_font): Reverse sense of second arg.
8241
82422008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8243
8244 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8245 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8246
8247 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8248 (PURESIZE): Use it.
8249
82502008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8251
8252 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8253 * m/alpha.h (TEXT_END):
8254 * m/ibmrs6000.h (TEXT_END):
8255 * m/macppc.h (TEXT_END):
8256 * s/darwin.h (TEXT_END):
8257 * s/msdos.h (TEXT_END): Remove, unused.
8258 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8259 * s/cygwin.h: Remove comment.
8260
8261 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8262 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8263 * m/intel386.h (DOT_GLOBAL_START):
8264 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8265 (USG): Remove, file not used on USG platforms.
8266
8267 * Makefile.in (HAVE_X11): Remove empty #else.
8268
82692008-07-24 Andreas Schwab <schwab@suse.de>
8270
8271 * fileio.c (Finsert_file_contents): Properly adjust undo list
8272 after format conversion.
8273
82742008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8275
8276 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8277 (menu_nav_ended): Remove.
8278 (create_menus): Remove signal connect for menu_nav_ended.
8279 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8280 create_menus.
8281 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8282
82832008-07-23 Jason Rumney <jasonr@gnu.org>
8284
8285 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8286 with opened font.
8287 (w32font_open): Set font type to gdi.
8288
8289 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8290
82912008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8292
8293 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8294 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8295 defines it.
8296 * unexec.c (ADDR_CORRECT): Define unconditionally.
8297
8298 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8299
8300 * unexec.c: Remove code depending on !COFF and USG, the file is
8301 not used for such systems.
8302
8303 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8304 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8305 (LD_SWITCH_SYSTEM_1): Remove, update users.
8306
8307 * s/darwin.h (DATA_END):
8308 * m/intel386.h (DATA_END):
8309 * m/ibmrs6000.h (DATA_END):
8310 * m/alpha.h (DATA_END): Remove, unused.
8311
8312 * config.in: Regenerate.
8313 * s/ms-w32.h (subprocesses): Define unconditionally.
8314 * s/template.h (subprocesses): Update comment.
8315 * s/vms.h (subprocesses):
8316 * s/usg5-4.h (subprocesses):
8317 * s/hpux10-20.h (subprocesses):
8318 * s/gnu-linux.h (subprocesses):
8319 * s/cygwin.h (subprocesses):
8320 * s/bsd-common.h (subprocesses):
8321 * s/aix4-2.h (subprocesses):
8322 * s/darwin.h (subprocesses): Do not define, defined by default now.
8323
8324 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8325 Remove all references.
8326 (temacs): Add GNUstep specific ld flags.
8327
8328 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8329 similarly to what X does.
8330
83312008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8332
8333 * nsfns.m (x-list-fonts): Remove.
8334 (syms_of_nsfns): Drop the x-list-fonts declaration.
8335 * nsterm.m: Get rid of remaining "//" comments.
8336
83372008-07-22 Chong Yidong <cyd@stupidchicken.com>
8338
8339 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8340
8341 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8342 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8343 (Fns_own_selection_internal, Fx_disown_selection_internal)
8344 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8345
8346 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8347 ... */' style of docstrings. Doc fixes.
8348
83492008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8350
8351 * terminfo.c (UP, BC, PC): Undo previous change.
8352
8353 * nsfns.m: Rename ns prefixed functions/variables to the
8354 corresponding x versions. Update references.
8355
83562008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8357
8358 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8359
83602008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8361
8362 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8363 Remove forwarding functions.
8364 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8365 non-static.
8366 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8367 non-static.
8368 (ns_frame_parm_handlers): Use the new names.
8369 (syms_of_nsfns): Move to the end of file.
8370
8371 * nsterm.m (syms_of_nsterm): Move to the end of file.
8372
8373 * dispnew.c (init_display): Remove code for X10.
8374
83752008-07-22 Jason Rumney <jasonr@gnu.org>
8376
8377 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8378 bare drive.
8379
83802008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8381
8382 * nsterm.m (syms_of_nsterm): Remove debugging println.
8383
83842008-07-22 David Reitter <david.reitter@gmail.com>
8385
8386 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8387 Carbon implementation of the same functionality: execute arbitrary
8388 AppleScript code.
8389
83902008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8391
8392 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8393 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8394 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8395 (Fx_display_mm_height, Fx_display_mm_width)
8396 (Fx_display_backing_store, Fx_display_visual_class)
8397 (Fx_display_save_under, Fx_open_connection)
8398 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8399 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8400 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8401 (Fx_display_pixel_width, Fx_display_pixel_height)
8402 (Fx_display_usable_bounds, Fx_display_planes)
8403 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8404 ... */' style of docstrings.
8405
84062008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8407
8408 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8409 on this platform.
8410 (mips):
8411 * m/iris4d.h (mips): Do not define.
8412 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8413
8414 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8415
8416 * image.c:
8417 * nsfns.m:
8418 * nsselect.m:
8419 * nsterm.h:
8420 * nsterm.m: Rename ns prefixed functions/variables to the
8421 corresponding x versions. Update references.
8422
8423 * m/ibms390x.h (NO_REMAP): Do not undefine.
8424
8425 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8426
84272008-07-21 Chong Yidong <cyd@stupidchicken.com>
8428
8429 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8430 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8431 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8432 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8433 (Fns_display_mm_height, Fns_display_mm_width)
8434 (Fns_display_backing_store, Fns_display_visual_class)
8435 (Fns_display_save_under, Fns_open_connection)
8436 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8437 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8438 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8439 (Fns_display_pixel_width, Fns_display_pixel_height)
8440 (Fns_display_usable_bounds, Fx_display_planes)
8441 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8442
84432008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8444
8445 * print.c (print_object): Check print_depth before searching for
8446 circularities.
8447
84482008-07-21 Michael Albinus <michael.albinus@gmx.de>
8449
8450 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8451 only sprintf.
8452
84532008-07-21 Kenichi Handa <handa@m17n.org>
8454
8455 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8456
84572008-07-20 Andreas Schwab <schwab@suse.de>
8458
8459 * syntax.c (find_start_pos, find_start_value)
8460 (find_start_value_byte, find_start_begv, find_defun_start)
8461 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8462
84632008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8464
8465 * s/sol2-3.h: Insert contents of s/sol2.h.
8466 (LD_SWITCH_SYSTEM): Remove redundant definition.
8467 * s/sol2.h: Remove, unused.
8468
84692008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8470
8471 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8472
84732008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8474
8475 * Makefile.in (ns_appdir): Fix typo in find command.
8476
84772008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8478
8479 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8480
8481 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8482 added not supported anymore.
8483
8484 * s/usg5-4-2.h (LIBS_SYSTEM):
8485 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8486
8487 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8488 * s/lynxos.h (GETPGRP_NO_ARG):
8489 * s/hpux10-20.h (NO_SIOCTL_H):
8490 * s/gnu.h (GETPGRP_NO_ARG):
8491 * s/gnu-linux.h (NO_SIOCTL_H):
8492 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8493 * s/cygwin.h (GETPGRP_NO_ARG):
8494 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8495 (C_DEBUG_SWITCH): Remove duplicate definition.
8496
8497 * m/ibms390.h: Remove boilerplate comments.
8498
8499 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8500
8501 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8502 (wait_reading_process_output): Remove code for SunOS, platform not
8503 supported anymore. Use SOLARIS2 instead of sun.
8504
85052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8506
8507 * font.c (font_open_by_name): Under NS, default lface height to zero.
8508 (font_open_for_lface): Under NS, set size based on frame fontsize.
8509 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8510 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8511
85122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8513
8514 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8515 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8516 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8517 YES/NO.
8518 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8519 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8520 * Makefile.in (clean): Clear out build destination dir.
8521
85222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8523
8524 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8525 xterm, xselect.
8526 * lisp.h: Remove declaration of hash_remove.
8527 * nsgui.h: Remove redefinitions of hash_remove.
8528 * fns.c (hash_remove): Rename to hash_remove_from_table.
8529
85302008-07-19 Seiji Zenitani <zenitani@mac.com>
8531
8532 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8533 strdup() the family UTF8String before modifying it.
8534
85352008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8536
8537 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8538 NS_FACE_BACKGROUND with 0 instead of nil.
8539 * nsfont.m (nsfont_draw): Same.
8540
85412008-07-19 Chong Yidong <cyd@stupidchicken.com>
8542
8543 * nsfns.m (ns_set_background_color): Fix crash.
8544
85452008-07-18 Chong Yidong <cyd@stupidchicken.com>
8546
8547 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8548
85492008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8550
8551 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8552
85532008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8554
8555 * gtkutil.c: Include <config.h> instead of "config.h".
8556
8557 * lisp.h (Foverlay_buffer): Add EXFUN.
8558
8559 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8560 child process to complete child_setup. Undo 2005-09-21 change.
8561
8562 * s/darwin.h: Mention setsid after vfork.
8563
85642008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8565
8566 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8567 Depend on macgui.h.
8568
8569 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8570 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8571
8572 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8573 and f19.
8574 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8575
8576 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8577 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8578 Remove enumerators.
8579
8580 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8581 Check if FACE_FROM_ID returns NULL.
8582
85832008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8584
8585 * w32inevt.c (change_frame_size): Remove extern declaration.
8586 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8587 change_frame_size.
8588
85892008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8590
8591 * getloadavg.c: Revert last change (2008-07-15).
8592
85932008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8594
8595 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8596 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8597 from configure.
8598
85992008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8600
8601 * s/sol2.h:
8602 * s/sol2-4.h: Reorganize conditionals.
8603
8604 * ecrt0.c: Remove code depending on m68000, not used anymore.
8605
8606 * fns.c (hash_remove): Make static.
8607 * lisp.h (hash_remove): Don't prototype.
8608
8609 * m/ibmrs6000.h:
8610 * m/ibms390x.h:
8611 * m/macppc.h: Remove boilerplate comments.
8612
8613 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8614 Solaris, which does not need them.
8615
8616 * m/vax.h: Remove comments about unsupported systems.
8617
8618 * s/darwin.h: Reorganize ifdefs.
8619
86202008-07-17 Andreas Schwab <schwab@suse.de>
8621
8622 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8623
86242008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8625
8626 Use SDATA. Follow coding convention of placing operators at
8627 beginning of next line rather than end of previous line, and placing
8628 spaces around infix operators.
8629
8630 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8631 in case it was defined already.
8632 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8633 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8634 ns_default.
8635 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8636 Lisp_Objects.
8637 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8638 (ns_defined_color, ns_color_to_lisp): Declare.
8639 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8640 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8641 it's accepted even with USE_LISP_UNION_TYPE.
8642 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8643 (update_frame_tool_bar): Remove apparently obsolete tests for
8644 non-integerness of f->tool_bar_lines.
8645 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8646 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8647 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8648 (nsfont_open): Don't confuse NULL for Qnil.
8649 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8650 * menu.h (find_and_call_menu_selection):
8651 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8652 (find_and_return_menu_selection): Always return something.
8653 * frame.h: Include dispextern.h for Display_Info.
8654 (display_x_get_resource): Declare.
8655
86562008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8657
8658 * syntax.c: Remove stdio.h include accidentally introduced in
8659 Emacs.app commit.
8660 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8661 NS_IMPL_COCOA.
8662 * keyboard.c (handle_async_input, input_available_signal): Remove
8663 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8664
86652008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8666
8667 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8668 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8669 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8670 Use SDATA.
8671
8672 * keymap.c: Remove all NS-specific code.
8673 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8674 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8675 where_is_preferred_modifier, return a different value depending on how
8676 preferred is the binding.
8677 (where_is_internal): Adjust accordingly.
8678 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8679 Adjust to new preferred_sequence_p.
8680 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8681 * keyboard.c (parse_solitary_modifier): Not static any more.
8682 * keyboard.h (parse_solitary_modifier): Declare.
8683
86842008-07-16 Andreas Schwab <schwab@suse.de>
8685
8686 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8687 of easymenu.
8688
86892008-07-16 Chong Yidong <cyd@stupidchicken.com>
8690
8691 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8692 that we don't move off the line.
8693
86942008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8695
8696 * keyboard.c (Qsuper): Remove.
8697 (parse_menu_item): Don't call where_is_internal specially for NS.
8698
86992008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8700
8701 * s/gnu-linux.h: Remove boilerplate comments.
8702
8703 * m/alpha.h (__ELF__): Consolidate conditions.
8704
8705 * m/m68k.h (linux): Use GNU_LINUX instead.
8706 Remove boilerplate comments.
8707
8708 * m/intel386.h: Undo refactoring from previous change.
8709 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8710 too, remove dead code.
8711 (linux): Use GNU_LINUX instead.
8712
87132008-07-16 Jason Rumney <jasonr@gnu.org>
8714
8715 * w32gui.h: Repeat 26 June changes lost by last change.
8716
87172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8718
8719 * systty.h: Remove code for Aix on 386, unsupported platform.
8720
8721 * s/ms-w32.h: Remove boilerplate comments.
8722 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8723
8724 * s/gnu-linux.h (TERM): Remove support.
8725 (HAVE_SYSVIPC): Remove, unused.
8726 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8727 for this system.
8728
8729 * process.c: Remove support for IRIS, unused.
8730 Remove support for TERM, not relevant anymore.
8731
8732 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8733 used with the definition.
8734
8735 * s/aix4-2.h (static): Do not undef.
8736
8737 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8738 only used on Aix.
8739 (HAVE_SYSVIPC): Remove, unused.
8740
8741 * m/hp800.h (CANNOT_DUMP): Do not undef.
8742
8743 * m/alpha.h: Fix comment.
8744
8745 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8746 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8747 used by this configuration.
8748 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8749 * unexec.c: Remove code depending on HPUX and
8750 USG_SHARED_LIBRARIES, not used with this file. Remove code
8751 depending on IRIS, unused. Remove if 0-ed code.
8752
8753 * s/template.h: Remove comments about static.
8754
8755 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8756 Remove if 0-ed code.
8757 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8758 were the same as the default.
8759 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8760 Remove boilerplate comments.
8761 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8762 (HAVE_SYSVIPC): Remove, unused.
8763 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8764
8765 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8766 Remove boilerplate comments.
8767 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8768 Remove boilerplate comments.
8769 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8770 Remove boilerplate comments.
8771 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8772
8773 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8774 USG systems which do not use DATA_SEG_BITS.
8775 Refactor code. Remove boilerplate comments.
8776
8777 * m/ibms390.h:
8778 * m/m68k.h:
8779 * s/bsd-common.h:
8780 * s/cygwin.h:
8781 * s/darwin.h:
8782 * s/freebsd.h:
8783 * s/gnu.h:
8784 * s/msdos.h: Remove boilerplate comments.
8785
8786 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8787 do not use this file.
aac0c6e3
MR
8788 (IRIS_4D): Remove, unused.
8789
8790 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8791 do not use this file.
aac0c6e3
MR
8792 (SIGN_EXTEND_CHAR):
8793 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8794 * unexmips.c: Remove file, unused.
8795
8796 * editfns.c (Fuser_full_name): Replace the only use of
8797 USER_FULL_NAME with its value.
8798 * config.in: Regenerate.
8799
88002008-07-16 David Reitter <david.reitter@gmail.com>
8801
8802 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8803 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8804
88052008-07-16 Glenn Morris <rgm@gnu.org>
8806
8807 * emacs.c (system-type): Doc fix.
8808
88092008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8810
8811 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8812 If the cache doesn't work, let's fix it, rather than work around it.
8813
88142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8815
8816 * Makefile.in: Correct additions for nsfont.o in last commit.
8817 * nsfont.m: New file (forgot last commit).
8818
88192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8820
8821 * callproc.c (set_initial_environment): Initialize
8822 Vprocess_environment under CANNOT_DUMP (fixes crash when
8823 batch-compiling for bootstrap).
8824
88252008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8826 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8827
8828 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8829 fix crash due to different init order.
8830
88312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8832
8833 Changes and additions for NeXTstep windowing system (Cocoa and
8834 GNUstep) support.
8835
8836 * Makefile.in:
8837 * config.in: Support defines and build commands for NS port.
8838 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8839 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8840 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8841 windowing.
8842 (struct face): Add synth_ital field.
8843 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8844 (init_display): Initialize Vinitial_window_system to "ns" when so
8845 compiled.
8846 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8847 (display_arg): Use under NS.
8848 (main): Under NS, allocate autorelease pool and handle command line
8849 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8850 (standard_args): Add NS-specific args.
8851 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8852 * font.c (DEFAULT_ENCODING): New variable.
8853 (font_find_for_lface): Use it.
8854 (syms_of_font): Load syms_of_nsfont under NS.
8855 * font.h: Declare nsfont_driver when compiled under NS.
8856 * fontset.c: When compiling under NS, include nsterm.h.
8857 (fontset_from_font): Autoconstruct fontset under NS.
8858 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8859 symbol, document and use it.
8860 (do_switch_frame): When for_deletion under Cocoa, add
8861 Fraise_frame(Qnil).
8862 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8863 (x_get_arg): Allow "yes" and "no" as boolean values.
8864 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8865 Qright under Cocoa.
8866 (focus-follows-mouse): Default to 0 under NS.
8867 * frame.h (enum output_method): Add output_ns.
8868 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8869 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8870 (FRAME_WINDOW_P): NS-specific definition.
8871 * fringe.c (max_used_fringe_bitmap): Make public.
8872 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8873 (getloadavg): Use NeXT code under descendant OS's.
8874 * image.c (includes and header section, x_create_bitmap_from_data)
8875 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8876 (image_background_transparent, x_clear_image_1)
8877 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8878 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8879 (x_to_xcolors, x_from_xcolors, x_disable_image)
8880 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8881 other GUIs, including XPM support using code originally written for
8882 Carbon GUI.
8883 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8884 using NS API.
8885 (image_ascent): Use font metrics macros instead of direct struct field
8886 access.
8887 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8888 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8889 Also, handle NS as GTK for menu bar purposes.
8890 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8891 toolkit where they differ.
8892 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8893 use cachelist, still needed under NS.
8894 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8895 (struct widget_value): Define it here for menu.c.
8896 * keymap.c (includes): Include modifier internals.
8897 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8898 NS.
8899 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8900 support for preferring sequences using certain modifiers, specified by
8901 the FIRSTONLY argument.
8902 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8903 under NS GNUstep implementation.
8904 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8905 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8906 * menu.c: Include nsterm.h under NS.
8907 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8908 (free_menubar_widget_tree_value, update_submenu_strings)
8909 (find_and_call_menu_selection): Treat NS as X and NT.
8910 (find_and_return_menu_selection): New function, used for popup menus.
8911 * nsgui.h:
8912 * nsterm.h:
8913 * nsfns.m:
8914 * nsimage.m:
8915 * nsmenu.m:
8916 * nsselect.m:
8917 * nsterm.m: New files.
8918 * process.c (wait_reading_process_output): Under NS, call ns_select()
8919 instead of plain select().
8920 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8921 beginning of buffer.
8922 * sysselect.h (init_process): Rename when compiling under Cocoa to
8923 avoid name conflict.
8924 * termhooks.h (display_info): Add ns_display_info to union.
8925 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8926 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8927 COCOA environment.
8928 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8929 unexec() signature. (Note, this will dump, but the resulting file
8930 crashes; unexosx is used instead; keeping around for reference and
8931 possible aid in getting dump working under GNUstep.)
8932 * w32gui.h (button_type, widget_value): Remove definitions (now in
8933 keyboard.h).
8934 * window.c: Include nsterm.h when compiling under NS.
8935 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8936 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8937 other GUI windowing systems.
8938 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8939 GTK.
8940 (x_consider_frame_title): Under NS, set icon type and frame
8941 modified-state indicator; use ns_set_name_as_filename() when using
8942 formatted title.
8943 (update_window_cursor): Make public when compiling under NS.
8944 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8945 (hourglass_atimer, Vhourglass_delay
8946 * xfaces.c (header section, init_frame_faces, clear_font_table)
8947 (defined_color, unload_color, x_face_list_fonts)
8948 (prepare_face_for_display): Add NS support parallel to other GUIs.
8949 Emulate GCs like other non-X GUIs.
8950 (split_font_name): Don't lowercase font name under NS.
8951 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8952 under NS.
8953 * s/darwin.h: Add support for compilation under NS.
8954
89552008-07-15 Jason Rumney <jasonr@gnu.org>
8956
8957 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8958 (w32_show_hourglass): Rename from show_hourglass.
8959 (w32_hide_hourglass): Rename from hide_hourglass.
8960 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8961 (Vhourglass_delay): Declare extern.
8962 (hourglass_started): Remove.
8963
8964 * xdisp.c (Vhourglass_delay): Remove static.
8965 (hourglass_started, start_hourglass, cancel_hourglass):
8966 Don't include these versions on WINDOWSNT.
8967
89682008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8969
8970 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8971 variables (formerly in xfns.c).
8972 (show_hourglass, hide_hourglass): New prototypes (same).
8973 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8974 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8975 in xfns.c).
8976 (syms_of_xdisp): Declare/initialize display-hourglass,
8977 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8978 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8979 formerly in xfns.c.
8980 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8981 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8982 (start_hourglass, cancel_hourglass): Remove.
8983 (show_hourglass, hide_hourglass): Remove prototypes and static
8984 modifiers.
8985 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8986 hourglass_atimer, hourglass_shown_p declaration/initialization.
8987 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8988 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8989 (start_hourglass, cancel_hourglass): Remove.
8990 (show_hourglass, hide_hourglass): Remove prototypes and static
8991 modifiers.
8992 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8993 hourglass_atimer, hourglass_shown_p declaration/initialization.
8994 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8995 (DEFAULT_HOURGLASS_DELAY): Remove.
8996 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8997 hourglass_shown_p declaration/initialization.
8998
89992008-07-14 Jason Rumney <jasonr@gnu.org>
9000
9001 * w32fns.c (w32_get_arg): Remove wrapper function.
9002 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9003 directly.
9004 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9005
90062008-07-14 Kenichi Handa <handa@m17n.org>
9007
9008 * xfont.c (xfont_open): Add workaround for X's bug.
9009
90102008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9011
9012 * fontset.c: Include <stdio.h> unconditionally.
9013
90142008-07-13 Michael Albinus <michael.albinus@gmx.de>
9015
9016 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9017 for filtering.
9018
90192008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9020
9021 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9022
9023 * m/macppc.h:
9024 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9025
9026 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9027 (SPECIAL_EMACS_INT):
9028 * m/ia64.h (SPECIAL_EMACS_INT):
9029 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9030 * s/gnu.h (NLIST_STRUCT):
9031 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9032 * s/gnu-linux.h (LINUX):
9033 * s/msdos.h (HAVE_FACES):
9034 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9035
9036 * systty.h:
9037 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9038 anymore.
9039
90402008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9041
9042 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9043 always defined as int.
9044
9045 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9046 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9047 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9048 * s/freebsd.h (HAVE_WAIT_HEADER):
9049 * s/bsd-common.h (HAVE_UNION_WAIT):
9050 * s/aix4-2.h (HAVE_WAIT_HEADER):
9051 * m/mips.h (HAVE_UNION_WAIT):
9052 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9053 (COFF, static): Do not define, they are undefined later in the file.
9054
9055 * process.c (update_status): Don't use a union.
9056 (status_convert):
9057 (sigchld_handler): Use int instead of WAITTYPE.
9058
90592008-07-12 Chong Yidong <cyd@stupidchicken.com>
9060
9061 * indent.c (Fvertical_motion): Restore hscroll before moving to
9062 goal column.
9063
90642008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9065
9066 * lisp.h: Remove left over code.
9067
90682008-07-11 Andreas Schwab <schwab@suse.de>
9069
9070 * lisp.h: Fix logic in last change.
9071
9072 * menu.h: New file.
9073 * menu.c: Include it.
9074 * xmenu.c: Likewise.
9075 * Makefile.in: Update dependencies.
9076
90772008-07-11 Kenichi Handa <handa@m17n.org>
9078
9079 * fontset.c (fontset_from_font): Cancel the previous change.
9080
90812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9082
9083 * lisp.h:
9084 * w32heap.c:
9085 * emacs.c:
9086 * alloc.c: Replace all references of NO_UNION_TYPE with
9087 USE_LISP_UNION_TYPE.
9088
9089 * m/xtensa.h (NO_UNION_TYPE):
9090 * m/vax.h (NO_UNION_TYPE):
9091 * m/template.h (NO_UNION_TYPE):
9092 * m/sparc.h (NO_UNION_TYPE):
9093 * m/mips.h (NO_UNION_TYPE):
9094 * m/macppc.h (NO_UNION_TYPE):
9095 * m/m68k.h (NO_UNION_TYPE):
9096 * m/iris4d.h (NO_UNION_TYPE):
9097 * m/intel386.h (NO_UNION_TYPE):
9098 * m/ibms390x.h (NO_UNION_TYPE):
9099 * m/ibms390.h (NO_UNION_TYPE):
9100 * m/ibmrs6000.h (NO_UNION_TYPE):
9101 * m/ia64.h (NO_UNION_TYPE):
9102 * m/hp800.h (NO_UNION_TYPE):
9103 * m/arm.h (NO_UNION_TYPE):
9104 * m/amdx86-64.h (NO_UNION_TYPE):
9105 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9106 defining it the same.
9107
91082008-07-10 Chong Yidong <cyd@stupidchicken.com>
9109
9110 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9111
91122008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9113
9114 * fileio.c:
9115 * sysdep.c
9116 * systty.h:
9117 * m/ibmrs6000.h:
9118 * m/iris4d.h:
9119 * s/aix4-2.h:
9120 * s/freebsd.h:
9121 * s/gnu-linux.h:
9122 * s/hpux10-20.h:
9123 * s/hpux11.h:
9124 * s/netbsd.h:
9125 * s/sol2-3.h:
9126 * s/sol2-4.h:
9127 * s/sol2.h:
9128 * s/usg5-4.h:
9129 * s/vms.h: Remove references to unused variables.
9130
91312008-07-10 Andreas Schwab <schwab@suse.de>
9132
9133 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9134 pattern before matching the generic family.
9135
91362008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9137
9138 * unexec.c:
9139 * s/vms.h:
9140 * s/usg5-4-2.h:
9141 * s/sol2-5.h:
9142 * s/freebsd.h:
9143 * s/darwin.h: Remove dead code.
9144
9145 * m/template.h:
9146 * m/sparc.h:
9147 * m/mips.h:
9148 * m/m68k.h:
9149 * m/iris4d.h:
9150 * m/intel386.h:
9151 * m/ibms390x.h:
9152 * m/ibms390.h:
9153 * m/ia64.h:
9154 * m/hp800.h:
9155 * m/arm.h:
9156 * m/amdx86-64.h: Remove dead code and references to unused
9157 and compiler defined symbols.
9158
9159 * unexmips.c:
9160 * unexelf.c: Remove references to desupported systems.
9161
9162 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9163
9164 * m/powermac.h: Remove boilerplate comments.
9165 (NO_REMAP): Remove unused definition.
9166
9167 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9168 define them.
9169
91702008-07-10 Kenichi Handa <handa@m17n.org>
9171
9172 * xfont.c (xfont_open): Log the reason of failure.
9173
91742008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9175
9176 * fontset.c (fontset_get_font_group):
9177 * font.c (font_check_otf): Specify argument types.
9178
91792008-07-09 Kenichi Handa <handa@m17n.org>
9180
9181 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9182 non-ASCII char is found.
9183
9184 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9185 (reorder_font_vector): Change the arg preferred_family to font.
9186 Prefer the spec matching with font.
9187 (fontset_get_font_group): New function.
9188 (fontset_find_font): Change the format of an element of a realized
9189 fontset. Use fontset_get_font_group.
9190 (fontset_font): Try the current fontset, the default fontset, the
9191 fallbacks of the current fontset, and the fallbacks of the default
9192 fontset in this order.
9193 (face_for_char): Delete the shortcut to use the current font.
9194 (fontset_from_font): Don't set fonts for Latin in the fontset.
9195
9196 * font.h (font_make_object, font_match_p): Adjust prototypes.
9197
9198 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9199
9200 * font.c (font_make_object): New arg entity and pixelsize.
9201 (font_check_otf_features, font_check_otf): New functions.
9202 (font_match_p): Check :lang, :script, and :otf properties.
9203
9204 * xfont.c (xfont_open): Adjust it for the change of
9205 font_make_object.
9206 (xfont_text_extents): Fix initial setting of metrics.
9207
9208 * ftfont.c (struct ftfont_info): New member index, delete member
9209 fc_charset_idx. Make the member order compatible with struct
9210 xftfont_info.
9211 (fc_charset_table): Change charset names to registry names.
9212 (ftfont_pattern_entity): Delete the args registry and
9213 fc_charset_idx. Change the value of :font-entity property
9214 to (FONTNAME . INDEX). Always set :registry property to
9215 `iso10646-1'.
9216 (struct ftfont_cache_data): New struct.
9217 (ftfont_lookup_cache): New arg for_face.
9218 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9219 (ftfont_driver): Set the member otf_capability.
9220 (ftfont_get_charset): Adjust it for the change of
9221 fc_charset_table.
9222 (OTF_TAG_SYM): New macro.
9223 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9224 for the change of fc_charset_table.
9225 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9226 ftfont_pattern_entity. Add FC_INDEX to objset.
9227 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9228 and ftfont_pattern_entity.
9229 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9230 font_make_object, struct ftfont_info.
9231 (ftfont_has_char): Use ftfont_get_fc_charset.
9232 (ftfont_otf_features, ftfont_otf_capability): New functions.
9233 (ftfont_shape): Use ftfont_get_otf.
9234 (ftfont_text_extents): Fix initial setting of metrics.
9235
9236 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9237 member order compatible with struct ftfont_info.
9238 (xftfont_open): Add FC_CHARSET to the pattern. Set
9239 xftfont_info->ft_size. Don't unlock the face. Check BDF
9240 properties if appropriate.
9241 (xftfont_close): Unlock the face.
9242 (xftfont_anchor_point, xftfont_shape): Deleted.
9243 (syms_of_xftfont): Don't set members anchor_point and shape of
9244 xftfont_driver.
9245
9246 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9247 font_make_object.
9248
9249 * w32font.c (w32font_open): Adjust it for the change of
9250 font_make_object.
9251 (w32font_open_internal): Don't set properties of font_object here.
9252
92532008-07-08 Chong Yidong <cyd@stupidchicken.com>
9254
9255 * macfns.c (x_create_tip_frame):
9256 * w32fns.c (x_create_tip_frame):
9257 * xfns.c (x_create_tip_frame): Pass parameter argument to
9258 face-set-after-frame-default.
9259
9260 * xfaces.c (Finternal_merge_in_global_face): Save merged
9261 attributes for the default face back into the face vector.
9262
92632008-07-08 Andreas Schwab <schwab@suse.de>
9264
9265 * fontset.h: Declare fontset_from_font. Don't declare
9266 new_fontset_from_font and fontset_from_font_name.
9267 * xterm.c: Include "fontset.h".
9268 * Makefile.in (xterm.o): Update dependencies.
9269
92702008-07-08 Glenn Morris <rgm@gnu.org>
9271
9272 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9273 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9274
92752008-07-07 Chong Yidong <cyd@stupidchicken.com>
9276
9277 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9278 (x_set_frame_parameters): Don't bind it.
9279
92802008-07-07 Juanma Barranquero <lekktu@gmail.com>
9281
9282 * w32fns.c (map_w32_filename): Declare extern.
9283
92842008-07-07 Jason Rumney <jasonr@gnu.org>
9285
9286 * w32term.c (WS_EX_LAYERED): Define if not already.
9287
92882008-07-06 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * xfaces.c (set_font_frame_param): Don't try to set the font
9291 parameter if it is still unspecified in the lface.
9292
92932008-07-05 Chong Yidong <cyd@stupidchicken.com>
9294
9295 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9296 face if it didn't already exist.
9297
9298 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9299
93002008-07-05 Andreas Schwab <schwab@suse.de>
9301
9302 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9303
93042008-07-05 Chong Yidong <cyd@stupidchicken.com>
9305
9306 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9307 word-wrapping.
9308 (IT_DISPLAYING_WHITESPACE): New macro.
9309 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9310 when word-wrapping. Simplify word-wrapping logic. Use correct
9311 pixel positions when saving copies of the iterator.
9312 (display_line): Use proper wrap point if the last character on a
9313 line was preceded by whitespace.
9314
93152008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9318
93192008-07-04 Kenichi Handa <handa@m17n.org>
9320
9321 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9322
9323 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9324
93252008-07-02 Jason Rumney <jasonr@gnu.org>
9326
9327 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9328 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9329
9330 * xdisp.c (next_element_from_display_vector): Move assignment out
9331 of if statement.
9332
93332008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9334
9335 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9336
9337 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9338 (syms_of_fileio): Initialize and export them.
9339 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9340
9341 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9342 (Fsystem_move_file_to_trash): New function.
9343 (syms_of_w32fns): Export it to lisp.
9344
93452008-07-01 Jason Rumney <jasonr@gnu.org>
9346
9347 * w32font.c (w32font_text_extents): Don't count overhang as part
9348 of width.
9349
93502008-06-30 Miles Bader <miles@gnu.org>
9351
9352 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9353 Add `avoid_cursor_p' field.
9354
9355 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9356 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9357 (append_glyph, append_composite_glyph, produce_image_glyph)
9358 (append_stretch_glyph): Initialize avoid_cursor_p.
9359 (get_it_property): Rename from `get_line_height_property'.
9360 (x_produce_glyphs): Use get_it_property.
9361 (handle_line_prefix, push_display_prop): New functions.
9362 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9363 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9364 New variables.
9365 (syms_of_xdisp): Initialize them.
9366
93672008-06-30 Kenichi Handa <handa@m17n.org>
9368
9369 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9370 XftDefaultSubstitute (they are called in XftFontMatch).
9371 (xftfont_open): Fix args to ftfont_font_format.
9372
9373 * ftfont.c (fc_charset_table): New member lang.
9374 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9375 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9376 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9377 (ftfont_open): Fix args to ftfont_font_format.
9378 (ftfont_font_format): New arg filename.
9379
93802008-06-30 Chong Yidong <cyd@stupidchicken.com>
9381
9382 * xfaces.c (Finternal_merge_in_global_face): If default face was
9383 modified, realize it again. Update the font face attribute.
9384
93852008-06-29 Jason Rumney <jasonr@gnu.org>
9386
9387 * w32term.c (x_set_frame_alpha): Fix logic.
9388
93892008-06-29 Kenichi Handa <handa@m17n.org>
9390
9391 * fontset.c (Finternal_char_font): Return font-object instead of
9392 font-name.
9393
9394 * composite.c (get_composition_id): Fix the width calculation for TAB.
9395
93962008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * indent.c (Fvertical_motion): Properly handle float column arg.
9399
94002008-06-28 Jason Rumney <jasonr@gnu.org>
9401
9402 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9403 (pfnSetLayeredWindowAttributes): New function pointer.
9404 (w32_initialize): Initialize it when supported.
9405 (x_set_frame_alpha): New function.
9406
9407 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9408 (w32_frame_parm_handlers): Set alpha handler.
9409
9410 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9411
94122008-06-27 Jason Rumney <jasonr@gnu.org>
9413
9414 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9415 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9416 (w32_to_x_charset, x_to_w32_charset)
9417 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9418 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9419 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9420 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9421 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9422 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9423 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9424 (Qw32_charset_unicode): Remove.
9425 (syms_of_w32fns): Update for above changes.
9426
9427 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9428 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9429 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9430 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9431 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9432 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9433 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9434 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9435 (syms_of_w32font): Update for above changes.
9436
94372008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9438
9439 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9440 removed #if.
9441 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9442
94432008-06-26 Juanma Barranquero <lekktu@gmail.com>
9444 Eli Zaretskii <eliz@gnu.org>
9445
9446 * makefile.w32-in (LOCAL_FLAGS):
9447 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9448
9449 * sysdep.c (_spawnlp, _getpid):
9450 Declare with explicit _cdecl instead of _CRTAPI1.
9451
9452 * editfns.c (Fget_internal_run_time):
9453 Check for WINDOWSNT with #ifdef, not #if.
9454
94552008-06-26 Jason Rumney <jasonr@gnu.org>
9456
9457 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9458
9459 * w32term.c (x_draw_glyph_string_foreground)
9460 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9461 Use FONT_HANDLE macro.
9462 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9463
9464 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9465 (uniscribe_encode_char): Use FONT_HANDLE macro.
9466
9467 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9468 (w32font_text_extents): Use precast w32_font.
9469 (w32font_close): Free cached metrics.
9470 (w32font_open_internal): Allocate space for name on stack.
9471
94722008-06-26 Chong Yidong <cyd@stupidchicken.com>
9473
9474 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9475
94762008-06-26 Jason Rumney <jasonr@gnu.org>
9477
9478 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9479 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9480
94812008-06-26 Juanma Barranquero <lekktu@gmail.com>
9482
9483 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9484
94852008-06-26 Jason Rumney <jasonr@gnu.org>
9486
9487 * w32bdf.c, w32bdf.h: Remove obsolete files.
9488
9489 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9490
9491 * w32gui.h: Don't include w32bdf.h.
9492 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9493 Remove obsolete font support.
9494
9495 * w32font.h (struct w32font_info): Remove compat_w32_font.
9496 Add hfont member.
9497 (FONT_COMPAT): Remove obsolete macro.
9498
9499 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9500 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9501 (w32font_open_internal): Remove compat code. Set new hfont member.
9502 (Fx_select_font): Use new hfont member.
9503
9504 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9505 (uniscribe_encode_char): Use new hfont member.
9506
9507 * w32term.c (x_draw_glyph_string_foreground)
9508 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9509 (x_draw_glyph_string): Use metrics in w32font_info.
9510
95112008-06-26 Kenichi Handa <handa@m17n.org>
9512
9513 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9514
95152008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9516
9517 * unexnext.c:
9518 * m/ews4800.h:
9519 * m/hp9000s300.h:
9520 * m/ibm370aix.h:
9521 * m/mips-siemens.h:
9522 * m/ncr386.h:
9523 * m/next.h:
9524 * m/pmax.h:
9525 * m/powerpcle.h:
9526 * m/tandem-s2.h:
9527 * s/386bsd.h:
9528 * s/bsd386.h:
9529 * s/bsd4-1.h:
9530 * s/bsd4-2.h:
9531 * s/bsdos2-1.h:
9532 * s/bsdos2.h:
9533 * s/bsdos3.h:
9534 * s/bsdos4.h:
9535 * s/nextstep.h:
9536 * s/ultrix4-3.h:
9537 * s/usg5-0.h:
9538 * s/usg5-2-2.h:
9539 * s/usg5-2.h:
9540 * s/usg5-4-3.h:
9541 * s/ux4800.h:
9542 * s/uxpds.h:
9543 * s/uxpv.h: Remove support for obsolete systems.
9544 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9545 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9546 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9547 Remove, insert contents in s/aix4-2.h.
9548 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9549 * s/bsd4-3.h: Rename to ...
9550 * s/bsd-common.h: ... this.
9551 * data.c:
9552 * doc.c:
9553 * ecrt0.c:
9554 * emacs.c:
9555 * fileio.c:
9556 * floatfns.c:
9557 * keyboard.c:
9558 * mem-limits.h:
9559 * print.c:
9560 * process.c:
9561 * sysdep.c:
9562 * syssignal.h:
9563 * systty.h:
9564 * syswait.h:
9565 * term.c:
9566 * unexec.c:
9567 * unexelf.c:
9568 * unexhp9k800.c:
9569 * m/hp800.h:
9570 * m/ibmrs6000.h:
9571 * m/mips.h:
9572 * m/vax.h:
9573 * s/darwin.h:
9574 * s/freebsd.h:
9575 * s/gnu.h:
9576 * s/ms-w32.h:
9577 * s/msdos.h:
9578 * s/netbsd.h:
9579 * s/template.h: Remove references to obsolete variables.
9580
9581 * Makefile.in: Add dependencies for all unexec files.
9582 (admindir): Remove unused variable.
9583 (UNEXEC_SRC): Remove references.
9584
95852008-06-25 Chong Yidong <cyd@stupidchicken.com>
9586
9587 * xfns.c (x_default_font_parameter): If Xft is available, first
9588 try Monospace-12 for the default font.
9589
95902008-06-25 Jason Rumney <jasonr@gnu.org>
9591
9592 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9593
95942008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9595
9596 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9597
9598 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9599
96002008-06-25 Juanma Barranquero <lekktu@gmail.com>
9601
9602 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9603 <scroll-conservatively>: Fix typo in docstring.
9604
9605 * xselect.c (Fx_send_client_event): Doc fix.
9606
96072008-06-25 Kenichi Handa <handa@m17n.org>
9608
9609 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9610
9611 * font.c (font_parse_fcname): Remove unused variables.
9612 (font_sort_entites): Delete the arg SPEC. Caller changed.
9613 Fix for the case of ! best_only.
9614 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9615
9616 * lisp.h (Fstring_to_unibyte): EXFUN it.
9617
9618 * character.h (str_to_unibyte): Extern it.
9619
9620 * character.c (str_to_unibyte): New function.
9621
9622 * fns.c (Fstring_to_unibyte): New function.
9623 (syms_of_fns): Defsubr it.
9624
96252008-06-24 Kenichi Handa <handa@m17n.org>
9626
9627 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9628 DPI too.
9629 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9630
96312008-06-24 Andreas Schwab <schwab@suse.de>
9632
9633 * Makefile.in (${lispsource}loaddefs.el): Rename from
9634 ../lisp/loaddefs.el.
9635 (bootstrap-clean): Do what distclean does but don't remove
9636 Makefile.
9637 (distclean): Depend on bootstrap-clean and remove Makefile.
9638
96392008-06-24 Chong Yidong <cyd@stupidchicken.com>
9640
9641 * buffer.h (struct buffer): New member word_wrap.
9642
9643 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9644 word-wrap.
9645 (init_buffer_once): Initialize them.
9646
9647 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9648 line_wrap enum possessing three possible values.
9649
9650 * termopts.h: Replace truncate_partial_width_windows with
9651 Vtruncate_partial_width_windows.
9652
9653 * dispnew.c (direct_output_for_insert): Avoid direct output when
9654 inserting a space with word wrap on.
9655
9656 * indent.c (compute_motion): Obey integer values of
9657 truncate-partial-width-windows.
9658
9659 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9660 replacing truncate_partial_width_windows.
9661 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9662 truncate only if the window width is below that integer.
9663 (start_display, resize_mini_window, produce_stretch_glyph)
9664 (display_string, move_it_in_display_line_to): Use line_wrap.
9665 (back_to_previous_visible_line_start, reseat_1): Reset
9666 string_from_display_prop_p.
9667 (display_line): Extend default face to end of line when wrapping.
9668
96692008-06-24 Kim F. Storm <storm@cua.dk>
9670
9671 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9672 to wrap continued lines at word boundaries.
9673
96742008-06-24 Jason Rumney <jasonr@gnu.org>
9675
9676 * font.c (Ffont_face_attributes): Multiply pixel size before point
9677 conversion to avoid multiplying rounding error.
9678
96792008-06-23 Jason Rumney <jasonr@gnu.org>
9680
9681 * w32term.c (x_draw_glyph_string_background)
9682 (x_draw_glyph_string): Remove old bdf font code.
9683
9684 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9685
96862008-06-22 Kenichi Handa <handa@m17n.org>
9687
9688 * font.c (font_find_for_lface): Try the adstyle specified in
9689 the property of LFACE_FONT of LFACE (if any).
9690
96912008-06-21 Seiji Zenitani <zenitani@mac.com>
9692 Ryo Yoshitake <ryo@shiftmode.net>
9693
9694 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9695
96962008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9699 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9700 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9701 (witness-emacs): Remove.
9702 (lisp, shortlisp): Move loaddefs.el earlier.
9703 (mostlyclean): Forget about witness-emacs.
9704
97052008-06-22 Glenn Morris <rgm@gnu.org>
9706
9707 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9708 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9709
97102008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9711
9712 * Makefile.in (PRECOMP): Remove.
9713 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9714 (witness-emacs): Run `compile-first'.
9715 (.el.elc): Use the new compile-onefile target.
9716
97172008-06-21 Kenichi Handa <handa@m17n.org>
9718
9719 * xftfont.c (xftfont_open): Handle QCembolden only when
9720 FC_EMBOLDEN is defined.
9721
97222008-06-21 Andreas Schwab <schwab@suse.de>
9723
9724 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9725 (.el.elc): Likewise.
9726
97272008-06-21 Miles Bader <miles@gnu.org>
9728
9729 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9730 build dir, not the lisp source dir.
9731
97322008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9735 (bootstrapclean): Remove.
9736 (.el.elc): New rule.
9737 (PRECOMP): New var.
9738 (../lisp/subdirs.el): Remove.
9739 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9740 (witness-emacs): New target.
9741 (mostlyclean): Remove witness-emacs as well.
9742 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9743 Add witness-emacs dependency.
9744
97452008-06-20 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9748 defined by the font.
9749
97502008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9751
9752 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9753 (bootstrap-clean): New target that keeps TAGS around.
9754 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9755 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9756
97572008-06-20 Jason Rumney <jasonr@gnu.org>
9758
9759 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9760 Remove obsolete font code.
9761
9762 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9763 to determine language support.
9764
97652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * sysdep.c (cfsetspeed): New fun extracted from the code.
9768 (cfmakeraw): Move before first use.
9769
97702008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9771
9772 * sysdep.c (cfmakeraw): Provide fallback implementation.
9773 (serial_configure): Provide fallback implementation of cfsetspeed.
9774
97752008-06-20 Kenichi Handa <handa@m17n.org>
9776
9777 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9778 the pattern.
9779
9780 * fontset.c (fontset_from_font): Copy font_spec before changing
9781 the elements.
9782
9783 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9784
97852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9786
9787 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9788 for explicit `font' parameters.
9789
9790 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9791
97922008-06-19 Kenichi Handa <handa@m17n.org>
9793
9794 * frame.c: Include <ctype.h>.
9795 (x_set_font_backend): Allow spacing characters in the X resource
9796 for FontBackend.
9797
97982008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * w32fns.c, xfns.c (Qfont_param): New var.
9801 (syms_of_w32fns): Initialize it.
9802 (x_default_font_parameter): Record explicit `font' into
9803 `font-parameter'.
9804
98052008-06-18 Kenichi Handa <handa@m17n.org>
9806
9807 * font.c (font_parse_xlfd): Fix previous change.
9808 (font_parse_fcname): Don't use :fc-unknown-spec.
9809 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9810 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9811 (font_add_log): Prepend the driver name to the resulting fonts.
9812
9813 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9814 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9815 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9816
9817 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9818 (QCembolden): New variables.
9819 (syms_of_xftfont): DEFSYM them.
9820 (xftfont_open): Call XftFontMatch. Don't trust the result of
9821 XftTextExtents8 if the pixel_size is less than 5.
9822
98232008-06-18 Andreas Schwab <schwab@suse.de>
9824
9825 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9826 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9827
98282008-06-18 Jason Rumney <jasonr@gnu.org>
9829
9830 * w32font.c (w32font_list, w32font_match): Add logging.
9831
9832 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9833
98342008-06-17 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * font.c (font_parse_fcname): Store divider characters for
9837 unknown-spec list. For known key symbols, intern using correct
9838 symbol name.
9839
98402008-06-17 Kenichi Handa <handa@m17n.org>
9841
9842 * xfaces.c (realize_default_face): If the frame is not on window
9843 system, set the fontset of face to nil.
9844
98452008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9846
9847 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9848
98492008-06-16 Juanma Barranquero <lekktu@gmail.com>
9850
9851 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9852 (build_font_name_from_vector): Delete externs.
9853
9854 * xfaces.c (struct font_name): Don't declare.
9855
98562008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9857
9858 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9859
98602008-06-16 Chong Yidong <cyd@stupidchicken.com>
9861
9862 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9863
98642008-06-16 Juanma Barranquero <lekktu@gmail.com>
9865
9866 * font.c (Ffont_spec): Fix usage in docstring.
9867 (Ffont_face_attributes): Doc fix.
9868
98692008-06-16 Andreas Schwab <schwab@suse.de>
9870
9871 * font.c (Ffont_face_attributes): Fix definition.
9872
98732008-06-16 Jason Rumney <jasonr@gnu.org>
9874
9875 * font.h (font_style_symbolic_from_value): Remove.
9876
9877 * font.c (font_style_symbolic_from_value): Remove.
9878 (font_style_symbolic): Revert to pre 2008-06-13 version.
9879
9880 * w32font.c (w32_to_fc_weight): New function.
9881 (w32font_full_name, logfont_to_fcname): Use it.
9882
98832008-06-16 Kenichi Handa <handa@m17n.org>
9884
9885 * font.c (font_check_object): Delete it.
9886 (font_clear_cache): Check if a font-object is alive.
9887 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9888 font-object to nil.
9889 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9890 (font_at): Don't call font_check_object.
9891 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9892
98932008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9894
9895 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9896
98972008-06-16 Chong Yidong <cyd@stupidchicken.com>
9898
9899 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9900
99012008-06-15 Chong Yidong <cyd@stupidchicken.com>
9902
9903 * font.c (font_parse_fcname): Only one decimal point.
9904 (font_unparse_fcname): Handle data in family and foundry indices
9905 as symbols, not strings.
9906 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9907
9908 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9909
9910 * font.h (font_unparse_gtkname): Add prototype.
9911
99122008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9913
9914 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9915
99162008-06-15 Andreas Schwab <schwab@suse.de>
9917
9918 * font.c (font_update_drivers): Fix crash when no drivers match.
9919
99202008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9921
9922 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9923 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9924
99252008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9926
9927 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9928
99292008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9930
9931 * process.c (Fserial_process_configure, Fprocess_send_eof):
9932 Use EQ to compare Lisp_Objects.
9933
99342008-06-13 Jason Rumney <jasonr@gnu.org>
9935
9936 * w32fns.c (Fw32_select_font): Remove old font API function.
9937
9938 * w32font.c (logfont_to_fcname): New function.
9939 (Fx_select_font): New font dialog function compatible with
9940 GTK/fontconfig version.
9941
9942 * font.c (font_style_symbolic_from_value): New function.
9943 (font_style_symbolic): Use it.
9944
9945 * font.h (font_style_symbolic_from_value): Declare new function.
9946
99472008-06-13 Juanma Barranquero <lekktu@gmail.com>
9948
9949 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9950 <font-width-table>: Fix typos in docstrings.
9951
99522008-06-13 Daniel Engeler <engeler@gmail.com>
9953
9954 These changes add serial port access.
9955 * process.c: Add HAVE_SERIAL.
9956 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9957 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9958 (list_processes_1, select_wrapper, Fstop_process)
9959 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9960 (status_notify): Modify to handle serial processes.
9961 [HAVE_SERIAL] (Fserial_process_configure)
9962 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9963 New functions.
9964 * process.h (struct Lisp_Process): Add `type'.
9965 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9966 New functions.
9967 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9968 serial ports.
b71ac3dd 9969 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9970 * w32.h: Add FILE_SERIAL.
9971 (struct _child_process): Add ovl_read, ovl_write.
9972
99732008-06-13 Kenichi Handa <handa@m17n.org>
9974
9975 * dispextern.h (enum lface_attribute_index): New member
9976 LFACE_FOUNDRY_INDEX.
9977
9978 * font.c (font_score): Delete arg alternate_families. Check only
9979 weight, slant, width, and size. Ignore the difference of alias
9980 style symbols.
9981 (font_sort_entites): Adjust for the above change. Reflect the
9982 order of font-driver to scores.
9983 (font_list_entities): Don't check alternate_familes here.
9984 (font_clear_prop): Handle foundry.
9985 (font_update_lface): Don't parse "foundry-family" form here.
9986 Handle FONT_FOUNDRY_INDEX.
9987 (font_find_for_lface): Likewise. Handle alternate families here.
9988 If registry is nil, try iso8859-1 and ascii-0.
9989 (font_open_for_lface): Pay attention to size in ENTITY.
9990 (font_open_by_name): Simplify by calling font_load_for_lface.
9991 (free_font_driver_list): Delete it.
9992 (font_update_drivers): Preserve the order of backends.
9993 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9994 of font_score and font_sort_entites.
9995 (font_update_sort_order): Likewise.
9996
9997 * xfaces.c (LFACE_FOUNDRY): New macro.
9998 (check_lface_attrs): Check foundry.
9999 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10000 (merge_face_vectors): Check foundry.
10001 (merge_face_ref): Likewise.
10002 (Finternal_set_lisp_face_attribute): Likewise.
10003 (x_update_menu_appearance): Likewise.
10004 (Finternal_get_lisp_face_attribute): Likewise.
10005 (lface_hash): Likewise.
10006 (lface_same_font_attributes_p): Likewise.
10007 (x_supports_face_attributes_p): Likewise.
10008 (tty_supports_face_attributes_p): Likewise.
10009 (Finternal_set_alternative_font_family_alist): Intern strings.
10010 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10011 (realize_default_face): Set LFACE_FOUNDRY (lface).
10012
10013 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10014 font-driver at first.
10015
10016 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10017
100182008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10019
10020 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10021
100222008-06-12 Jim Meyering <meyering@redhat.com>
10023
10024 Make unexec_free handle NULL the same way free does.
10025 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10026
100272008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10028
10029 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10030 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10031 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10032 (WEAK_ALIAS): Simplify.
10033 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10034 when searching a unibyte buffer.
10035
100362008-06-12 Chong Yidong <cyd@stupidchicken.com>
10037
10038 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10039
100402008-06-12 Juanma Barranquero <lekktu@gmail.com>
10041
10042 * w32font.c: Include ctype.h.
10043
100442008-06-11 Jason Rumney <jasonr@gnu.org>
10045
10046 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10047 misreported as space.
10048 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10049 as aliases for registry iso10646-1.
10050
100512008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * buffer.c (clone_per_buffer_values): Skip `name'.
10054
100552008-06-11 Chong Yidong <cyd@stupidchicken.com>
10056
10057 * font.c (font_parse_fcname): Fix last change; accept decimal
10058 points in font size.
10059
100602008-06-10 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32uniscribe.c (add_opentype_font_name_to_list):
10063 Skip non unicode fonts.
10064
100652008-06-10 Chong Yidong <cyd@stupidchicken.com>
10066
10067 * xfns.c (Fx_font_dialog): New function.
10068
10069 * gtkutil.c (xg_dialog_response_cb): Rename from
10070 xg_file_response_callback.
10071 (pop_down_dialog): Rename from pop_down_file_dialog.
10072 (xg_get_file_name): Callers changed.
10073 (xg_get_font_name): New function.
10074
10075 * gtkutil.h (xg_get_font_name): Insert prototype.
10076
100772008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10078
10079 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10080 x_underline_minimum_display_offset.
10081 (syms_of_xdisp): Declare it here rather than in xterm.c.
10082 * dispextern.h (underline_minimum_offset): Declare it.
10083 * w32term.c (x_draw_glyph_string): Use it.
10084 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10085 (syms_of_xterm): Don't declare it any more.
10086 (x_draw_glyph_string): Adjust to the new name.
10087
8719abec 100882008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10089
10090 * xterm.c (x_underline_minimum_display_offset): New var.
10091 (x_draw_glyph_string): Use it.
10092 (syms_of_xterm): Declare it.
10093
100942008-06-10 Chong Yidong <cyd@stupidchicken.com>
10095
10096 * font.c (font_parse_fcname): Accept GTK-style font names too.
10097
100982008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10099
10100 * dired.c (file_name_completion): Don't return t if the match is exact
10101 but with different capitalization.
10102 * minibuf.c (Ftry_completion): Simplify.
10103
10104 * window.c (Vwindow_point_insertion_type): New var.
10105 (set_window_buffer): Use it.
10106 (syms_of_window): Init and export it to Lisp.
10107
101082008-06-10 Kenichi Handa <handa@m17n.org>
10109
10110 * font.h (font_intern_prop): Prototype adjusted.
10111
10112 * font.c (font_intern_prop): New arg force_symbol.
10113 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10114 Adjust for the change of font_intern_prop.
10115
10116 * ftfont.c (ftfont_pattern_entity):
10117 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10118 (w32_registry):
10119 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10120 the change of font_intern_prop.
10121
101222008-06-09 Juanma Barranquero <lekktu@gmail.com>
10123
10124 * w32menu.c (digest_single_submenu): Declare extern.
10125
101262008-06-09 Jason Rumney <jasonr@gnu.org>
10127
10128 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10129
10130 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10131 (parse_single_submenu): Remove.
10132 (digest_single_submenu): Remove.
10133 (syms_of_w32menu): Don't initialise variables that have moved
10134 to menu.c.
10135 (set_frame_menubar): Sync with version in xmenu.c.
10136 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10137
10138 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10139 Make static again.
10140
101412008-06-09 Jason Rumney <jasonr@gnu.org>
10142
10143 Changes to w32 files related to the move of common menu code
10144 to menu.c on 2008-06-08 by Chong Yidong.
10145
10146 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10147 defs to w32gui.h.
10148 (single_keymap_panes, push_menu_item, push_menu_pane):
10149 Make globally visible.
10150
10151 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10152 (local_free, malloc_widget_value, free_widget_value)
10153 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10154 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10155 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10156 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10157 (menu_items, menu_items_allocated, menu_items_used)
10158 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10159 (init_menu_items, finish_menu_items, discard_menu_items)
10160 (grow_menu_items, push_submenu_start, push_submenu_end)
10161 (push_left_right_boundary, push_menu_pane, push_menu_item)
10162 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10163 (free_menubar_widget_tree_value, parse_single_submenu)
10164 (update_submenu_strings): Remove functions.
10165 (xmalloc_widget_value): Remove and declare extern.
10166
10167 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10168 (OBJ1): Build it.
10169
10170 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10171 (local_heap, local_alloc, local_free, malloc_widget_value)
10172 (free_widget_value): Define here.
10173
101742008-06-09 Kenichi Handa <handa@m17n.org>
10175
10176 * font.h (Qascii_0): Extern it.
10177
10178 * font.c (Qascii_0): New variable.
10179 (syms_of_font): DEFSYM it.
10180 (font_open_by_name): If the registry "iso8859-1" fails, try also
10181 "ascii-0".
10182
10183 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10184
101852008-06-08 Kenichi Handa <handa@m17n.org>
10186
10187 * .gdbinit (xfont): New command.
10188
101892008-06-08 Andreas Schwab <schwab@suse.de>
10190
10191 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10192 * Makefile.in (menu.o): Update dependencies.
10193
10194 * Makefile.in (obj): Always add menu.o.
10195 * emacs.c (main): Always call syms_of_menu.
10196 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10197
101982008-06-08 Chong Yidong <cyd@stupidchicken.com>
10199
10200 * Makefile.in: Compile menu.c.
10201
10202 * lisp.h: Declare syms_of_menu.
10203
10204 * emacs.c (main): Call syms_of_menu.
10205
10206 * keyboard.h: Relocate platform-independent menu definitions from
10207 xmenu.c.
10208
10209 * menu.c: New file. Relocate platform-independent menu
10210 definitions from xmenu.c. Suggested by Adrian Robert.
10211
10212 * xmenu.c: Remove platform-independent menu definitions.
10213 (menu_items menu_items_inuse, menu_items_allocated)
10214 (menu_items_used, menu_items_n_panes)
10215 (menu_items_submenu_depth): Move to keyboard.h.
10216 (init_menu_items, finish_menu_items, unuse_menu_items)
10217 (discard_menu_items, restore_menu_items, save_menu_items)
10218 (grow_menu_items, push_submenu_start, push_submenu_end)
10219 (push_left_right_boundary, push_menu_pane, push_menu_item)
10220 (keymap_panes, single_keymap_panes, single_menu_item)
10221 (list_of_panes, list_of_items, find_and_call_menu_selection)
10222 (xmalloc_widget_value, free_menubar_widget_value_tree)
10223 (parse_single_submenu, digest_single_submenu)
10224 (update_submenu_strings): Move to menu.c.
10225
102262008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10227
10228 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10229
102302008-06-06 Miles Bader <miles@gnu.org>
10231
10232 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10233 face, not frame default.
10234
102352008-06-05 Martin Rudalics <rudalics@gmx.at>
10236
10237 * window.c (pop_up_windows, pop_up_frames)
10238 (display_buffer_reuse_frames, Vpop_up_frame_function)
10239 (Vdisplay_buffer_function, Veven_window_heights)
10240 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10241 (Vspecial_display_function, Vsame_window_buffer_names)
10242 (Vsame_window_regexps, split_height_threshold)
10243 (Vsplit_window_preferred_function): Move those vars to window.el.
10244 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10245 (Fdisplay_buffer): Move those functions to window.el.
10246 (syms_of_window): Remove corresponding declarations.
10247 (display_buffer): New function.
10248 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10249 * dispnew.c (Flast_nonminibuf_frame): New function.
10250 * buffer.c (Fpop_to_buffer): Move to window.el.
10251
102522008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10253
10254 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10255
102562008-06-05 Kenichi Handa <handa@m17n.org>
10257
10258 * coding.c (detect_coding): Fix previous change.
10259 (detect_coding_system): Likewise.
10260
102612008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10262
10263 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10264
10265 * keymap.c (Vminibuffer_local_filename_must_match_map):
10266 Rename from Vminibuffer_local_must_match_filename_map.
10267 (syms_of_keymap):
10268 * minibuf.c (Fcompleting_read): Adjust accordingly.
10269 * commands.h: Rename declaration as well.
10270
102712008-06-05 Kenichi Handa <handa@m17n.org>
10272
10273 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10274 family name.
10275 (Ffont_put): Likewise.
10276
10277 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10278 current font-spec.
10279
10280 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10281 is unspecified.
10282
10283 * xfaces.c (realize_x_face): If the font-related face attributes
10284 are the same as those of default face, realize a new fontset from
10285 default->fontset.
10286 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10287
102882008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10291 (move_it_in_display_line): New wrapper.
10292
10293 * window.c (window_scroll_pixel_based_preserve_x)
10294 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10295 (window_scroll_pixel_based, window_scroll_line_based):
10296 Use them to preserve column positions.
10297 (syms_of_window): Initialize them.
10298
10299 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10300 (HPOS . VPOS) pair.
10301
10302 * dispextern.h (move_it_in_display_line): Declare.
10303
103042008-06-05 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10307 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10308 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10309
103102008-06-04 Juanma Barranquero <lekktu@gmail.com>
10311
10312 * window.c (Fset_window_parameter): Doc fix.
10313 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10314
103152008-06-04 Joakim Verona <joakim@verona.se>
10316
10317 * window.h (struct window): Add new member window_parameters.
10318
10319 * window.c (Fwindow_parameters, Fwindow_parameter)
10320 (Fset_window_parameter): New defuns.
10321 (syms_of_window): Defsubr the new defuns.
10322 (make_window): Initialize window_parameters to nil.
10323
103242008-06-04 John Paul Wallington <jpw@pobox.com>
10325
10326 * eval.c (Fdefmacro): Doc fix.
10327
103282008-06-04 Kenichi Handa <handa@m17n.org>
10329
10330 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10331 Be sure to call setup_coding_system when we find a proper coding system.
10332 (detect_coding_system): Fix handling of coding->head_ascii.
10333
103342008-06-03 Andreas Schwab <schwab@suse.de>
10335
10336 * font.c (font_prop_validate_spacing): Fix last change.
10337
103382008-06-03 Kenichi Handa <handa@m17n.org>
10339
10340 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10341 (font_parse_fcname): Fix handling of unknown key.
10342
10343 * xfont.c (xfont_list): Try an alias.
10344
10345 * charset.c (char_charset): Return NULL if the arg charset_list is
10346 specified and C doesn't belong to any of them.
10347
103482008-06-02 Chip Coldwell <coldwell@redhat.com>
10349
10350 * font.c (font_pixel_size): Don't take cdr of an integer.
10351
103522008-06-02 Jim Meyering <meyering@redhat.com>
10353
10354 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10355 * alloc.c (xfree): Return right away for a NULL arg.
10356 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10357 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10358 * mac.c (create_apple_event_from_event_ref): Likewise.
10359 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10360 Likewise.
10361 * doprnt.c (doprnt1): Likewise.
10362 * frame.c (frame): Likewise.
10363 * keyboard.c (wipe_kboard): Likewise.
10364 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10365 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10366 * term.c (tty_default_color_capabilities, maybe_fatal)
10367 (delete_tty): Likewise.
10368 * w16select.c (string): Likewise.
10369 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10370 * w32bdf.c (w32_free_bdf_font): Likewise.
10371 * w32fns.c (w32_unload_font): Likewise.
10372 * w32font.c (w32font_close): Likewise.
10373 * window.c (size_window): Likewise.
10374 * xselect.c (receive_incremental_selection): Likewise.
10375 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10376 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10377 * w32.c (stat): Likewise.
10378
10379 Remove useless if-before-free tests.
10380 * editfns.c (Fset_time_zone_rule): Likewise.
10381 * lread.c (nosuffix): Likewise.
10382 * ralloc.c (get_bloc): Likewise.
10383 * regex.c (reg_free): Likewise.
10384 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10385 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10386 * xsmfns.c (smc_save_yourself_CB): Likewise.
10387
103882008-06-02 Kenichi Handa <handa@m17n.org>
10389
10390 * font.c (font_find_for_lface): Handle float font size.
10391 (font_open_for_lface): Likewise.
10392
10393 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10394 comparing the properties.
10395
103962008-06-01 Jason Rumney <jasonr@gnu.org>
10397
10398 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10399 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10400 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10401 Don't add empty script list.
10402 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10403
104042008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10405
10406 * Makefile.in (dot, dotdot): Remove, update users.
10407 ".." has been used elsewhere in the file for a long time.
10408 (LIBXT_STATIC): Remove conditional based on unused variable.
10409
104102008-06-01 Miles Bader <miles@gnu.org>
10411
10412 * xfaces.c (Vface_remapping_alist): New variable.
10413 (syms_of_xfaces): Initialize it.
10414 (enum named_merge_point_kind): New type.
10415 (struct named_merge_point): Add `named_merge_point_kind' field.
10416 (push_named_merge_point): Make cycle detection respect different
10417 named-merge-point kinds.
10418 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10419 Remove face-name alias resolution.
10420 (lface_from_face_name): New definition using
10421 `lface_from_face_name_no_resolve'.
10422 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10423 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10424 (get_lface_attributes): New definition that layers face-remapping on
10425 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10426 (lookup_basic_face): New function.
10427 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10428 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10429 `get_lface_attributes'.
10430 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10431 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10432 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10433
10434 * xdisp.c (init_iterator): Pass base_face_id through
10435 `lookup_basic_face' when we actually use it as a face-id.
10436 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10437 DEFAULT_FACE_ID.
10438
10439 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10440 lookup the initial face-id.
10441
10442 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10443
104442008-06-01 Juanma Barranquero <lekktu@gmail.com>
10445
10446 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10447 (Fremove_text_properties): Fix typos in docstrings.
10448
104492008-05-31 Kenichi Handa <handa@m17n.org>
10450
10451 * font.c (font_list_entities): Fix the car part of data to be
10452 stored in the cache.
10453
10454 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10455
104562008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10457
10458 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10459 Add a `test' argument so another predicate than `equal' can be used.
10460 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10461 (map_char_table): Remove unused vars `c' and `i'.
10462 * lisp.h (Foptimize_char_table): Adjust declaration.
10463 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10464
104652008-05-30 Kenichi Handa <handa@m17n.org>
10466
10467 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10468 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10469 defined.
10470
104712008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10472
10473 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10474 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10475 frame-local settings for the same variable.
10476
104772008-05-30 Kenichi Handa <handa@m17n.org>
10478
10479 * fontset.c (Ffont_info): Move to font.c.
10480 (syms_of_fontset): Delete defsubr of Sfont_info.
10481
10482 * font.c (font_style_to_value, font_score): Delete casting of the
10483 args to xstcasecmp.
10484 (register_font_driver): Increment num_font_drivers only when
10485 registering the driver globally.
10486 (Ffont_info): Move from fontset.c. Handle a font object too.
10487 (syms_of_font): Defsubr Sfont_info.
10488
104892008-05-29 Kenichi Handa <handa@m17n.org>
10490
10491 * coding.h (enum define_coding_utf8_arg_index): New enum.
10492 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10493 coding_attr_utf_bom.
10494 (enum utf_bom_type): Rename from utf_16_bom_type.
10495 (struct utf_16_spec): Adjust for the above change.
10496 (struct coding_system): Add utf_8_bom in `spec' union.
10497
10498 * coding.c (CODING_UTF_8_BOM): New macro.
10499 (enum coding_category): Delete coding_category_utf_8, add
10500 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10501 coding_category_utf_8_sig.
10502 (CATEGORY_MASK_UTF_8): Delete it.
10503 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10504 (CATEGORY_MASK_UTF_8_SIG): New macros.
10505 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10506 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10507 CATEGORY_MASK_UTF_8_SIG.
10508 (CATEGORY_MASK_UTF_8): New macro.
10509 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10510 (detect_coding_utf_8): Check BOM.
10511 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10512 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10513 (encode_coding_utf_16): Likewise.
10514 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10515 (detect_coding, detect_coding_system): Handle utf-8-auto.
10516 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10517 (syms_of_coding): Fix setting up of Vcoding_category_table.
10518
105192008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10520
10521 * process.c (Faccept_process_output): If `millisec' is non-nil,
10522 `seconds' default to 0.
10523 (wait_reading_process_output): Also return non-nil if we read output
10524 from a non-running process.
10525
105262008-05-29 Jason Rumney <jasonr@gnu.org>
10527
10528 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10529 `raster' specified.
10530 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10531 in the uniscribe backend, but disallow any font that has no
10532 unicode subrange support.
10533
105342008-05-29 Juanma Barranquero <lekktu@gmail.com>
10535
10536 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10537 Fix typos in docstrings.
10538
105392008-05-29 Kenichi Handa <handa@m17n.org>
10540
10541 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10542 (Fx_family_fonts): Set frame correctly.
10543
105442008-05-28 Jason Rumney <jasonr@gnu.org>
10545
10546 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10547
105482008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10549
10550 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10551 calling build_annotations.
10552
105532008-05-28 Juanma Barranquero <lekktu@gmail.com>
10554
10555 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10556 (Fencode_coding_string):
10557 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10558 <latin-extra-code-table>: Fix typos in docstrings.
10559 (syms_of_coding) <coding-system-alist>: Doc fix.
10560 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10561
105622008-05-28 Kenichi Handa <handa@m17n.org>
10563
10564 * fontset.c (Ffont_info): Don't call font_close_object.
10565
10566 * font.c (font_parse_family_registry): Use Ffont_put to validate
10567 foundry and family.
10568 (font_delete_unmatched): Don't check spacing.
10569 (font_list_entities): Add spacing to the spec to list fonts.
10570
10571 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10572 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10573
10574 * coding.c (encode_coding_raw_text): Fix previous change.
10575 (encode_coding_object): When the dst_object is a buffer and is
10576 different from src_object, move gap to PT.
10577
105782008-05-27 Chong Yidong <cyd@stupidchicken.com>
10579
10580 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10581
105822008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10583
10584 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10585 all branches. Compute it differently.
10586
10587 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10588
105892008-05-27 Juanma Barranquero <lekktu@gmail.com>
10590
10591 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10592 into "else if () ... else ...".
10593
105942008-05-27 Jason Rumney <jasonr@gnu.org>
10595
10596 * w32font.c (w32font_open_internal): Determine if glyph indices
10597 are likely to work here.
10598
105992008-05-27 Chong Yidong <cyd@stupidchicken.com>
10600
10601 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10602 draw overlap glyphs with appropriate highlighting.
10603
106042008-05-27 Kenichi Handa <handa@m17n.org>
10605
10606 * xfont.c (xfont_open): Fix calculation of font->average_width.
10607
106082008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10609
10610 * casefiddle.c (casify_object): Try to guess better whether the
10611 argument is a byte or a char.
10612
106132008-05-26 Andreas Schwab <schwab@suse.de>
10614
10615 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10616 Always send multiples of format size.
10617
10618 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10619
106202008-05-26 Jason Rumney <jasonr@gnu.org>
10621
10622 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10623 (compute_metrics): Don't set failure if we just cleared the cache.
10624 (w32_weight_table): Remove unused variable.
10625 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10626 backwards compatibility.
10627
106282008-05-25 Kenichi Handa <handa@m17n.org>
10629
10630 * w32term.c (x_draw_glyph_string):
10631 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10632
10633 * xfaces.c: Delete unused function prototypes.
10634 (xstrlwr, font_frame): Delete them.
10635 (clear_face_cache): Delete unused variable.
10636
10637 * xftfont.c (xftfont_open): Delete unused variable.
10638 If underline_thickness is not 1, adjust underline_position.
10639
10640 * ftxfont.c (ftxfont_open): Delete unused variable.
10641
10642 * fontset.c (face_for_char): Optimize for the case of no charset
10643 property.
10644
10645 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10646 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10647 (otf_open, font_otf_capability, generate_otf_features)
10648 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10649 Comment out by surrounding "#if 0" and "#endif" for the moment.
10650 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10651 (syms_of_font): Codes for accessing above commented out.
10652
106532008-05-24 Eli Zaretskii <eliz@gnu.org>
10654
10655 * w32proc.c: Include dispextern.h.
10656
10657 * w32.c: Include dispextern.h.
10658
106592008-05-23 Juanma Barranquero <lekktu@gmail.com>
10660
10661 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10662 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10663 Fix typos in docstrings.
10664
106652008-05-23 Jason Rumney <jasonr@gnu.org>
10666
10667 * xsmfns.c: Remove includes that are already included by config.h.
10668
106692008-05-23 Kenichi Handa <handa@m17n.org>
10670
10671 * charset.c (Qemacs, charset_emacs): New variables.
10672 (char_charset): Fix for non-Unicode characters.
10673 (syms_of_charset): Define charset_emacs.
10674
10675 * w32term.c (x_draw_glyph_string): Be sure to update
10676 s->underline_thickness and s->underline_position. Be sure to draw
10677 underline within the current line area.
10678
10679 * xterm.c (x_draw_glyph_string): Be sure to update
10680 s->underline_thickness and s->underline_position. Be sure to draw
10681 underline within the current line area.
10682
10683 * fontset.c: Delete unused variables and add casting for char *
10684 throughout the file.
10685 (fontset_font): Try the fallback fonts of the current fontset
10686 before consulting the default fontset.
10687
10688 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10689
10690 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10691
106922008-05-22 Jason Rumney <jasonr@gnu.org>
10693
10694 * font.c: Don't include strings.h.
10695
10696 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10697
10698 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10699 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10700 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10701 to call xstrcasecmp.
10702
10703 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10704
10705 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10706
10707 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10708
10709 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10710
107112008-05-22 Kenichi Handa <handa@m17n.org>
10712
10713 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10714
10715 * font.c (font_prop_validate_style): Adjust for the format
10716 change of font_style_table.
10717
10718 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10719 two args.
10720
10721 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10722 two args.
10723
107242008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10725
10726 * minibuf.c (keys_of_minibuf): Delete.
10727 * lisp.h (keys_of_minibuf): Delete.
10728 * emacs.c (main): Don't call keys_of_minibuf.
10729
107302008-05-22 Kenichi Handa <handa@m17n.org>
10731
10732 * ftfont.c (ftfont_resolve_generic_family): Rename from
10733 ftfont_list_generic_family. Return a single family for each
10734 generic family.
10735 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10736 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10737 Call font_add_log.
10738 (ftfont_match): Call font_add_log.
10739
10740 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10741 (FONT_DEBUG): Define it.
10742 (font_add_log): Extern it.
10743 (font_assert): Rename from xassert.
10744
10745 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10746 (xfont_list_family): Call font_add_log.
10747 (xfont_match): Likewise.
10748 (memq_no_quit): Delete.
10749
10750 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10751 call of Ffont_xlfd_name.
10752
10753 * xfaces.c (struct table_entry, slant_table, weight_table)
10754 (swidth_table): Move to font.c.
10755
10756 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10757 xassert are changed to font_assert. Delete many unused variables.
10758 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10759 New variables.
10760 (struct table_entry): Move from xfaces.c and modified.
10761 (weight_table, slant_table, width_table): Move from xfaces.c and
10762 contents adjusted for the change of struct table_entry.
10763 (font_style_to_value, font_style_symbolic): Adjust for the
10764 format change of font_style_table.
10765 (font_parse_family_registry): Don't overwrite existing foundry and
10766 family of font_spec.
10767 (font_score): Fix calculation of diff for sizes.
10768 (font_sort_entites): Call font_add_log.
10769 (font_delete_unmatched): Return a newly created list.
10770 (font_list_entities): Fix previous change. Call font_add_log.
10771 (font_matching_entity, font_open_entity, font_close_entity):
10772 Call font_add_log.
10773 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10774 (Finternal_set_font_style_table): Delete.
10775 (BUILD_STYLE_TABLE): New macro.
10776 (build_style_table): New function.
10777 (Vfont_log, font_log_env_checked): New variables.
10778 (font_add_log): New function.
10779 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10780 Declare Lisp variables "font-weight-table", "font-slant-table",
10781 "font-width-table", and "font-log". Initialize font_style_table.
10782
107832008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10784
10785 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10786
107872008-05-21 Seiji Zenitani <zenitani@mac.com>
10788 Ryo Yoshitake <ryo@shiftmode.net>
10789
10790 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10791 (Vframe_alpha_lower_limit): New variable.
10792 (x_set_alpha): New function.
10793
10794 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10795
10796 * xfns.c (x-create-frame, Qalpha):
10797 Initialize the frame parameter `alpha'.
10798 * xterm.c (OPAQUE, OPACITY): New.
10799 (x_set_frame_alpha): New function.
10800 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10801
10802 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10803 * w32fns.c (w32_frame_parm_handlers): Likewise.
10804
108052008-05-20 Jason Rumney <jasonr@gnu.org>
10806
10807 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10808 truetype fonts to opentype list.
10809
108102008-05-20 Juanma Barranquero <lekktu@gmail.com>
10811
10812 * fontset.c (Ffontset_info): Doc fix.
10813 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10814 <ignore-relative-composition>: Fix typos in docstrings.
10815
10816 * font.c (syms-of-font) <font-encoding-alist>:
10817 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10818 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10819 (Ffont_otf_alternates): Doc fixes.
10820
108212008-05-20 Kenichi Handa <handa@m17n.org>
10822
10823 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10824 font.h through out the file.
10825 (FONT_DRIVERS): Rename from FONTOBJ.
10826 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10827 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10828
10829 * emacs.c (main): Call syms_of_font unconditionally.
10830
10831 * font.h (find_font_encoding): Extern it.
10832
10833 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10834 fontset.c.
194d44e7 10835 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10836 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10837 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10838 only when HAVE_WINDOW_SYSTEM is defined.
10839 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10840 when HAVE_WINDOW_SYSTEM is defined.
10841
10842 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10843 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10844
10845 * xfaces.c: Include font.h unconditionally.
10846 (merge_face_ref, merge_face_vectors)
10847 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10848
108492008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10852 indirect_variable.
10853 * eval.c (lisp_indirect_variable): New fun.
10854 (Fuser_variable_p): Use it.
10855
108562008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10857
10858 * lisp.h (indirect_variable):
10859 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10860 Use Lisp_Symbol pointers rather than Lisp_Object.
10861 Adjust callers.
10862 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10863 To this end, change calling-convention.
10864
10865 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10866 if some non-hidden buffers are selected by string&pred.
10867
108682008-05-19 Chong Yidong <cyd@stupidchicken.com>
10869
10870 * process.c (wait_reading_process_output): Always check status
10871 when in batch mode.
10872
108732008-05-19 Kenichi Handa <handa@m17n.org>
10874
10875 * font.c (font_list_entities): Fix handling of cache.
10876 (font_matching_entity): Likewise.
10877
10878 * ftfont.c (cs_iso8859_1): Delete.
10879 (ft_face_cache): New variable.
10880 (struct ftfont_info): New member fc_charset_idx.
10881 (ftfont_build_basic_charsets): Delete.
10882 (fc_charset_table): New variable.
10883 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10884 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10885 Callers changed.
10886 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10887 (ftfont_spec_pattern): New argument fc_charset_idx.
10888 Check registry more rigidly. Change callers.
10889 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10890 change of :font-entity property of the font.
10891
10892 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10893 property of the font.
10894
108952008-05-18 Juanma Barranquero <lekktu@gmail.com>
10896
10897 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10898 (Funencodable_char_position, Fcheck_coding_systems_region)
10899 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10900 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10901 (Ffind_operation_coding_system, Fset_coding_system_priority)
10902 (Fcoding_system_eol_type): Doc fixes.
10903
109042008-05-17 Glenn Morris <rgm@gnu.org>
10905
10906 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10907
109082008-05-16 Eli Zaretskii <eliz@gnu.org>
10909
10910 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10911 and st_gid.
10912
10913 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10914 HAVE_WINDOW_SYSTEM is not defined.
10915
10916 * xfaces.c (merge_face_ref, merge_face_vectors)
10917 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10918 HAVE_WINDOW_SYSTEM is defined.
10919 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10920
109212008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10922
10923 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10924
109252008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10926
10927 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10928
109292008-05-15 Kenichi Handa <handa@m17n.org>
10930
10931 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10932 preference.
10933
109342008-05-15 Glenn Morris <rgm@gnu.org>
10935
10936 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10937
109382008-05-15 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10941 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10942
10943 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10944
109452008-05-15 Kenichi Handa <handa@m17n.org>
10946
10947 * ftfont.c (ftfont_list): Downcase family name to check generic
10948 families.
10949
10950 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10951 font-spec for QCfont value.
10952
10953 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10954 buffer. Check the return value of it.
10955
109562008-05-14 Jason Rumney <jasonr@gnu.org>
10957
10958 * w32term.c (w32_get_glyph_overhangs): Remove.
10959 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10960
109612008-05-14 Kenichi Handa <handa@m17n.org>
10962
10963 * font.c (font_prop_validate): Make nil a valid value.
10964 (font_clear_cache): Check if the cached vector of entities is nil
10965 or not.
10966
109672008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10968
10969 * emacs.c (main_thread): Conditionalize on
10970 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10971 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10972
10973 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10974 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10975 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10976
109772008-05-14 Kenichi Handa <handa@m17n.org>
10978
10979 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10980 has no corresponding coding system.
10981
109822008-05-14 Jason Rumney <jasonr@gnu.org>
10983
10984 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10985
10986 * w32font.h (w32font_open_internal): Update declaration.
10987
10988 * w32font.c (w32font_open_internal): Change last argument from
10989 w32font_info struct to font object. Fill in font object from
10990 font_entity. Get Outline metrics if possible. Use them to
10991 calculate underline position and thickness. Use xlfd name as name
10992 property. Don't set codepage.
10993 (w32font_open): Pass font_object to w32font_open_internal. Don't
10994 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10995 (w32font_draw): Use s->font.
10996 (clear_cached_metrics): Don't clear non-existent blocks.
10997
10998 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10999 font was not found.
11000 (x_draw_glyph_string): Use underline position and thickness from font.
11001
11002 * w32uniscribe.c (uniscribe_open): Pass font_object to
11003 w32font_open_internal.
11004
110052008-05-14 Kenichi Handa <handa@m17n.org>
11006
11007 These changes are to delete all legacy font-handling codes, and
11008 make Emacs use only font-backends.
11009
11010 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11011 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11012
11013 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11014
11015 * charset.h (Vcharset_non_preferred_head)
11016 (Vcurrent_iso639_language): Extern them.
11017
11018 * charset.c (Vcharset_non_preferred_head): New variable.
11019 (Vcurrent_iso639_language): New variable.
11020 (syms_of_charset): Declare it as a Lisp variable.
11021 (char_charset): Don't check non preferred charsets. As a last
11022 resort, return charset_unicode.
11023 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11024
11025 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11026 conditionals. Don't check enable_font_backend. Delete all codes
11027 used only when USE_FONT_BACKEND is not defined.
11028
11029 * dispextern.h (struct glyph_string): Change type of `font' to
11030 `struct font *'.
11031 (struct glyph_string): New member underline_position and
11032 underline_thickness.
11033 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11034 (struct face): Change type of `font' to `struct font *'. Remove
11035 members `font_name', `font_info_id'.
11036 (per_char_metric, encode_char): Delete externs.
11037 (calc_pixel_width_or_height): Adjust the prototype.
11038
11039 * emacs.c (enable_font_backend): Delete extern.
11040 (main): Don't set enable_font_backend. Don't check the command
11041 line argument "-disable-font-backend".
11042
11043 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11044 (enum font_property_index): New members FONT_DPI_INDEX,
11045 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11046 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11047 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11048 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11049 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11050 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11051 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11052 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11053 (struct font_spec, struct font_entity): New structs.
11054 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11055 (struct font): Many members from old "struct font_info" moved to
11056 here. Members font and entity deleted.
11057 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11058 the new font-related objects.
11059 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11060 (CHECK_FONT_GET_OBJECT): Likewise.
11061 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11062 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11063 (struct font_driver): New members case_sensitive anc check. Type
11064 of the member list and open changed.
11065 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11066 (font_symbolic_width, font_find_object, font_get_spec)
11067 (font_set_lface_from_name): Delete extern.
11068 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11069
11070 * font.c: Include <strings.h>.
11071 (enable_font_backend): Delete it.
11072 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11073 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11074 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11075 (null_string): Delete it.
11076 (null_vector): Make it static.
11077 (font_family_alist): Delete it.
11078 (Qnormal): Extern it.
11079 (QCextra, QClanguage): Delete it.
11080 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11081 (font_make_spec, font_make_entity, font_make_object)
11082 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11083 the string. Callers changed.
11084 (font_pixel_size): Adjusted for the format change of font-related
11085 objects.
11086 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11087 (font_style_to_value, font_style_symbolic): New function.
11088 (build_font_family_alist): Delete it.
11089 (font_registry_charsets): Use Fassoc_string instead of
11090 assq_no_quit.
11091 (font_prop_validate_symbol): Don't return null_string.
11092 (font_prop_validate_style): Adjusted for the change of
11093 style-related values in a font vector.
11094 (font_property_table): Delete entries for QClanguage and
11095 QCantialias, add entries for QCavgwidth.
11096 (get_font_prop_index): Delete the 2nd argument FROM.
11097 (font_prop_validate): Arguments changed.
11098 (font_put_extra): Adjusted for the change of font-related objects.
11099 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11100 (font_parse_fcname, font_unparse_fcname)
11101 (font_prepare_composition): Likewise.
11102 (font_parse_family_registry): Renamed from font_merge_old_spec.
11103 (otf_open): Delete the 1st arg entity.
11104 (font_otf_capability): Adjusted for the above change.
11105 (font_score): New arg alternate_families. Adjusted for the change
11106 of font-related objects.
11107 (font_sort_entites): New arg best_only.
11108 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11109 Delete them.
11110 (font_match_p): Check alternate families.
11111 (font_find_object): Delete it.
11112 (font_check_object): New function.
11113 (font_clear_cache): Adjusted for the change of font-related objects.
11114 (font_delete_unmatched): New arg.
11115 (font_list_entities): Call font_driver->list with a spec that
11116 doesn't specify style-related properties.
11117 (font_matching_entity): Arguments changed. Caller changed.
11118 (font_open_entity): Adjusted for the change of font-related objects.
11119 (font_close_object, font_has_char, font_encode_char)
11120 (font_get_name, font_get_spec): Likewise.
11121 (font_spec_from_name, font_clear_prop, font_update_lface):
11122 New functions.
11123 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11124 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11125 (font_at): Adjusted for the change of font-related objects.
11126 (font_range): New function.
11127 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11128 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11129 (Fcopy_font_spec, Fmerge_font_spec): New function.
11130 (Ffont_family_list): Renamed from list-families.
11131 (Finternal_set_font_style_table): Arguments changed.
11132 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11133 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11134 change of font-related objects.
11135 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11136
11137 * fontset.h (struct font_info): Delete it. Most members go to
11138 struct font.
11139 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11140 (enum FONT_SPEC_INDEX): Delete it.
11141 (font_info, list_fonts_func, load_font_func, query_font_func)
11142 (set_frame_fontset_func, find_ccl_program_func)
11143 (get_font_repertory_func, new_fontset_from_font_name): Delete
11144 externs.
11145 (fontset_from_font_name): Extern it.
11146 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11147 (FONT_INFO_FROM_FACE): Deleted.
11148 (face_for_font): Adjust prototype.
11149
11150 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11151 conditionals. Don't check enable_font_backend. Delete all codes
11152 used only when USE_FONT_BACKEND is not defined.
11153 (get_font_info_func, list_font_func, load_font_func)
11154 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11155 (get_font_repertory_func): Delete them.
11156 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11157 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11158 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11159 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11160 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11161 (fontset_compare_rfontdef): New function.
11162 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11163 rfont-defs by qsort. Adjusted for the change of font-group vector.
11164 (load_font_get_repertory): Deleted.
11165 (fontset_find_font): Use new macros to ref/set elements of
11166 font-def and rfont-def.
11167 (fontset_font): Fix the timing of remembering that no font for C.
11168 (free_face_fontset): Do nothing if the face has no fontset.
11169 (face_suitable_for_char_p): Use new macros to ref/set elements of
11170 rfont-def.
11171 (face_for_char): Likewise. Call face_for_char with font_object.
11172 (fs_load_font): Delete. Delete #pragma surrounding it.
11173 (fs_query_fontset): Use strcasecmp instead of strcmp.
11174 (generate_ascii_font_name): Adjusted for the format change of
11175 font-spec.
11176 (Fset_fontset_font): Likewise. Use new macros to set elements of
11177 font-def.
11178 (Fnew_fontset): Use font_unparse_xlfd to generate
11179 FONTSET_ASCII (fontset).
11180 (new_fontset_from_font_name): Deleted.
11181 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11182 a fontset is already created for the font. FIx updating of
11183 Vfontset_alias_alist.
11184 (fontset_ascii_font): Deleted.
11185 (Ffont_info): Adjusted for the format change of font-spec.
11186 (Finternal_char_font): Likewise.
11187 (Ffontset_info): Likewise.
11188 (syms_of_fontset): Don't check load_font_func.
11189
11190 * fns.c (internal_equal): Handle PREV_FONT.
11191
11192 * frame.h: Delete USE_FONT_BACKEND conditional.
11193
11194 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11195 conditionals. Don't check enable_font_backend. Delete all codes
11196 used only when USE_FONT_BACKEND is not defined.
11197 (x_set_font): Call x_new_font, not x_new_fontset2.
11198 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11199 already set for the frame.
11200
11201 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11202 a font-entity by font_make_entity. Use font_intern_prop instead
11203 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11204 font property. If a font is scalable, set avgwidth property to 0.
11205 Set font-entity property by font_put_extra.
11206 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11207 (ffont_driver): Adjusted for the change of struct font_driver.
11208 (ftfont_spec_pattern): New function.
11209 (ftfont_list): Return a list, not vector.
11210 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11211 (ftfont_list_family): Don't downcase names.
11212 (ftfont_free_entity): Deleted.
11213 (ftfont_open): Return a font-object. Adjusted for the change of
11214 struct font. Get underline_thickness and underline_position from
11215 font property. Don't update dpyinfo->smallest_font_height and
11216 dpyinfo->smallest_char_width.
11217 (ftfont_close): Don't free `struct font'.
11218 (ftfont_has_char): Adjusted for the format change of font-entity.
11219 (ftfont_encode_char, ftfont_text_extents): Likewise.
11220
11221 * ftxfont.c (ftxfont_list): Return a list, not vector.
11222 (ftxfont_open): Return a font-object. Adjusted for the change of
11223 struct font. Get underline_thickness and underline_position from
11224 font property. Don't update dpyinfo->smallest_font_height and
11225 dpyinfo->smallest_char_width.
11226 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11227 (ftxfont_draw): Adjusted for the change of struct font.
11228
11229 * image.c (image_ascent): Don't include "charset.h". Include
11230 "character.h" and "font.h".
11231
11232 * lisp.h (enum pvec_type): New member PREV_FONT.
11233 (Fassoc_string): EXFUN it.
11234
11235 * print.c: Include font.h.
11236 (print_object): Handle font-related objects.
11237
11238 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11239 conditionals. Don't check enable_font_backend. Delete all codes
11240 used only when USE_FONT_BACKEND is not defined.
11241 (handle_auto_composed_prop): Do nothing if it->f is not on a
11242 window system. Check how many following characters can be
11243 displayed by the same font.
11244 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11245 'struct font *'.
11246 (get_char_face_and_encoding): Assign the whole encoding task to
11247 the `encode-char' method of a font driver.
11248 (fill_composite_glyph_string): Adjusted for the change of `struct
11249 face' and `struct glyph_string'.
11250 (fill_glyph_string): Likewise.
11251 (get_per_char_metric): Arguments changed.
11252 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11253 and `struct glyph_string'.
11254 (produce_stretch_glyph, calc_line_height_property)
11255 (x_produce_glyphs): Likewise.
11256
11257 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11258 conditionals. Don't check enable_font_backend. Delete all codes
11259 used only when USE_FONT_BACKEND is not defined. Use
11260 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11261 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11262 (Qp): Extern them.
11263 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11264 Deleted.
11265 (struct font_name): Deleted.
11266 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11267 (compare_fonts_by_sort_order): New function.
11268 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11269 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11270 Deleted.
11271 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11272 compare_fonts_by_sort_order.
11273 (Fx_font_family_list): Call Ffont_family_list.
11274 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11275 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11276 (face_symbolic_slant, face_symbolic_swidth)
11277 (split_font_name_into_vector, build_font_name_from_vector)
11278 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11279 (font_rescale_ratio, split_font_name, build_font_name)
11280 (free_font_names, sort_fonts, x_face_list_fonts)
11281 (face_font_available_p, sorted_font_list, cmp_font_names)
11282 (font_list_1, concat_font_list, font_list, remove_duplicates):
11283 Deleted.
11284 (Fx_list_fonts): Use Ffont_list.
11285 (LFACE_AVGWIDTH): Deleted.
11286 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11287 by FONTP.
11288 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11289 (set_lface_from_font_name): Delete it.
11290 (set_lface_from_font): Renamed from
11291 set_lface_from_font_and_fontset. Caller changed. Don't set
11292 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11293 for face.
11294 (merge_face_vectors): Copy font-spec if necessary.
11295 Clear properties of the font-spec if necessary.
11296 (merge_face_ref): Clear properties of the font-spec if necessary.
11297 (Finternal_set_lisp_face_attribute): Likewise.
11298 (set_font_frame_param): Use font_load_for_lface to load a
11299 font-object, and call Fmodify_frame_parameters with it.
11300 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11301 font name by Ffont_xlfd_name.
11302 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11303 QCslant, and QCwidth.
11304 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11305 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11306 Compare fonts by EQ.
11307 (lookup_non_ascii_face): Deleted.
11308 (face_for_font): The 2nd argument changed.
11309 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11310 Check atomic font properties by case insensitive.
11311 (realize_non_ascii_face): Set face->overstrike correctly.
11312 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11313 (dump_realized_face): Get font name from
11314 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11315
11316 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11317 conditionals. Don't check enable_font_backend. Delete all codes
11318 used only when USE_FONT_BACKEND is not defined.
11319 (xic_create_xfontset): Original code deleted and renamed from
11320 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11321 (x_make_gc): Don't set GCFont in GCs.
11322 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11323 opened by "fixed".
11324 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11325 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11326 get_font_repertory_func.
11327
11328 * xfont.c: Include <stdlib.h> and "ccl.h".
11329 (struct xfont_info): New structure.
11330 (xfont_query_font): Deleted.
11331 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11332 moved from xterm.c.
11333 (xfont_driver): Adjusted for the change of struct font_driver.
11334 (compare_font_names): New function.
11335 (xfont_list_pattern): Sort font names case insensitively. Make
11336 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11337 (xfont_list): Return a list, not vector.
11338 (xfont_match): If the font doesn't have QCname property, generate
11339 a name from the other font properties.
11340 (xfont_open): Return a font-object. Adjusted for the change of
11341 struct font. Get underline_thickness and underline_position from
11342 font property. Don't update dpyinfo->smallest_font_height and
11343 dpyinfo->smallest_char_width.
11344 (xfont_close): Don't free struct font.
11345 (xfont_prepare_face): Adjusted for the change of struct font.
11346 (xfont_done_face): Deleted.
11347 (xfont_has_char): Adjusted for the change of struct font.
11348 (xfont_encode_char, xfont_draw): Likewise.
11349 (xfont_check): New function.
11350
11351 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11352 callback function.
11353 (xftfont_match): Adjusted for the format change of font-entity.
11354 (xftfont_open): Adjusted for the format change of font-entity and
11355 font-object. Adjusted for the change of struct font. Return a
11356 font-object. Don't update dpyinfo->smallest_font_height and
11357 dpyinfo->smallest_char_width.
11358 (xftfont_close): Block input while calling XftFontClose.
11359 (xftfont_prepare_face): Don't block input while calling
11360 xftfont_get_colors. Adjusted for the change of struct font.
11361 (xftfont_shape): Return value of error case fixed.
11362
11363 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11364
11365 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11366 conditionals.
11367 (FONT_WIDTH): Return (f)->max_width.
11368 (struct x_display_info): Delete member `font'.
11369 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11370 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11371 (struct x_output): Change type of `font' to `struct font *'.
11372
11373 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11374 conditionals. Don't check enable_font_backend. Delete all codes
11375 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11376 (x_per_char_metric, x_encode_char): Deleted.
11377 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11378 (x_compute_glyph_string_overhangs): Adjusted for the change of
11379 `struct face'.
11380 (x_draw_glyph_string_foreground)
11381 (x_draw_composite_glyph_string_foreground): Likewise.
11382 (x_draw_glyph_string): Likewise. Use font->underline_position and
11383 font->underline_thickness.
11384 (x_new_font): Renamed from x_new_fontset2.
11385 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11386 (x_check_font): Call `check' method of a font driver.
11387 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11388 (x_query_font, x_get_font_repertory): Deleted.
11389 (x_find_ccl_program): Renamed and moved to xfont.c.
11390 (x_redisplay_interface): Adjusted for the change of `struct
11391 redisplay_interface'.
11392
11393 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11394 conditionals. Don't check enable_font_backend. Delete all codes
11395 used only when USE_FONT_BACKEND is not defined. Surround non-used
11396 code by "#ifdef OLD_FONT" and "endif".
11397 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11398
11399 * w32font.h (struct w32font_info): New member.
11400 (FONT_COMPAT): New macro.
11401 (w32font_open_internal): Prototype adjusted.
11402
11403 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11404 OLD_FONT" and "endif".
11405
11406 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11407 conditionals. Don't check enable_font_backend. Delete all codes
11408 used only when USE_FONT_BACKEND is not defined.
11409 (w32font_open): Return a font-object. Make a font-object by
11410 font_make_object. Adjusted for the change of struct w32font_info.
11411 (w32font_close): Don't free struct font. Adjusted for the change
11412 of struct w32font_info.
11413 (w32font_encode_char, w32font_text_extents, w32font_draw):
11414 Adjusted for the change of struct w32font_info.
11415 (w32font_draw): Likewise.
11416 (w32font_list_internal): Return a list, not vector.
11417 (w32font_open_internal): Change the 4th arg to font-object.
11418 Adjusted for the change of struct w32font_info and font-object format.
11419 (add_font_name_to_list): Don't downcase names.
11420 (w32_enumfont_pattern_entity): Make a font-entity by
11421 font_make_entity. Adjusted for the format change of font-entity.
11422 Use FONT_SET_STYLE to set a style-related font property. If a
11423 font is scalable, set avgwidth property to 0. Set font-entity
11424 property by font_put_extra.
11425 (font_matches_spec): Adjusted for the format change of font-entity.
11426 (w32_weight_table, w32_decode_weight): New variables.
11427 (w32_encode_weight): New function.
11428 (fill_in_logfont): Adjusted for the format change of font-spec.
11429 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11430 weight value.
11431 (w32font_driver): Adjusted for the change of struct font_driver.
11432
11433 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11434 conditionals. Don't check enable_font_backend. Surround non-used
11435 code by "#ifdef OLD_FONT" and "endif".
11436 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11437 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11438
11439 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11440 conditionals. Don't check enable_font_backend. Delete all codes
11441 used only when USE_FONT_BACKEND is not defined. Surround non-used
11442 code by "#ifdef OLD_FONT" and "endif".
11443
11444 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11445 (uniscribe_open): Return value changed to font-object.
11446 Adjusted for the format change of font-object.
11447 (uniscribe_otf_capability): Adjusted for the change of struct font.
11448 (add_opentype_font_name_to_list): Don't downcase names.
11449 (uniscribe_font_driver): Adjusted for the change of struct
11450 font_driver.
11451
114522008-05-13 Chong Yidong <cyd@stupidchicken.com>
11453
11454 * dispnew.c (update_frame_1): Check if tty output is still valid
11455 before flushing it.
11456
114572008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11458
11459 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11460 to Gtk+ menus.
11461
114622008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11463
11464 * dired.c (file_name_completion): Tweak the code so as to always do it
11465 in a single pass. Tighten the scope of some variables.
11466
11467 * dired.c (Qdefault_directory): New var.
11468 (file_name_completion): Use it instead of Fexpand_file_name.
11469 (syms_of_dired): Initialize it.
11470
114712008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11472
11473 * fileio.c (double_dollars): Remove dead code.
11474
114752008-05-10 Eli Zaretskii <eliz@gnu.org>
11476
11477 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11478 Mention w32-get-true-file-attributes in doc string.
11479
11480 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11481
114822008-05-09 Glenn Morris <rgm@gnu.org>
11483
11484 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11485 2008-04-23.
11486
114872008-05-09 Eli Zaretskii <eliz@gnu.org>
11488
11489 Support for reporting owner and group of each file on MS-Windows:
11490 * dired.c (stat_uname, stat_gname): New functions, with special
11491 implementation for w32.
11492 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11493
11494 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11495 (dflt_group_name): New static variable.
11496 (dflt_group): Rename from the_group.
11497 (init_user_info): Init dflt_group fields. Get user's group name
11498 from LookupAccountSid.
11499 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11500 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11501 New initialization states.
11502 (globals_of_w32): Initialize them to zero. Initialize the default
11503 group name to "None".
11504 (GetFileSecurity_Name): New global var, the name of the function
11505 to call for GetFileSecurity.
11506 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11507 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11508 (get_file_security, get_security_descriptor_owner)
11509 (get_security_descriptor_group, is_valid_sid)
11510 (get_file_security_desc, get_rid, get_name_and_id)
11511 (get_file_owner_and_group): New functions.
11512 (stat): Use get_file_security_desc and get_file_owner_and_group to
11513 report the owner and primary group of each file. Don't ignore the
11514 high 32 bits of file's size, now that st_size is 64-bit wide.
11515 Fix test when to get true file attributes.
11516 (init_user_info): Use get_rid instead of equivalent inline code.
11517 (fstat): Don't ignore the high 32 bits of file's size.
11518
115192008-05-09 Chong Yidong <cyd@stupidchicken.com>
11520
11521 * image.c (png_load): Use correct bit-depth for setting background
11522 color.
11523
115242008-05-08 Eli Zaretskii <eliz@gnu.org>
11525
11526 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11527 epa-hook.elc.
11528
115292008-05-08 Juanma Barranquero <lekktu@gmail.com>
11530
11531 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11532
115332008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11534
11535 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11536 because the original parameters are in pure storage now.
11537 (mac_window): Remove unused params. Update callers.
11538
115392008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11540
11541 * lread.c (substitute_object_recurse): Use lower-level primitives.
11542 Don't signal errors when traversing sub-char-tables.
11543 Don't loop over all the possible characters when traversing char-tables.
11544
11545 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11546 just like we do in print.c.
11547
115482008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * minibuf.c (Ftry_completion): Remove code left over from when we used
11551 scmp instead of Fcompare_strings.
11552
115532008-05-04 Juanma Barranquero <lekktu@gmail.com>
11554
11555 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11556
115572008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11558
11559 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11560 Create bitmap context in native byte order.
11561
11562 * macterm.c (XDrawLine)
11563 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11564 context in native byte order.
11565
115662008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11567
11568 * config.in: Regenerate.
11569
11570 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11571 New definitions for Image I/O support.
11572 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11573 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11574 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11575 (mac_data_provider_release_data, image_load_image_io)
11576 [USE_MAC_IMAGE_IO]: New functions.
11577 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11578 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11579 (init_image_func_pointer) [MAC_OSX]: Remove function.
11580 (image_load_quartz2d) [MAC_OSX]: Check availability of
11581 CGImageCreateWithPNGDataProvider at compile time.
11582 Use lowercase `false' for boolean constant.
11583 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11584 Use image_load_image_io.
11585 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11586 Don't check MyCGImageCreateWithPNGDataProvider.
11587 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11588 Don't call init_image_func_pointer.
11589
11590 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11591
11592 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11593 Make variable non-static.
11594 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11595 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11596
11597 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11598 (RED_FROM_ULONG): Mask off higher bits.
11599 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11600
11601 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11602 Include AvailabilityMacros.h.
11603 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11604 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11605
116062008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * chartab.c (Fset_char_table_range): If range is t, really set all
11609 chars to that value.
11610
116112008-05-03 Eli Zaretskii <eliz@gnu.org>
11612
11613 * dired.c (Ffile_attributes): Don't allow the device number become
11614 negative.
11615
116162008-05-02 Daiki Ueno <ueno@unixuser.org>
11617
11618 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11619
116202008-05-02 Juri Linkov <juri@jurta.org>
11621
11622 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11623 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11624 DEFAULT argument as a list of default values in docstrings.
11625
116262008-05-01 Chong Yidong <cyd@stupidchicken.com>
11627
11628 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11629
116302008-05-01 Martin Rudalics <rudalics@gmx.at>
11631
11632 * dispnew.c (change_frame_size_1): Preserve small windows when
11633 shrinking frames by calling set_window_height|width with third
11634 arg 2.
11635
11636 * window.h (struct window): Replace field too_small_ok by field
11637 resize_proportionally.
11638
11639 * window.c (make_window): Initialize resize_proportionally.
11640 (enlarge_window): Temporarily set resize_proportionally to make
11641 sure that shrink_windows does scale the window proportionally.
11642 (shrink_windows): When window has resize_proportionally set try
11643 to shrink it proportionally by stealing from other windows.
11644 (struct saved_window, Fset_window_configuration)
11645 (compare_window_configurations): Handle resize_proportionally.
11646 (WINDOW_TOTAL_SIZE): New macro.
11647 (window_min_size, shrink_windows, size_window): Use it.
11648 (check_min_window_sizes): Remove. Invalid values of
11649 window-min-height|width are handled by window_min_size_2 now.
11650 (size_window, Fsplit_window, enlarge_window)
11651 (adjust_window_trailing_edge, grow_mini_window): Don't call
11652 check_min_window_sizes.
11653 (window_min_size_2, window_min_size_1, window_min_size):
11654 New argument safe_p for retrieving "safe" minimum sizes.
11655 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11656 (adjust_window_trailing_edge, grow_mini_window):
11657 Adjust arguments of window_min_size... functions.
11658 (shrink_windows): Argument min_size removed. New argument
11659 safe_p allows shrinking windows to their safe minimum sizes.
11660 Calculate minimum size and decide whether a window shall be
11661 deleted for each window individually.
11662 (size_window): When nodelete_p equals 2, tell shrink_windows to
11663 delete windows only if their new minimum size is no more safe.
11664 (shrink_window_lowest_first): Call window_min_size_1 to make
11665 sure to preserve modeline of bottom-most window when resizing
11666 the minibuffer.
11667 (Fset_window_configuration, Fcurrent_window_configuration)
11668 (compare_window_configurations): Do not handle
11669 window-min-height|width any more.
11670 (syms_of_window): Clarify window-min-height|width doc-strings.
11671
116722008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11673
11674 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11675 some more. Copy some of the code from Ftry_completions.
11676 Remove special case code that dates back to initial revision when the
11677 slash was only added when necessary and that can't trigger nowadays.
11678
116792008-04-27 Kenichi Handa <handa@m17n.org>
11680
11681 * font.c (font_prop_validate): Signal `error' instead of `font'.
11682
116832008-04-29 Jason Rumney <jasonr@gnu.org>
11684
11685 * w32fns.c (Fw32_battery_status): New defun.
11686 (syms_of_w32fns): Defsubr it.
11687
116882008-04-28 Andreas Schwab <schwab@suse.de>
11689
11690 * dired.c (file_name_completion): Fix another mixing of encoded
11691 and decoded names.
11692
116932008-04-28 Juanma Barranquero <lekktu@gmail.com>
11694
11695 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11696
116972008-04-27 Juanma Barranquero <lekktu@gmail.com>
11698
11699 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11700
117012008-04-27 Andreas Schwab <schwab@suse.de>
11702
11703 * dired.c (file_name_completion): Fix inappropriate mixing of
11704 encoded and decoded names.
11705
11706 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11707
11708 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11709
117102008-04-26 Eli Zaretskii <eliz@gnu.org>
11711
11712 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11713 2008-03-31, it's not needed anymore with `struct stat' definition
11714 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11715 for the same reasons.
11716
117172008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11718
11719 * m/sparc.h: Additional redefinitions for GNU/Linux.
11720
117212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11722
11723 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11724 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11725 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11726 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11727 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11728 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11729 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11730 Likewise.
11731
11732 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11733 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11734 (mac_ax_number_of_characters): Add externs.
11735 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11736 [USE_MAC_TSM]: Likewise.
11737 (mac_handle_text_input_event) [MAC_OSX]:
11738 Handle kEventTextInputOffsetToPos for no active input area case.
11739 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11740 (mac_handle_document_access_event)
11741 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11742 (install_application_handler) [MAC_OSX]: Register handlers for
11743 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11744 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11745 Register mac_handle_document_access_event.
11746
11747 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11748 Make functions non-static.
11749
117502008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11751
11752 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11753 (read_file_name_completion_ignore_case, insert_default_directory)
11754 (Qdefault_directory): Move to minibuffer.el.
11755 (Fread_file_name): Call the new `read-file-name' instead.
11756
117572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11758
11759 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11760 Make function non-static.
11761 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11762 Remove function.
11763 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11764 Move to mactoolbox.c.
11765 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11766
11767 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11768 (mac_rect_make): New macro.
11769
11770 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11771 instead of float.
11772 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11773 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11774 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11775 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11776 CGRectMake.
11777 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11778 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11779 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11780 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11781 instead of WindowRef in argument type.
11782 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11783 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11784 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11785 instead of DISPLAY. All uses changed.
11786 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11787 (x_calc_absolute_position): Simplify so as not to use
11788 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11789
11790 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11791 instead of WindowRef in argument type.
11792 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11793 [TARGET_API_MAC_CARBON]: Remove externs.
11794 (create_apple_event, mac_event_parameters_to_lisp)
11795 [TARGET_API_MAC_CARBON]: Add externs.
11796
11797 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11798 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11799 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11800 is clicked.
11801 (x_activate_menubar): Remove extern for saved_menu_event_location.
11802 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11803 Move from mac.c.
11804
118052008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11806
11807 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11808 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11809
118102008-04-23 Jason Rumney <jasonr@gnu.org>
11811
11812 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11813 attributes only for local files.
11814
11815 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11816 default to Qlocal.
11817
118182008-04-22 Juri Linkov <juri@jurta.org>
11819
11820 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11821 read-buffer-to-switch instead of using the letter "B".
11822
118232008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11824
11825 * fileio.c (Qdefault_directory): New variable.
11826 (Fread_file_name): Use it to pass `dir' to the completion functions.
11827
118282008-04-20 Chong Yidong <cyd@stupidchicken.com>
11829
11830 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11831
118322008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 * keyboard.c (Vpre_help_message): Remove.
11835 (show_help_echo): Remove default C code.
11836
11837 * dired.c (directory_files_internal, file_name_completion):
11838 Only call ENCODE_FILE if the string is indeed decoded.
11839
118402008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11841
11842 * Makefile.in (TOOLKIT_DEFINES): Remove.
11843 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11844
118452008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11846
11847 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11848 (mactoolbox.o): New target.
11849
11850 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11851 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11852
11853 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11854 Use mac_set_frame_window_background instead of XSetWindowBackground.
11855 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11856 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11857 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11858 instead of SetWindowTitleWithCFString.
11859 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11860 Move function to mactoolbox.c.
11861 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11862 Use mac_set_window_modified instead of SetWindowModified.
11863 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11864 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11865 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11866 FrontNonFloatingWindow. Use mac_activate_window instead of
11867 ActivateWindow. Use mac_active_non_floating_window instead of
11868 ActiveNonFloatingWindow.
11869 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11870 Use mac_show_hourglass and mac_hide_hourglass.
11871 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11872 instead of GetGlobalMouse.
11873 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11874 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11875 Use mac_bring_window_to_front instead of BringToFront.
11876 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11877 mactoolbox.c.
11878 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11879 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11880 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11881 mactoolbox.c.
11882
11883 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11884 (XtPointer): Move typedef from macmenu.c.
11885 (enum button_type): Move enum from macmenu.c.
11886 (widget_value): Move typedef from macmenu.c.
11887 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11888 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11889 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11890 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11891 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11892 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11893 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11894 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11895 (Selection): Move typedef from macselect.c.
11896 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11897 macterm.c.
11898 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11899 (mac_is_window_collapsed, mac_bring_window_to_front)
11900 (mac_send_window_behind, mac_hide_window, mac_show_window)
11901 (mac_collapse_window, mac_front_non_floating_window)
11902 (mac_active_non_floating_window, mac_activate_window)
11903 (mac_move_window_structure, mac_move_window, mac_size_window)
11904 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11905
11906 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11907 (enum mac_menu_kind): Move enum to mactoolbox.c.
11908 (min_menu_id): Move variable to mactoolbox.c.
11909 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11910 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11911 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11912 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11913 [TARGET_API_MAC_CARBON]: Likewise.
11914 (XtPointer): Move typedef to macgui.h.
11915 (enum button_type): Move enum to macgui.h.
11916 (widget_value): Move typedef to macgui.h.
11917 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11918 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11919 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11920 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11921 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11922 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11923 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11924 (popup_activated_flag): Make variable non-static.
11925 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11926 (add_menu_item, fill_menu, dispose_menus):
11927 Move functions to mactoolbox.c.
11928 (restore_show_help_function, menu_target_item_handler)
11929 (install_menu_target_item_handler, mac_handle_dialog_event)
11930 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11931 [TARGET_API_MAC_CARBON]: Likewise.
11932 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11933 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11934 (find_and_call_menu_selection, name_is_separator): Make function
11935 non-static.
11936 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11937 to mactoolbox.c.
11938 (set_frame_menubar): Don't call install_menu_quit_handler.
11939 (menu_item_selection): New variable.
11940 (mac_menu_show): Use create_and_show_popup_menu.
11941 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11942 selection but set variable menu_item_selection. All uses changed.
11943 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11944 Call install_menu_quit_handler. Move to mactoolbox.c.
11945
11946 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11947 (Selection): Move typedef to macgui.h.
11948 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11949 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11950 Make variables non-static.
11951 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11952 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11953 Make functions non-static.
11954 (Vmac_service_selection) [MAC_OSX]: Likewise.
11955 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11956 (mac_valid_selection_target_p, mac_clear_selection)
11957 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11958 (mac_put_selection_value, mac_selection_has_target_p)
11959 (mac_get_selection_value, mac_get_selection_target_list)
11960 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11961 Move functions to mactoolbox.c.
11962 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11963 Likewise.
11964 (copy_scrap_flavor_data, mac_handle_service_event)
11965 (install_service_handler) [MAC_OSX]: Likewise.
11966 (syms_of_macselect) <Vmac_dnd_known_types>:
11967 Use mac_dnd_default_known_types.
11968
11969 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11970 Move to mactoolbox.c.
11971 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11972 (Fx_selection_owner_p): Add EXFUN.
11973 (install_window_handler, remove_window_handler, XSetWindowBackground):
11974 Remove externs.
11975 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11976 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11977 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11978 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11979 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11980 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11981 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11982 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11983 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11984 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11985 (mac_valid_selection_target_p, mac_clear_selection)
11986 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11987 (mac_put_selection_value, mac_selection_has_target_p)
11988 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11989 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11990 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11991 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11992 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11993 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11994 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11995 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11996 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11997
11998 * mactoolbox.c: New file.
11999
120002008-04-18 Jason Rumney <jasonr@gnu.org>
12001
12002 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12003
120042008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12005
12006 * character.c (Fmultibyte_char_to_unibyte):
12007 Return latin1 chars unchanged.
12008
12009 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12010 relocated if it points to `name'.
12011
120122008-04-17 Kenichi Handa <handa@m17n.org>
12013
12014 * data.c (Faset): Allow setting a multibyte character in an
12015 ASCII-only unibyte string.
12016
12017 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12018
120192008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12020
12021 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12022 done in config.h.
12023
120242008-04-16 Juanma Barranquero <lekktu@gmail.com>
12025
12026 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12027 (Fchar_direction): Add usage in the docstring.
12028
120292008-04-15 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * keyboard.c (read_key_sequence): Remove always-true checks.
12032
120332008-04-14 Jason Rumney <jasonr@gnu.org>
12034
12035 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12036 compatibility struct, for better underline positioning.
12037
120382008-04-13 David Hansen <david.hansen@gmx.net>
12039
12040 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12041 string.
12042
120432008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12044
12045 * m/hp800.h (XUINT, XSET): Remove.
12046
120472008-04-12 Juanma Barranquero <lekktu@gmail.com>
12048
12049 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12050 previous change.
12051
120522008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12053
12054 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12055 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12056
120572008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12058
12059 * keymap.h (map_keymap_canonical): Declare.
12060 * xmenu.c (single_keymap_panes): Use it.
12061
120622008-04-11 Glenn Morris <rgm@gnu.org>
12063
12064 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12065 set the target's value to that of the alias.
12066
120672008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12068
12069 * term.c (set_tty_color_mode): Left over typo.
12070
120712008-04-10 Michael Albinus <michael.albinus@gmx.de>
12072
12073 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12074 only after check for file name handler functions. Signal, when
12075 native functionality is not supported.
12076 (syms_of_fileio): Declare it unconditionally.
12077
120782008-04-10 Jason Rumney <jasonr@gnu.org>
12079
12080 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12081 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12082
12083 * w32.c (logon_network_drive): Also logon to remote drives that
12084 are mapped to drive letters.
12085
120862008-04-10 Glenn Morris <rgm@gnu.org>
12087
12088 * xdisp.c (truncate-partial-width-windows): Doc fix.
12089
120902008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12091
12092 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12093 Move functions to minibuffer.el.
12094 (syms_of_fileio): Don't declare them.
12095
120962008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12099 (syms_of_minibuf): Remove its initialization.
12100
12101 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12102
121032008-04-09 Juanma Barranquero <lekktu@gmail.com>
12104
12105 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12106
121072008-04-09 Jason Rumney <jasonr@gnu.org>
12108
12109 * makefile.w32-in (distclean): Delete makefile too.
12110 (maintainer-clean): New target.
12111
12112 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12113
12114 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12115 for new font backend and composite cases.
12116
121172008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12118
12119 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12120 Most of the code moved to run_timers.
12121 (do_pending_atimers): Call run_timers.
12122 (run_timers): New function.
12123
12124 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12125 run atimers.
12126
12127 * process.c (wait_reading_process_output): The same as above.
12128
121292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12130
12131 * minibuf.c (last_exact_completion): Remove variable.
12132 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12133 (complete_and_exit_1, complete_and_exit_2)
12134 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12135 (Fdisplay_completion_list, display_completion_list_1)
12136 (Fminibuffer_completion_help, Fself_insert_and_exit)
12137 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12138 minibuffer.el.
12139 (syms_of_minibuf): Remove corresponding initializations.
12140
12141 * keyboard.c (Qdeactivate_mark): New var.
12142 (command_loop_1): Use it to call `deactivate-mark'.
12143 (syms_of_keyboard): Initialize it.
12144
12145 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12146 to another frame.
12147 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12148 Don't call set_tty_color_mode.
12149 (store_frame_param): Reset previous_frame rather than call
12150 set_tty_color_mode.
12151 * term.c (set_tty_color_mode): Rewrite.
12152 * dispextern.h (set_tty_color_mode): New type.
12153 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12154
121552008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12156
12157 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12158 for generic chars, which do not exist any more in emacs-unicode.
12159
121602008-04-08 Michael Albinus <michael.albinus@gmx.de>
12161
12162 * coding.c (detect_coding_emacs_mule)
12163 (Ffind_operation_coding_system): Fix typo.
12164
121652008-04-08 Jason Rumney <jasonr@gnu.org>
12166
12167 * w32uniscribe.c (SNAME): Extract only symbol name.
12168
12169 * w32font.h (struct w32_metric_cache): New struct.
12170 (w32font_info): Use it.
12171 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12172 (CACHE_BLOCKSIZE): New constants.
12173
12174 * w32font.c (Qja, Qko, Qzh): New symbols.
12175 (syms_of_w32font): Initialise them.
12176 (font_matches_spec): Use them to filter by language.
12177 (recompute_cached_metrics): Remove function.
12178 (compute_metrics, clear_cached_metrics): New functions.
12179 (w32font_encode_char): Use them to manage metric cache.
12180 (w32font_text_extents): Cache metrics for all glyphs on demand.
12181 Delay converting glyph indices to WORD until needed.
12182 (w32font_open_internal): Initialize metric cache to empty.
12183 (registry_to_w32_charset): Charset should always be a symbol.
12184 (fill_in_logfont, list_all_matching_fonts): Family should
12185 always be a symbol.
12186
121872008-04-06 Jason Rumney <jasonr@gnu.org>
12188
12189 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12190 Give up if glyph indices not supported. Use uniscribe obtained
12191 ABC widths for individual metrics. Map glyph clusters back to
12192 characters using fClusterStart flag. Return number of glyphs
12193 produced, not chars processed.
12194 (uniscribe_shape): Map char at FROM to current glyph.
12195
121962008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12197
12198 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12199 Use SetMenuItemHierarchicalMenu.
12200
122012008-04-05 Jason Rumney <jasonr@gnu.org>
12202
12203 * image.c (pbm_load): Allow color values up to 65535.
12204 Throw an error if max_color_idx is outside the supported range.
12205 Report an error when image size is invalid.
12206 Read two bytes at a time when raw images have max_color_idx above 255.
12207
122082008-04-05 Eli Zaretskii <eliz@gnu.org>
12209
12210 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12211 cFileName a file name that includes `?' characters, use the 8+3
12212 alias in cAlternateFileName instead.
12213
122142008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12215
12216 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12217 append "CCL: Quitted" when the CCL program is quitted.
12218 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12219
12220 * ccl.h (struct ccl_program): New member quit_silently.
12221
122222008-04-05 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * search.c (compile_pattern_1): Treat non-nil and non-string of
12225 search-spaces-regexp as nil.
12226
12227 * minibuf.c (Fassoc_string): Tweak docstring.
12228
122292008-04-05 Eli Zaretskii <eliz@gnu.org>
12230
12231 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12232 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12233 2008-03-14 to force inode be positive.
12234
12235 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12236 _S_* ones, since we now use our own sys/stat.h.
12237 (stat, fstat): Don't mangle the inode number.
12238 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12239
122402008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12241
12242 * frame.h (struct frame): Give one more bit to `visible' since we use
12243 values larger than 1 to indicate obscured frames on ttys.
12244
12245 * keymap.c (Qkeymap_canonicalize): New var.
12246 (Fmap_keymap_internal): New fun.
12247 (describe_map): Use keymap-canonicalize.
12248
12249 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12250 (Fundo_boundary): Set them.
12251 (syms_of_undo): Initialize them.
12252 (record_point): Use them instead of last_point_position*.
12253 (last_undo_buffer): Change type.
12254
122552008-04-04 Jason Rumney <jasonr@gnu.org>
12256
12257 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12258 (recompute_cached_metrics): Don't set ascent and descent per char.
12259
12260 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12261 (uniscribe_check_otf): Add GC protection before consing.
12262 Rearrange loop for counting features.
12263
122642008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12265
12266 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12267 buffer with byte-size of source buffer.
12268
122692008-04-03 Chong Yidong <cyd@stupidchicken.com>
12270
12271 * callint.c (Fcall_interactively): Handle temporary region even
12272 when shift-select-mode is off.
12273
122742008-04-03 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12277
122782008-04-03 Kenichi Handa <handa@m17n.org>
12279
12280 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12281 (CATEGORY_MASK_UTF_16): Likewise.
12282 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12283 binary file.
12284 (detect_coding): Add null-byte detection for a binary file.
12285 (detect_coding_system): Likewise.
12286
122872008-04-03 Jason Rumney <jasonr@gnu.org>
12288
12289 * w32uniscribe.c: New file.
12290
12291 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12292
12293 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12294
12295 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12296 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12297 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12298 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12299 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12300 (Qphonetic): New symbols.
12301 (syms_of_w32font): Initialize them.
12302 (font_supported_scripts): Use them.
12303 (w32font_list_family): List all charsets.
12304 (w32font_text_extents, recompute_cached_metrics): Fix metric
12305 calculations.
12306 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12307 Give opentype fonts their own format.
12308 (font_matches_spec): New arguments backend and logfont.
12309 Handle :otf spec for uniscribe backend.
12310 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12311 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12312
12313 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12314 font backend.
12315 (globals_of_w32fns): Initialize uniscribe font backend.
12316
12317 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12318 dependencies.
12319 (w32uniscribe.$(O)): New file to build.
12320 (FONT_OBJ): Include w32uniscribe.$(O).
12321 (LIBS): Add uniscribe libraries.
12322
12323 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12324
123252008-04-02 Chong Yidong <cyd@stupidchicken.com>
12326
12327 * callint.c (Vshift_select_mode): New var.
12328 (Finteractive): Document new ^ spec.
12329 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12330 is present.
12331
12332 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12333 (command_loop_1): Avoid running the direct display versions of
12334 forward-char and backward-char if shift-selection may occur.
12335 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12336 shift-translation takes place.
12337
12338 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12339 avoid clobbering by define-minor-mode.
12340
12341 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12342 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12343
12344 * syntax.c (Fforward_word): Add ^ interactive spec.
12345
12346 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12347 (Fscroll_right): Add ^ interactive spec.
12348
123492008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12350
12351 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12352
12353 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12354
12355 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12356
123572008-03-31 Juri Linkov <juri@jurta.org>
12358
12359 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12360
123612008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12362
12363 * gtkutil.c (xg_set_geometry): Fix indentation.
12364 (xg_resize_outer_widget): Remove.
12365 (x_wm_size_hint_off): Fix indentation.
12366 (xg_frame_set_char_size): Call flush_and_sync after
12367 gtk_window_resize.
12368 (x_wm_set_size_hint): Pass NULL as geometry window to
12369 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12370 Add menu bar and tool bar height to base height.
12371 (xg_update_frame_menubar, free_frame_menubar)
12372 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12373 (update_frame_tool_bar, free_frame_tool_bar):
12374 Change xg_resize_outer_widget to xg_frame_set_char_size.
12375
123762008-03-30 Michael Albinus <michael.albinus@gmx.de>
12377
12378 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12379 (Fdbus_call_method): New parameter TIMEOUT.
12380 (dbus-send-signal): Optimize UNGCPRO call.
12381
123822008-03-29 Juri Linkov <juri@jurta.org>
12383
12384 * window.c (Fdisplay_buffer): Move call to
12385 Vsplit_window_preferred_function out of conditions that check
12386 if window is eligible for vertical splitting.
12387 When Vsplit_window_preferred_function is non-nil, call it and use
12388 its non-nil return value as window. Otherwise, continue doing
12389 vertical splitting using Fsplit_window with arg horflag=nil.
12390 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12391 default value from `split-window' to nil.
12392
123932008-03-29 Juri Linkov <juri@jurta.org>
12394
12395 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12396 for interactive code letters 'b' and 'B'.
12397
123982008-03-29 Eli Zaretskii <eliz@gnu.org>
12399
12400 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12401 multibyte string.
12402
124032008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12404
12405 * keyboard.c (pending_funcalls): New var.
12406 (timer_check): Run it.
12407 (syms_of_keyboard): Initialize it.
12408 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12409 (Vdelete_terminal_functions): New vars.
12410 (syms_of_terminal): Initialize them.
12411 (Fdelete_terminal): Run delete-terminal-functions.
12412 * xdisp.c (safe_eval): Rewrite.
12413 (safe_call2): New fun.
12414 * frame.c (Qdelete_frame_functions): New var.
12415 (syms_of_frame): Initialize it.
12416 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12417 * lisp.h (safe_call2, pending_funcalls): Declare.
12418
124192008-03-28 Andreas Schwab <schwab@suse.de>
12420
12421 * indent.c (Fmove_to_column): Move declaration before statements.
12422
124232008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12424
12425 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12426 (struct frame): Use bit fields for boolean vars.
12427
12428 * process.c (server_accept_connection): Simplify naming.
12429 (emacs_get_tty_pgrp): Use SDATA.
12430
12431 * coding.c (decode_coding_object): Fix last change.
12432
124332008-03-27 Jason Rumney <jasonr@gnu.org>
12434
12435 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12436
124372008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12438
12439 * charset.c (Fdefine_charset_internal): Change the way of
12440 registering charsets in Vcharset_order_list.
12441 (syms_of_charset): Make the charset `eight-bit' supplementary.
12442
124432008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12444
12445 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12446 operations, to avoid having the difference between pointers
12447 overflow.
12448
124492008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * indent.c (check_display_width): New fun.
12452 (scan_for_column): Use it.
12453
12454 * data.c (syms_of_data): Mark most-positive-fixnum and
12455 most-negative-fixnum as constants.
12456
12457 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12458
12459 * indent.c (scan_for_column): Extract from current_column_1.
12460 Merge with the same code from Fmove_to_column.
12461 (current_column_1, Fmove_to_column): Use it.
12462
124632008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12464
12465 * keymap.c (map_keymap_internal): New fun.
12466 (map_keymap): Use it.
12467 (Fmap_keymap_internal): New fun.
12468 (Fmap_keymap): Remove left-out test from before make_save_value.
12469
12470 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12471
12472 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12473 Use XCAR/XCDR.
12474
12475 * process.h (struct Lisp_Process): Remove filter_multibyte.
12476 * process.c (QCfilter_multibyte): Remove.
12477 (setup_process_coding_systems): Don't use filter_multibyte.
12478 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12479 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12480 (Fset_process_filter_multibyte): Change the coding-system to
12481 approximate the previous behavior.
12482 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12483 coding-system.
12484
12485 * coding.c (decode_coding_object): When not decoding into a buffer,
12486 obey the coding system's preference of (uni|multi)byte.
12487
124882008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12489
12490 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12491 every char is changed and has a different byte-length.
12492 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12493 Fix int -> EMACS_INT.
12494
124952008-03-23 David Hansen <david.hansen@gmx.net>
12496
12497 * dbusbind.c (xd_read_message): Remove extra copying of message
12498 strings. Check for NULL `interface' or `member'.
12499
125002008-03-22 Eli Zaretskii <eliz@gnu.org>
12501
12502 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12503 cFileName a file name that includes `?' characters, use the 8+3
12504 alias in cAlternateFileName instead.
12505
125062008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12507
12508 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12509
125102008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12513 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12514 work on current_buffer only instead (that was already the case
12515 for some of the code anyway).
12516 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12517 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12518 (SET_PT, SET_PT_BOTH): Adjust.
12519 * intervals.h (set_point, temp_set_point, set_point_both)
12520 (temp_set_point_both): Remove redundant declarations.
12521
125222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * fileio.c (Finsert_file_contents):
12525 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12526 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12527 when buffer != current_buffer anyway.
12528
125292008-03-20 Andreas Schwab <schwab@suse.de>
12530
12531 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12532 as default.
12533
125342008-03-19 Jason Rumney <jasonr@gnu.org>
12535
12536 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12537 (syms_of_w32fns): Initialize them.
12538 (HOURGLASS_ID): New constant.
12539 (x_window_to_frame): Don't check hourglass_window.
12540 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12541 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12542 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12543 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12544 Only change the cursor if hourglass is not active.
12545 (Fx_create_frame): Initialize frame's current_cursor.
12546 (hourglass_atimer): Remove.
12547 (hourglass_started): New function.
12548 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12549 (show_hourglass): Adapt to w32, changing argument to frame.
12550
12551 * w32term.h (struct w32_output): Remove hourglass_window.
12552 Add current_cursor.
12553
12554 * eval.c (call_debugger, Fsignal):
12555 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12556 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12557 (Fexecute_extended_command, cancel_hourglass_unwind):
12558 * minibuf.c (read_minibuf):
12559 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12560
125612008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12562
12563 * window.c (run_funs): New fun.
12564 (run_window_configuration_change_hook): Use it to run the buffer-local
12565 and the global part of the hook.
12566
12567 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12568 (unwind_format_mode_line): Restore selected window.
12569 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12570
125712008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 * editfns.c (Fchar_equal): Check they are valid characters.
12574
12575 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12576
125772008-03-17 Andreas Schwab <schwab@suse.de>
12578
12579 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12580 against a charset.
12581
12582 * lisp.h (Fbuffer_list): Declare.
12583
125842008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12585
aac0c6e3
MR
12586 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12587 handlebox_widget is != 0.
12588
125892008-03-16 Juri Linkov <juri@jurta.org>
12590
12591 * callint.c (Fcall_interactively): For interactive code letters
12592 'b' and 'B' put the buffer list into the list of default "future"
12593 values of the minibuffer.
12594
125952008-03-16 Andreas Schwab <schwab@suse.de>
12596
12597 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12598 modifiers.
12599
12600 * regex.c (re_match_2_internal): Correct matching of a charset
12601 against latin-1 characters.
12602
126032008-03-16 Kenichi Handa <handa@m17n.org>
12604
12605 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12606 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12607 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12608 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12609 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12610 CHAR_STRING_ADVANCE.
12611 (produce_chars): Fix for the case that the source and the
12612 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12613 instead of CHAR_STRING_ADVANCE.
12614 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12615 STRING_CHAR_ADVANCE.
12616
126172008-03-15 Andreas Schwab <schwab@suse.de>
12618
12619 * regex.c (re_match_2_internal): Correct matching of eight bit
12620 characters in unibyte strings.
12621
126222008-03-15 Martin Rudalics <rudalics@gmx.at>
12623
12624 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12625 at end of range when it coincides with the end of the buffer.
12626
126272008-03-14 Eli Zaretskii <eliz@gnu.org>
12628
12629 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12630
12631 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12632
126332008-03-14 Jason Rumney <jasonr@gnu.org>
12634
12635 * editfns.c (initial_tz): New variable.
12636 (syms_of_editfns): Initialize it.
12637 (Fset_time_zone_rule): Set it when first called.
12638 Use it when TZSTRING is nil.
12639
12640 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12641 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12642 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12643 (globals_of_w32fns): Initialize them.
12644 (compute_tip_xy): Use them to position tooltips.
12645
126462008-03-14 Glenn Morris <rgm@gnu.org>
12647
12648 * emacs.c (main): Revert previous change.
12649 (standard_args): Revert -internal-script back to -scriptload,
12650 and remove the long-option form.
12651
126522008-03-13 Glenn Morris <rgm@gnu.org>
12653
12654 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12655 Remove option -enable-font-backend.
12656
126572008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12658
12659 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12660
126612008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12662
12663 * xterm.c (x_connection_closed): For GTK: If this is the last
12664 terminal just exit without closing the display.
12665
126662008-03-11 Jason Rumney <jasonr@gnu.org>
12667
12668 * w32font.c (w32font_full_name): Use floor to round.
12669
f0131492 126702008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12671
12672 * sound.c (alsa_configure): Declare vol at beginning of block.
12673
12674 * fontset.c (Ffontset_info): Remove extra semicolon.
12675
126762008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12677
12678 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12679 size of resulting string.
12680
126812008-03-10 Jason Rumney <jasonr@gnu.org>
12682
12683 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12684
126852008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12686
12687 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12688 Don't pretend as if characters with display property haven't been
12689 consumed for string-replacing-string case.
12690
126912008-03-08 Kim F. Storm <storm@cua.dk>
12692
12693 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12694 (get_next_display_element, next_element_from_string)
12695 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12696
126972008-03-08 Andreas Schwab <schwab@suse.de>
12698
12699 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12700
127012008-03-06 Jason Rumney <jasonr@gnu.org>
12702
12703 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12704 when charset not specified. Only translate ANSI to unicode when
12705 font_type is truetype.
12706 (w32font_coverage_ok): New function.
12707 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12708
127092008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12710
12711 * lread.c (Fread_char): Resolve modifiers.
12712 (Fread_char_exclusive): Likewise.
12713
12714 * character.c (char_resolve_modifier_mask): New function.
12715 (char_string): Use char_resolve_modifier_mask.
12716 (Fchar_resolve_modifiers): New function.
12717 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12718 function.
12719
127202008-03-04 Jason Rumney <jasonr@gnu.org>
12721
12722 * makefile.w32-in: Always include w32font.c in the build.
12723 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12724
127252008-03-04 Andreas Schwab <schwab@suse.de>
12726
12727 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12728 (versionclean): Likewise.
12729
127302008-03-04 Juanma Barranquero <lekktu@gmail.com>
12731
12732 * .cvsignore: Add oo.
12733
127342008-03-03 Andreas Schwab <schwab@suse.de>
12735
12736 * coding.c (decode_coding_object): Inhibit gap shrinking while
12737 decoding in place.
12738
127392008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12740
12741 * w32term.c: Remove unused include "gnu.h".
12742 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12743
12744 * gnu.h: Rename to ...
12745 * emacs-icon.h: ... this.
12746 * xterm.c: Use emacs-icon.h instead of gnu.h.
12747 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12748
127492008-03-03 Juanma Barranquero <lekktu@gmail.com>
12750
12751 * w32font.c: Include math.h.
12752
127532008-03-03 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12756 Compute options separately.
12757 (w32font_open_internal): Set glyph_idx before caching metrics.
12758
12759 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12760 Define if system headers don't.
12761 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12762 (w32font_encode_char): Don't declare here.
12763
12764 * w32font.c (Quniscribe, QCformat): New symbols.
12765 (syms_of_w32font): Define them.
12766 (w32font_has_char): Indicate uncertainty.
12767 (w32font_encode_char): Encode as glyph point. Make static.
12768 (recompute_cached_metrics): New function.
12769 (w32font_open_internal): Use it. Set font to use glyph points
12770 initially. Set format based on type of font.
12771 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12772 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12773 on it. Set format based on information available here.
12774 (add_font_entity_to_list): Identify backend based on opentype_only.
12775
127762008-03-02 Andreas Schwab <schwab@suse.de>
12777
12778 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12779
12780 * coding.c (decode_coding_big5, produce_chars):
12781 Fix typos in last change.
12782
127832008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12784
12785 * gnu.h: New icon.
12786
127872008-03-02 Kenichi Handa <handa@m17n.org>
12788
12789 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12790 `dos', don't decode '\r' if that is the last in the source.
12791 (decode_coding_utf_16, decode_coding_emacs_mule)
12792 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12793 (decode_coding_raw_text, decode_coding_charset): Likewise.
12794 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12795
127962008-03-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12799
128002008-03-01 Kim F. Storm <storm@cua.dk>
12801
12802 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12803
128042008-03-01 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32font.c (w32font_full_name): New function.
12807 (w32font_open_internal): Use it.
12808
128092008-03-01 Kim F. Storm <storm@cua.dk>
12810
12811 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12812
128132008-03-01 Jason Rumney <jasonr@gnu.org>
12814
12815 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12816
128172008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12818
12819 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12820 xg_frame_resized when the event is for the edit widget.
12821
12822 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12823
12824 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12825 set_char_size.
12826 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12827 operations on widgets here. Just set frame size if needed.
12828 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12829 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12830 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12831 the whole frame.
12832 (xg_create_tool_bar): Move attachment of the tool bar to
12833 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12834 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12835
128362008-03-01 Jason Rumney <jasonr@gnu.org>
12837
12838 * w32fns.c (w32_msg_pump): Disable debug code.
12839
128402008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12841
12842 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12843
128442008-02-29 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * xdisp.c (next_overlay_string): Don't set
12847 overlay_strings_at_end_processed_p if we're currently reading from
12848 a display string.
12849
128502008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12851
12852 * xdisp.c (get_overlay_strings_1): Fix typo.
12853
128542008-02-29 Chong Yidong <cyd@stupidchicken.com>
12855
12856 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12857
128582008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12859
12860 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12861
12862 * xdisp.c (display_mode_element): Cancel the previous change.
12863 (decode_mode_spec): Likewise.
12864 (handle_auto_composed_prop): Don't make composition if it->string
12865 is a string.
12866
128672008-02-27 Kim F. Storm <storm@cua.dk>
12868
12869 * lisp.h (GLYPH): Change type from int to struct with separate char
12870 and face_id members.
12871 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12872 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12873 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12874 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12875 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12876 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12877 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12878 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12879 handle new Lisp glyph code encoding, either an integer or a cons.
12880
12881 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12882 (GLYPH_ALIAS): Delete.
12883 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12884 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12885 (GLYPH_FROM_CHAR): Replace macro by ...
12886 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12887
12888 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12889 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12890 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12891 (GLYPH_INVALID_P): New macro.
12892 (spec_glyph_lookup_face): Update prototype.
12893
12894 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12895 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12896 new glyph code encoding.
12897 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12898 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12899
12900 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12901 Adapt to new glyph type and new glyph code encoding.
12902
12903 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12904
12905 * indent.c (current_column, current_column_1, Fmove_to_column)
12906 (compute_motion): Adapt to new glyph code encoding.
12907
12908 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12909
129102008-02-27 Chong Yidong <cyd@stupidchicken.com>
12911
12912 * process.c (wait_reading_process_output): Check for window
12913 changes caused by timers.
12914 Suggested by Johan Bockgård.
12915
129162008-02-27 Glenn Morris <rgm@gnu.org>
12917
12918 * emacs.c (USAGE1): Add `--disable-font-backend'.
12919
129202008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12921
12922 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12923 is made to the buffer.
12924
129252008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12926
12927 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12928 (face_at_string_position):
12929 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12930 (face_at_string_position):
12931 * xdisp.c (display_string, next_overlay_change):
12932 * buffer.h (overlays_at):
12933 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12934 Update callers.
12935
129362008-02-26 Chong Yidong <cyd@stupidchicken.com>
12937
12938 * editfns.c (Fformat): Doc fix.
12939
129402008-02-26 Juanma Barranquero <lekktu@gmail.com>
12941
12942 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12943 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12944 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12945
129462008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12947
12948 * buffer.c (Fbuffer_swap_text): New function.
12949 (syms_of_buffer): Defsubr it.
12950
129512008-02-25 Chong Yidong <cyd@stupidchicken.com>
12952
12953 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12954
129552008-02-25 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32font.c (w32font_draw): Draw one character at a time when padding.
12958
129592008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12960
12961 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12962 Handle a nil arg. Use run_window_configuration_change_hook.
12963 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12964 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12965 Use run_window_configuration_change_hook.
12966
129672008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12968
12969 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12970 1-pixel width.
12971
129722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12973
12974 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12975 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12976 if the glyph in the font is zero pixel with.
12977
12978 * dispextern.h (struct glyph_string): New member padding_p.
12979
12980 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12981
12982 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12983
12984 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12985
12986 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12987
12988 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12989
129902008-02-25 Jason Rumney <jasonr@gnu.org>
12991
12992 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12993
129942008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12995
12996 Allow fine-grained image-cache flushing.
12997 * dispextern.h (struct image): Add `dependencies' field.
12998 (clear_image_caches): Change arg to Lisp_Object.
12999 * image.c (make_image): Initialize `dependencies' field.
13000 (clear_image_cache): Change arg to allow fine-grained flushing.
13001 Perform the flush even if image-cache-eviction-delay is nil.
13002 (clear_image_caches): Change arg to Lisp_Object.
13003 (Fclear_image_cache): Expand meaning of the argument.
13004 (mark_image): Mark `dependencies' field.
13005 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13006 (lface_hash): Use XHASH rather than XFASTINT.
13007 (face_at_buffer_position): Fix int -> EMACS_INT position.
13008 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13009 (select_frame_for_redisplay): Remove code duplication.
13010 (redisplay_internal): Adapt arg to call to clear_image_caches.
13011
130122008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13013
13014 * s/vms4-0.h:
13015 * s/vms4-2.h:
13016 * s/vms4-4.h:
13017 * s/vms5-5.h: Remove, unused.
13018
13019 * s/irix5-2.h:
13020 * s/irix6-0.h:
13021 * s/riscos5.h:
13022 * s/mach-bsd4-3.h:
13023 * m/mips4.h: Remove files for obsolete systems.
13024
13025 * Makefile.in:
13026 * filelock.c:
13027 * unexmips.c:
13028 * m/hp9000s300.h:
13029 * m/iris4d.h:
13030 * s/aix3-1.h:
13031 * s/hpux.h:
13032 * s/msdos.h:
13033 * s/usg5-0.h:
13034 * s/usg5-2-2.h:
13035 * s/usg5-2.h:
13036 * s/usg5-3.h: Remove references to obsolete variables.
13037
13038 * s/irix5-0.h: Remove, move all the contents ...
13039 * s/irix6-5.h: ... here. Simplify.
13040 * config.in: Regenerate.
13041
130422008-02-24 Jason Rumney <jasonr@gnu.org>
13043
13044 * w32term.c (x_draw_glyph_string_background): Clear the background
13045 manually when cleartype is in use.
13046 (x_draw_glyph_string_foreground): Draw text transparently when
13047 cleartype is in use.
13048
13049 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13050 a font into it unless we have to.
13051
130522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13053
13054 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13055 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13056
aac0c6e3
MR
130572008-02-18 Jason Rumney <jasonr@gnu.org>
13058
13059 * w32fns.c (Fw32_shell_execute): Encode parameters.
13060
130612008-02-09 Eli Zaretskii <eliz@gnu.org>
13062
13063 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13064
130652008-02-05 Juanma Barranquero <lekktu@gmail.com>
13066
13067 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13068
130692008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13070
13071 * xterm.c (x_set_offset): Don't change the gravity if
13072 CHANGE_GRAVITY is -1.
13073
130742008-02-23 Chong Yidong <cyd@stupidchicken.com>
13075
13076 * fileio.c (auto_save_error_occurred): New var.
13077 (auto_save_error): Set it.
13078 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13079 error occurred.
13080
130812008-02-23 Eli Zaretskii <eliz@gnu.org>
13082
13083 * w32.c (globals_of_w32): Add initializations for
13084 g_b_init_get_sid_sub_authority and
13085 g_b_init_get_sid_sub_authority_count.
13086
130872008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13088
13089 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13090 (font_parse_xlfd): Use them for sanity check.
13091 (Finternal_set_font_style_table): Make sure the table is bijective.
13092
13093 Consolidate the image_cache to the terminal struct.
13094 * termhooks.h (P_): Remove redundant def.
13095 (struct terminal): New field `image_cache'.
13096 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13097 of FRAME_X_IMAGE_CACHE.
13098 * xterm.h (struct x_display_info): Remove image_cache field.
13099 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13100 * w32term.h (struct w32_display_info): Remove image_cache field.
13101 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13102 * macterm.h (struct mac_display_info): Remove image_cache field.
13103 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13104 * xterm.c (x_term_init):
13105 * w32term.c (w32_term_init):
13106 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13107 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13108 Remove declarations.
13109 (clear_image_caches, mark_image_cache): New declarations.
13110 * xfaces.c (clear_face_cache):
13111 * xdisp.c (redisplay_internal): Use clear_image_caches.
13112 * image.c (clear_image_cache): Don't check that a frame is on
13113 a window-system before checking if it shares the same cache.
13114 (clear_image_caches): New function.
13115 (Fclear_image_cache): Use it.
13116 (mark_image): Move from allo.c.
13117 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13118 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13119 (mark_object): Don't call mark_image_cache for frames.
13120 (mark_terminals): Call mark_image_cache.
13121
13122 * lisp.h (Fdelete_terminal): Declare.
13123
13124 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13125 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13126 wrong_type_argument.
13127
131282008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13129
13130 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13131 malayalam.el, and tamil.el. Add sinhala.el.
13132
131332008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * xterm.c (x_connection_closed): Consolidate identical tests.
13136 (x_delete_terminal): Don't crash if called via x_connection_closed.
13137
131382008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13139
13140 * xdisp.c (decode_mode_spec): New arg string.
13141 (display_mode_element): Adjust for the above change.
13142
131432008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13144
13145 * callint.c (Fcall_interactively): Use AREF.
13146
131472008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13150
131512008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13152
13153 * xfns.c (Fx_show_tip): Set string to " " if empty.
13154
131552008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13156
13157 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13158 with Qt.
13159
131602008-02-17 Kenichi Handa <handa@m17n.org>
13161
13162 * ftfont.c (ftfont_shape): Return Lispy number.
13163
13164 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13165 for GCs.
13166 (Finternal_set_font_selection_order): Call font_update_sort_order
13167 only when enable_font_backend is set.
13168 (realize_x_face): Set face->font_info to that of default face only
13169 when enable_font_backend is set.
13170
13171 * xdisp.c (handle_composition_prop): Set it->c to the fist
13172 character of the composed region.
13173 (fill_composite_glyph_string): Set base_face->font_info to
13174 s->font_info. Get a face for ascii from base_face->ascii_face.
13175 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13176 with a face already decided.
13177 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13178 non-negative.
13179 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13180 call font_prepare_composition unconditionally.
13181
13182 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13183
13184 * xterm.h (struct x_display_info): New member font.
13185
13186 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13187 (x_set_mouse_face_gc, x_new_font): Likewise.
13188 (x_term_init): Setup display_info->font.
13189 (x_delete_terminal): Free display_info->font.
13190
13191 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13192
13193 * ftxfont.c (ftxfont_default_fid): Delete it.
13194 (ftxfont_open): Set xfont->fid to 0.
13195 (ftxfont_end_for_frame): Clear data specific to the frame and the
13196 font-driver.
13197
13198 * xftfont.c (xftfont_default_fid): Delete it.
13199 (xftfont_open): Set xfont->fid to 0.
13200
13201 * fontset.c (FONTSET_OBJLIST): New macro.
13202 (fontset_find_font): Update font-object list of the fontset.
13203 (free_realized_fontset): New function.
13204 (free_face_fontset): Call free_realized_fontset.
13205 (Ffont_info): Call font_close_object only when enable_font_backend
13206 is set.
13207
13208 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13209 [HAVE_NTGUI]: Include w32term.h.
13210 [MAC_OS]: Include macterm.ch.
13211 (font_otf_ValueRecord): Use make_number.
13212 (font_finish_cache): Fix handling of reference count.
13213 (font_clear_cache): Update num_fonts.
13214 (font_open_entity): Update smallest_char_width and
13215 smallest_font_height of the frame.
13216 (font_close_object): Update num_fonts.
13217 (Fclear_font_cache): Fix finding the target cache data.
13218
132192008-02-16 Glenn Morris <rgm@gnu.org>
13220
13221 * fontset.c (Finternal_char_font): Fix compilation warning.
13222
132232008-02-16 Eli Zaretskii <eliz@gnu.org>
13224
13225 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13226 instead of char arrays. Enlarge the size of array passed to
13227 get_token_information.
13228
13229 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13230 warnings.
13231
132322008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13233
13234 * .gdbinit: Don't set `args', it breaks gdb --args.
13235
132362008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13237
13238 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13239 within a narrowed buffer.
13240
132412008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13242
13243 * coding.c (decode_coding_object, encode_coding_object):
13244 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13245
132462008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13247
13248 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13249 hardcoding 1.
13250 (detect_coding_system):
13251 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13252 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13253 * insdel.c (insert_from_gap):
13254 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13255 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13256 (string_to_multibyte):
13257 * character.c (chars_in_text, multibyte_chars_in_text):
13258 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13259
13260 * character.h (FETCH_STRING_CHAR_ADVANCE)
13261 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13262 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13263 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13264
13265 * casefiddle.c (casify_region): Only call after-change and composition
13266 functions on the part of the region that was changed.
13267
13268 * keyboard.c (read_avail_input):
13269 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13270
132712008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13272
13273 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13274 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13275
132762008-02-11 Juanma Barranquero <lekktu@gmail.com>
13277
13278 * w32menu.c (push_submenu_start, push_submenu_end)
13279 (push_left_right_boundary, push_menu_pane, push_menu_item):
13280 * keyboard.c (read_key_sequence): Don't pass args with side effects
13281 to AREF, it fails when compiling with -DENABLE_CHECKING.
13282
132832008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13284
13285 * Makefile.in (${lispsource}international/charprop.el):
13286 Delete this target.
13287
13288 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13289 emacs-unicode-2.
13290
132912008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13292
13293 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13294
132952008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13296
13297 * frame.c (Qnoelisp): New symbol.
13298 (syms_of_frame): Initialize it.
13299 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13300 harmless Elisp code, from a strong `force' from x_connection_closed.
13301 * frame.h (Qnoelisp): Declare.
13302 * xterm.c (x_connection_closed): Pass `noelisp'.
13303
13304 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13305 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13306 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13307 rather than `int' for the type of `type'.
13308
133092008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13310
13311 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13312
13313 * Makefile.in (GNUC): Remove support for gcc-1.x.
13314
133152008-02-10 Richard Stallman <rms@gnu.org>
13316
13317 * lisp.h (ASET): Use AREF, not ASLOT.
13318
133192008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13320
13321 * lisp.h (ASET): Check bounds.
13322
133232008-02-10 Glenn Morris <rgm@gnu.org>
13324
13325 * buffer.c (mode-name): Doc fix.
13326
133272008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13328
13329 * Makefile.in:
13330 * emacs.c:
13331 * gmalloc.c:
13332 * keyboard.c:
13333 * lisp.h:
13334 * m/ibm370aix.h:
13335 * process.c:
13336 * regex.c:
13337 * s/hpux.h:
13338 * sysdep.c:
13339 * sysselect.h:
13340 * systty.h:
13341 * unexec.c:
13342 * w32term.c:
13343 * xsmfns.c:
13344 * xterm.c: Remove code that deals with obsolete variables.
13345
13346 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13347
13348 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13349 nothing else needs it anymore.
13350
133512008-02-09 Eli Zaretskii <eliz@gnu.org>
13352
13353 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13354 instead of unibyte_char_to_multibyte.
13355
133562008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13357
13358 * s/gnu-linux.h: Remove commented out code.
13359
13360 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13361
13362 * Makefile.in: Update what RMS says about using autoconf.
13363 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13364 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13365 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13366 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13367
133682008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13369
13370 * keymap.c (Fkey_description): Move side effect outside of macro call.
13371
13372 * xfaces.c (Finternal_make_lisp_face):
13373 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13374
13375 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13376 (syms_of_fontset): Use ASET.
13377
13378 * fns.c (concat): Move side effect outside of macro call.
13379 (hash_clear): Use ASET.
13380
133812008-02-08 Richard Stallman <rms@gnu.org>
13382
13383 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13384 If FORCE, and frame has a surrogate minibuffer for another frame,
13385 delete the other frame first.
13386
133872008-02-07 Timo Savola <timo.savola@iki.fi>
13388
13389 * xterm.c (x_detect_focus_change): Handle embed client message.
13390 (handle_one_xevent): Ditto.
13391 (handle_one_xevent): If embedded and we get a button press/release,
13392 request focus.
13393 (xembed_set_info, xembed_send_message): New functions.
13394 (x_make_frame_visible): Call xembed_set_info if embedded.
13395 (x_make_frame_invisible): Call xembed_set_info if embedded.
13396 (x_term_init): Initialize Xatom_XEMBED.
13397 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13398 (x_iconify_frame): Ditto.
13399
13400 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13401 (enum xembed_info, enum xembed_message, enum xembed_focus)
13402 (enum xembed_modifier, enum xembed_accelerator): New.
13403 (xembed_set_info, xembed_send_message): Declare.
13404 (FRAME_X_EMBEDDED_P): New.
13405
13406 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13407 gtk_plug_new.
13408
13409 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13410 window ID of a frame.
13411 (x_window): Reparent frame if embedded.
13412 (Fx_create_frame): Don't set border width if embedded.
13413
13414 * emacs.c (USAGE3): Add --parent-id.
13415 (standard_args): Ditto.
13416
134172008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13418
13419 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13420
134212008-02-07 Jim Meyering <meyering@redhat.com>
13422
13423 Use "do...while (0)", not "if (1)...else" in macro definitions.
13424 The latter provokes a warning from gcc about the empty else, when
13425 followed by ";". Also, without that trailing semicolon, it would
13426 silently swallow up any following statement.
13427 * syntax.h (SETUP_SYNTAX_TABLE)
13428 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13429 * buffer.h (DECODE_POSITION): Likewise.
13430 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13431 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13432 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13433 (FETCH_CHAR_ADVANCE): Likewise.
13434 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13435
134362008-02-07 Jim Meyering <meyering@redhat.com>
13437
13438 * lread.c [lint]: Don't include <sys/inode.h>.
13439
134402008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13441
13442 * xselect.c (x_handle_dnd_message):
13443 * xmenu.c (digest_single_submenu, xmenu_show):
13444 * xdisp.c (with_echo_area_buffer_unwind_data)
13445 (format_mode_line_unwind_data, unwind_format_mode_line)
13446 (display_menu_bar):
13447 * eval.c (Ffetch_bytecode):
13448 * doc.c (store_function_docstring):
13449 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13450 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13451 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13452
134532008-02-07 Kenichi Handa <handa@m17n.org>
13454
13455 * ftxfont.c (ftxfont_open): Don't set
13456 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13457
13458 * ftfont.c (ftfont_open): Fix previous change.
13459
134602008-02-06 Jason Rumney <jasonr@gnu.org>
13461
13462 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13463 Use cached metrics for ASCII characters.
13464 (w32font_open_internal): Don't set font's owning_frame.
13465 Cache metrics for ASCII characters.
13466
13467 * w32font.h (struct w32font_info): Add ascii_metrics.
13468 Remove owning_frame.
13469
134702008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13471
13472 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13473 to negative value.
13474
13475 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13476
13477 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13478
13479 * charset.c (syms_of_charset): Set QCtest and Qeq.
13480
134812008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * process.c (Fstart_process):
13484 * callproc.c (Fcall_process): Handle the case where
13485 Funhandled_file_name_directory returns nil.
13486
13487 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13488 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13489 * font.c (check_gstring): Use them and AREF to access the vector before
13490 we know it's really a gstring.
13491 (Ffont_shape_text): Fix typo.
46e722a9 13492 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13493
13494 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13495 Declare.
13496
13497 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13498
134992008-02-05 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13502 Set smallest_font_height and smallest_char_width in display info.
13503
135042008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13505
13506 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13507
135082008-02-05 Miles Bader <miles@gnu.org>
13509
13510 * xfaces.c (get_lface_attributes, merge_named_face)
13511 (lookup_named_face, lookup_derived_face, realize_named_face):
13512 Revert 2008-02-01 change by cyd@stupidchicken.com.
13513
135142008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13515
13516 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13517 fallback fonts.
13518 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13519
135202008-02-04 Jason Rumney <jasonr@gnu.org>
13521
13522 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13523 set full_name.
13524 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13525
135262008-02-03 Jason Rumney <jasonr@gnu.org>
13527
13528 * makefile.w32-in (OBJ1): Include font.o here.
13529 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13530
135312008-02-02 Jason Rumney <jasonr@gnu.org>
13532
13533 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13534
135352008-02-01 Jason Rumney <jasonr@gnu.org>
13536
13537 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13538
13539 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13540
135412008-02-01 Andreas Schwab <schwab@suse.de>
13542
13543 * Makefile.in (shortlisp, lisp): Update for rename of
13544 ../lisp/language/myanmar.el.
13545
135462008-02-01 Chong Yidong <cyd@stupidchicken.com>
13547
13548 * xfaces.c (get_lface_attributes): Delete function.
13549 (merge_named_face, lookup_named_face, lookup_derived_face)
13550 (realize_named_face): Call lface_from_face_name directly, and use
13551 the fact that merge_face_vectors does not alter its FROM argument.
13552
135532008-02-01 Jason Rumney <jasonr@gnu.org>
13554
13555 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13556 input in the default locale. Handle non-Unicode multibyte input.
13557
135582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13559
13560 * fontset.c (reorder_font_vector): Exclude nil elements from the
13561 font group. Don't try multiple fonts.
13562 (fontset_font): Adjust for the above change.
13563 (Finternal_char_font): Return nil if the found font doesn't
13564 contain the character ch.
13565
13566 * Makefile.in (lisp, shortlisp): Add cham.el.
13567
135682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13569
13570 * font.h (FONTP): Make it return 1 also for a font-object.
13571
13572 * .gdbinit (xfontset): New function.
13573
13574 * font.c (font_find_for_lface): Check if the character C is
13575 supported or not only for the first font.
13576
13577 * fontset.c (reorder_font_vector): Fix typo.
13578 (fontset_find_font): Don't add a font-spec specifying a script.
13579 Use 0 (not Qt) for the indication of empty font-group. Change the
13580 format of RFONT-DEF. Return Qt if no font in the font-group
13581 support the character.
13582 (fontset_font): Adjust for the above change. If no font was
13583 found the character, remember that.
13584 (face_for_char): Adjust for the change of RFONT-DEF.
13585 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13586 no font for the target.
13587 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13588
135892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13590
13591 * font.c (font_load_for_face): Handle the case that the font in
13592 face->lface is a string.
13593
135942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13595
13596 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13597
135982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13599
13600 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13601 Fix previous change. If the frame is not on a window system,
13602 signal an error.
13603
136042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13605
13606 * coding.c (decode_coding_object, encode_coding_object): Adjust
13607 marker positions after conversion.
13608
13609 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13610
136112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13612
13613 * font.c (font_find_for_lface): Fix the handling of the return
13614 value of font_has_char.
13615 (Ffont_shape_text): Fix previous change.
13616
13617 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13618 (fontset_ref_and_range): Delete it.
13619 (fontset_find_font): Call char_table_ref_and_range instead of
13620 FONTSET_REF_AND_RANGE.
13621 (make_fontset): Don't setup font groups of Latin here.
13622 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13623 (new_fontset_from_font): Make the specified font the default for
13624 all Latin characters.
13625
136262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13627
13628 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13629 is on a window system before accessing the fontset of the frame.
13630
136312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13632
13633 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13634
13635 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13636 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13637
13638 * font.c (Ffont_shape_text): If the font driver doesn't have a
13639 shaper function, make zero-width glyphs to have at least one-pixel
13640 width. Fix setting of `to' field of glyphs.
13641
136422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13643
13644 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13645 glyphs.
13646
13647 * font.h (struct font_driver): Improve docstring of member `shape'.
13648
136492008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * composite.c (syms_of_composite): Fix docstring of
13652 auto-composition-function.
13653
13654 * font.h (LGLYPH_SIZE): New macro.
13655
13656 * font.c (Ffont_fill_gstring): Stop filling when a character not
13657 supported by the font is found.
13658 (Ffont_shape_text): When a shape callback function returns nil,
13659 try at most two more times with larger gstring.
13660 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13661
13662 * xdisp.c (handle_auto_composed_prop): Change the argument to
13663 auto-composition-function.
13664
13665 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13666 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13667 Lispy glyph and store it in the lgstring.
13668
13669 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13670
13671 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13672
136732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13674
13675 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13676
13677 * fontset.c (Vfont_encoding_charset_alist): New variable.
13678 (syms_of_fontset): DEFVAR it.
13679 (reorder_font_vector, fontset_find_font): Optimize for the case of
13680 no need of reordering.
13681 (face_for_char): Map the charset property by
13682 Vfont_encoding_charset_alist.
13683
136842008-02-01 Jason Rumney <jasonr@gnu.org>
13685
13686 * w32font.c (logfonts_match): Don't check adstyle here.
13687 (font_matches_spec): Check here against physical font instead.
13688 (add_font_entity_to_list): Avoid some substitutions.
13689
13690 * font.c (font_parse_fcname): Default weight and slant to normal.
13691 (font_score): Prefer normal fonts if weight or slant unspecified.
13692 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13693 match freetype scores.
13694
136952008-02-01 Jason Rumney <jasonr@gnu.org>
13696
13697 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13698 font, as it may have been deleted.
13699 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13700 most common hyphenless variation.
13701 (logfonts_match): Check generic family.
13702 (font_matches_spec): Don't check generic family here.
13703 (fill_in_logfont): Set generic family based on adstyle.
13704
13705 * w32font.h (w32font_get_cache): Update declaration.
13706
137072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13708
13709 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13710
13711 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13712 If none of the new drivers are available, call font_update_drivers
13713 with the old drivers.
13714
13715 * w32font.c (w32font_get_cache): Adjust the argument type.
13716
13717 * xfont.c (xfont_get_cache): Adjust the argument type.
13718
13719 * font.h (struct font_driver): Change argument type of get_cache.
13720
13721 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13722
13723 * font.c (Ffont_get): Fix arguments to Fassoc.
13724 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13725 (font_clear_cache): New function.
13726 (font_list_entities, font_matching_entity): Use font_get_cache.
13727 (font_update_drivers): Call font_clear_cache when finishing a driver.
13728
13729 * fontset.c (fontset_find_font): Fix previous change.
13730
137312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13732
13733 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13734 dpyinfo->font_table.
13735 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13736 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13737
13738 * font.c (font_at): Handle the case that the arg C is negative.
13739 Handle the unibyte case.
13740 (Ffont_at): Call font_at with the arg C -1.
13741
13742 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13743 the position here, and call font_at with the arg C -1.
13744 Don't check the range of the existing composition at the point.
13745
137462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13747
13748 * fontset.c (fontset_add): New args charset_id and family.
13749 Change caller.
13750 (load_font_get_repertory, fontset_find_font): Assume that
13751 font_spec is always a font-spec object.
13752 (Fset_fontset_font): Always store a font-spec object in a fontset.
13753
13754 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13755 instead of get_property_and_range.
13756
137572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13758
13759 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13760 (xftfont_open): Don't keep locking face.
13761 (xftfont_close): Don't unlock face.
13762 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13763
13764 * fontset.c (fontset_find_font): Don't prefer a font of
13765 supplementary charset.
13766
137672008-02-01 Kenichi Handa <handa@m17n.org>
13768
13769 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13770 script, langsys_tag to langsys, new member script.
13771 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13772 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13773 listing to the script specified in that property. Fix arg to
13774 OTF_check_features.
13775
137762008-02-01 Jason Rumney <jasonr@gnu.org>
13777
13778 * w32font.h: New file.
13779
13780 * w32font.c: Include it.
13781 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13782 (w32font_open): Set owning_frame.
13783 (w32font_text_extents): Use owning_frame.
13784 (struct font_callback_data): Add opentype_only field.
13785 (add_font_entity_to_list): Use it to filter fonts.
13786 Don't check against full name.
13787 (w32font_list_internal): New function.
13788 (w32font_list): Use it.
13789 (w32font_match_internal): New function.
13790 (w32font_match): Use it.
13791 (w32font_open_internal): New function.
13792 (w32font_open): Use it.
13793 (w32font_get_cache, w32font_close, w32font_has_char)
13794 (w32font_encode_char, w32font_text_extents, w32font_draw):
13795 Make non-static.
13796
13797 * makefile.w32-in (w32font.o): Depend on w32font.h.
13798
137992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13800
13801 * charset.c (Fdefine_charset_internal): Record a supplementary
13802 charset at the tail of Vcharset_order_list.
13803
13804 * font.c (Ffont_shape_text): Fix the return value.
13805
13806 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13807
13808 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13809
138102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13811
13812 * ftfont.c (struct OpenTypeSpec): New struct.
13813 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13814 (ftfont_get_open_type_spec): New function.
13815 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13816
13817 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13818
138192008-02-01 Jason Rumney <jasonr@gnu.org>
13820
13821 * w32font.c (add_font_entity_to_list): Compare only the beginning
13822 of full name.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13827 Never return HANDLED_RECOMPUTE_PROPS.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * font.c (font_gstring_produce): Delete it.
13832
13833 * composite.h (COMPOSITION_METHOD):
13834 Handle COMPOSITION_WITH_GLYPH_STRING.
13835
138362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13837
13838 * xfont.c (Qx): Delete.
13839 (syms_of_xfont): Don't initialize Qx.
13840
13841 * composite.h (enum composition_method):
13842 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13843
138442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13845
13846 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13847 (choose_face_font): Accept new form of font-spec.
13848
13849 * frame.h (font_driver_list): Declare it unconditionally.
13850 (struct frame): Define members font_driver_list and font_data_list
13851 unconditionally.
13852
13853 * fontset.c: Include "font.h" unconditionally.
13854 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13855 (Fset_fontset_font): Accept a font-spec object.
13856
13857 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13858 PIXEL_SIZE part a wild card.
13859
13860 * dispextern.h (struct glyph_string): Define members clip and
13861 num_clips unconditionally.
13862 (struct face): Define members font_info and extra unconditionally.
13863
13864 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13865 ftfont_info only when HAVE_LIBOTF is defined.
13866
138672008-02-01 Andreas Schwab <schwab@suse.de>
13868
13869 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13870 and end.
13871
138722008-02-01 Jason Rumney <jasonr@gnu.org>
13873
13874 * w32font.c (w32font_driver): Add new fields.
13875
138762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13877
13878 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13879 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13880 (LIBES): Add @M17N_FLT_CFLAGS@.
13881
13882 * composite.c (compose_text): Don't treat the new style
13883 composition specially.
13884
13885 * emacs.c (main): Call syms_of_font unconditionally.
13886
13887 * font.h (FONT_ENTITY_NOT_LOADABLE)
13888 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13889 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13890 (struct font_driver): New member shape.
13891 (font_registry_charsets): Extern it.
13892 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13893 (font_otf_capability, font_drive_otf): Delete their externs.
13894
13895 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13896 (font_charset_alist, font_registry_charsets): Move from xfont.c
13897 and rename.
13898 (font_prop_validate_otf): New function.
13899 (font_property_table): Register it for QCotf.
13900 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13901 (font_drive_otf): Delete.
13902 (font_prepare_composition): New arg F. Adjust for the change of
13903 lispy gstring.
13904 (font_find_for_lface): New arg C.
13905 (font_load_for_face): Adjust for the change of font_find_for_lface.
13906 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13907 lispy gstring.
13908 (Ffont_shape_text): New function.
13909 (Fopen_font): If the font size is not given, use 12-pixel.
13910 (Ffont_at): New arg STRING.
c0943d3d 13911 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
13912 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13913 conditionally.
13914
13915 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13916 fonts of the same font-spec. Change the format of RFONT-DEF.
13917 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13918 Adjust for the change of RFONT-DEF.
13919 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13920
13921 * ftfont.h: New file.
13922
13923 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13924 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13925 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13926 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13927 font_otf_capability and font_drive_otf, set ftfont_shape.
13928 (ftfont_list): Adjust for the change of :otf property value.
13929 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13930 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13931 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13932 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13933 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13934 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13935
13936 * w32term.c (x_draw_composite_glyph_string_foreground):
13937 Adjust for the change of lispy gstring.
13938
13939 * xdisp.c (handle_composition_prop): Adjust for the change of
13940 lispy gstring. Call a function for auto-composition with the
13941 third arg it->window.
13942 (fill_composite_glyph_string): Adjust for the change of lispy string.
13943 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13944
13945 * xfaces.c (set_font_frame_param): Adjust for the change of
13946 font_find_for_lface.
13947
13948 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13949 (xfont_registry_charsets): Likewise. Change caller.
13950 (syms_of_xfont): Don't handle x_font_charset_alist.
13951
13952 * xftfont.c: Include "ftfont.h".
13953 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13954 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13955 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13956 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13957 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13958 Set xftfont_driver.shape to xftfont_shape.
13959
13960 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13961 the change of lispy gstring.
13962
139632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13964
13965 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13966
139672008-02-01 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32font.c (w32font_draw): Fill background manually.
13970
139712008-02-01 Jason Rumney <jasonr@gnu.org>
13972
13973 * font.c (Qfontp): Remove unused symbol.
13974 (QCantialias): New symbol.
13975 (syms_of_font): Define it.
13976 (font_property_table): Set a validator for QCantialias.
13977
13978 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13979 Define if not already.
13980 (QCfamily): Share with xfaces.c.
13981 (Qstandard, Qsubpixel, Qnatural): New symbols.
13982 (syms_of_w32font): Define them. Don't define QCfamily here.
13983 (w32_antialias_type, lispy_antialias_type): New functions.
13984 (w32_enumfont_pattern_entity): New arg requested_font.
13985 Set antialias parameter if non-default was requested.
13986 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13987
139882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13989
13990 * lread.c (read1): Undo the previous change.
13991
139922008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13993
13994 * frame.c (Fdelete_frame): Call font_update_drivers only when
13995 USE_FONT_BACKEND is defined.
13996
139972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13998
13999 * font.h (struct font_bitmap): New member bits_per_pixel.
14000 (struct font_driver): New members start_for_frame and end_for_frame.
14001 (struct font_data_list): New struct.
14002 (font_put_frame_data, font_get_frame_data): Extern them.
14003
14004 * frame.h (struct frame): New member font_data_list.
14005
14006 * font.c (font_update_drivers): Call driver->start_for_frame and
14007 driver->end_for_frame at proper timings.
14008 (font_put_frame_data, font_get_frame_data): New functions.
14009 (Ffont_spec): Add usage in the docstring.
14010
14011 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14012 (Fdelete_frame): Call font_update_drivers.
14013
14014 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14015 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14016 (xftfont_get_xft_draw): New function.
14017 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14018 (xftfont_end_for_frame): New function.
14019 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14020
14021 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14022 Change argument. Cache GCs in the per-frame data.
14023 (struct ftxfont_frame_data): New struct.
14024 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14025 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14026 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14027 (ftxfont_end_for_frame): New function.
14028 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14029
14030 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * xselect.c (Vselection_coding_system)
14035 (Vnext_selection_coding_system): Delete them.
14036 (syms_of_xselect): Don't declare selection-coding-system and
14037 next-selection-coding-system. They are declared in select.el.
14038
140392008-02-01 Jason Rumney <jasonr@gnu.org>
14040
14041 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14042
14043 * w32fns.c: Include imm.h.
14044 (get_composition_string_fn, get_ime_context_fn): New optional
14045 system functions.
14046 (globals_of_w32fns): Load them from imm32.dll.
14047 (ignore_ime_char): New flag.
14048 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14049 WM_IME_ENDCOMPOSITION messages.
14050
14051 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14052 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14053
140542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14055
14056 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14057 (READCHAR_REPORT_MULTIBYTE): New macro.
14058 (readchar): New 2nd arg MULTIBYTE.
14059 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14060 Make symbol's name multibyte according to the multibyteness of the
14061 source.
14062
140632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14064
14065 * xfaces.c (face_for_overlay_string): Call lookup_face with
14066 correct arguments (fix of synching with the trunk).
14067
140682008-02-01 Kenichi Handa <handa@m17n.org>
14069
14070 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14071 (font_prop_validate_non_neg, font_prop_validate_spacing):
14072 Delete argument prop_index.
14073 (font_property_table): Change arguments to validater. Change Callers.
14074 (font_lispy_object): Delete.
14075 (font_at): Use font_find_object instead fo font_lispy_object.
14076
140772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14078
14079 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14080 and file names.
14081
140822008-02-01 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14085 (font_matches_spec): Remove debug output.
14086 (add_font_entity_to_list): Avoid using substituted fonts.
14087
140882008-02-01 Jason Rumney <jasonr@gnu.org>
14089
14090 * doc.c (Fsnarf_documentation):
14091 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14092
140932008-02-01 Miles Bader <miles@gnu.org>
14094
14095 * dispextern.h (struct glyph_row): Only define "clip" field if
14096 HAVE_WINDOW_SYSTEM is defined.
14097
140982008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14099
14100 Fix up multi-tty merge.
14101
14102 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14103 and indentation.
14104
14105 * xfaces.c (free_realized_face, clear_face_gcs):
14106 Include font_done_for_face in the input_blocked section, just in case.
14107
14108 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14109 (get_char_face_and_encoding): Undo last change and remove the *other*
14110 duplicate definition (i.e. keep the one that's better scoped and that
14111 includes code for the font-backend).
14112
14113 * terminal.c (create_terminal): Default keyboard_coding to
14114 `no-conversion' and terminal_coding to `undecided'.
14115
14116 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14117
14118 * fontset.c (free_realized_fontsets): Check that the table entry does
14119 contain a fontset before trying to compare it to `base'.
14120
14121 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14122 syms_of_charset, and syms_of_coding earlier because init_window_once
14123 now needs Vcoding_system_hash_table to be setup.
14124
14125 * coding.h (default_buffer_file_coding): Remove.
14126
14127 * coding.c (default_buffer_file_coding): Remove.
14128 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14129 than ->symbol, and use the terminal-local coding system.
14130 (syms_of_coding): Don't setup the coding-systems that are not
14131 terminal-local.
14132 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14133
14134 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14135 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14136
14137 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14138 in chartab.c and were re-added here by mistake.
14139 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14140
14141 * doc.c (Fsnarf_documentation):
14142 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14143 src to etc.
14144
14145 * ChangeLog.10: Add mistakenly removed entry.
14146
141472008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14148
14149 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14150
141512008-02-01 Miles Bader <miles@gnu.org>
14152
14153 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14154 Add extra args to FACE_FOR_CHAR.
14155
141562008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14159 in sequence.
14160
14161 * chartab.c (map_sub_char_table, map_char_table): If the range
14162 contains just one character, call the function with that character
14163 even if the depth is not 3.
14164
141652008-02-01 Jason Rumney <jasonr@gnu.org>
14166
14167 * w32font.c (w32font_text_extents): Calculate metrics for the
14168 whole string.
14169
141702008-02-01 Jason Rumney <jasonr@gnu.org>
14171
14172 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14173
141742008-02-01 Jason Rumney <jasonr@gnu.org>
14175
14176 * w32term.c (x_set_glyph_string_clipping): Use
14177 get_glyph_string_clip_rects.
14178 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14179 Adjust for the change of struct glyph_string.
14180
14181 * w32font.c (w32font_draw): Do clipping here.
14182
141832008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * xftfont.c (xftfont_draw): Adjust for the change of struct
14186 glyph_string.
14187
14188 * xterm.c (x_set_glyph_string_clipping): Use
14189 get_glyph_string_clip_rects.
14190 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14191 Adjust for the change of struct glyph_string.
14192
14193 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14194 the resulting clip(s}.
14195 (expose_overlaps): Add arg r. Change callers. Set it to
14196 row->clip temporarily.
14197 (expose_window): Redraw rows overlapping the exposed area.
14198
14199 * dispextern.h (struct glyph_row): New member clip.
14200 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14201 clip_height, new member clip, and num_clips.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * data.c (Fchar_or_string_p): Fix docstring.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14210 create a temporary XftDraw object.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * font.c (Ffontp): Fix docstring.
14215
14216 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14217 strong evidence of ISO-2022.
14218
142192008-02-01 Kenichi Handa <handa@m17n.org>
14220
14221 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14222 SYNTAX_ENTRY_FOLLOW_PARENT.
14223
142242008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14225
14226 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14227 its type.
14228 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14229 Update to the new type of weak_hash_tables and next_weak.
14230
14231 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14232 a plain C pointer to Lisp_Hash_Table.
14233
14234 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14235 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14236 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14237 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14238 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14239 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14240 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14241 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14242 (GC_EQ): Remove since they've been identical to their non-GC_
14243 alter-egos ever since the markbit was eradicated.
14244
14245 * alloc.c:
14246 * buffer.c:
14247 * buffer.h:
14248 * data.c:
14249 * fileio.c:
14250 * filelock.c:
14251 * fns.c:
14252 * frame.h:
14253 * lisp.h:
14254 * macterm.c:
14255 * print.c:
14256 * process.c:
14257 * w32fns.c:
14258 * w32menu.c:
14259 * w32term.c:
14260 * xfns.c:
14261 * xmenu.c:
14262 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14263
142642008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * chartab.c (map_sub_char_table): Make it work for the top-level
14267 char-table. Fix handling of parent char-table.
14268 (map_char_table): Adjust for the above change.
14269
142702008-02-01 Jason Rumney <jasonr@gnu.org>
14271
14272 * w32font.c (Qgdi): Rename from Qw32.
14273
142742008-02-01 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32bdf.c (get_quoted_string): Make function static.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14281 bigger ascent and descent than those of the font, use them as
14282 font's ascent and descent.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * Makefile.in (${lispsource}international/charprop.el): Move this
14287 target within "#ifdef HAVE_UNIDATA" and "#endif".
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14292 (shortlisp): Add ../lisp/language/tai-viet.el.
14293
142942008-02-01 Ulrich Mueller <ulm@gentoo.org>
14295
14296 * Makefile.in (${lispsource}international/charprop.el): Depend on
14297 temacs${EXEEXT}.
14298
142992008-02-01 Jason Rumney <jasonr@gnu.org>
14300
14301 * w32font.c (w32font_close): Delete the GDI font object.
14302
14303 * w32menu.c: Include character.h.
14304
14305 * w32proc.c: Likewise.
14306
14307 * w32select.c: Likewise.
14308
14309 * makefile.w32-in (w32proc.o): Depend on character.h.
14310
143112008-02-01 Jason Rumney <jasonr@gnu.org>
14312
14313 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14314
14315 * w32menu.c (syms_of_w32menu): Likewise.
14316
14317 * w32proc.c (syms_of_ntproc): Likewise.
14318
14319 * w32select.c (syms_of_w32select): Likewise.
14320
14321 * w32term.c (syms_of_w32term): Likewise.
14322
143232008-02-01 Jason Rumney <jasonr@gnu.org>
14324
14325 * w32font.c (w32font_draw): Delete brush after using it.
14326
143272008-02-01 Jason Rumney <jasonr@gnu.org>
14328
14329 * w32font.c (w32font_open): Don't set font_idx.
14330 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14331 to font settings.
14332 (w32font_draw): Fill background explicitly.
14333
143342008-02-01 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32term.c (w32_initialize): Don't call w32font_initialize.
14337
14338 * w32font.c (w32font_info): Remove subranges.
14339 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14340 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14341 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14342 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14343 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14344 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14345 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14346 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14347 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14348 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14349 New symbols.
14350 (font_callback_data): New struct.
14351 (w32font_list, w32font_match): Use it.
14352 (w32font_open): Don't populate subranges.
14353 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14354 (w32font_encode_char): Always return unicode code-point as-is.
14355 (w32font_text_extents): Supply a transformation matrix to
14356 GetGlyphOutline. Never look up by glyph index. Avoid looping
14357 twice. Use unicode version of GetTexExtentPoint32 instead of
14358 glyph index version.
14359 (set_fonts_frame): Remove.
14360 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14361 set frame parameter. Use backward compatible fake foundries.
14362 Save generic family in extra slot under QCfamily. Make width slot
14363 constant. Save QCspacing value. Save list of scripts instead of
14364 binary subranges.
14365 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14366 (add_font_entity_to_list): Use font_callback_data struct. Filter
14367 unwanted fonts.
14368 (add_one_font_entity_to_list): Use font_callback_data struct.
14369 (w32_registry): Default to iso10646_1.
14370 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14371 string font registries. Don't fill in font name if it is a generic
14372 family name, fill family instead. Use spacing, family and script
14373 extra info to fill pitch, family and charset fields.
14374 (list_all_matching_fonts): Use font_callback_data struct.
14375 (unicode_range_for_char): Remove.
14376 (font_supported_scripts): New function.
14377 (w32font_initialize): Remove.
14378 (syms_of_w32font): Update which symbols are defined.
14379
143802008-02-01 Jason Rumney <jasonr@gnu.org>
14381
14382 * font.c (font_pixel_size): Reverse assq_no_quit args.
14383
14384 * w32term.h (FONT_WIDTH): Report max width, not average.
14385 (FONT_MAX_WIDTH): Remove.
14386 (FONT_AVG_WIDTH): New macro.
14387
14388 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14389 redefinition of FONT_WIDTH.
14390
14391 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14392 (w32_cache_char_metrics): Use FONT_WIDTH.
14393
14394 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14395
143962008-02-01 Jason Rumney <jasonr@gnu.org>
14397
14398 * w32font.c (w32font_open): Make lfHeight negative.
14399
14400 * w32fns.c (x_default_font_parameter): Use new style font name.
14401 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14402
144032008-02-01 Jason Rumney <jasonr@gnu.org>
14404
14405 * w32font.c (QCsubranges): New symbol.
14406 (w32font_open, w32font_has_char): Get subranges from subproperty
14407 of extra.
14408 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14409 (syms_of_w32font): Define :subranges symbol.
14410
14411 * font.c (font_put_extra): Expose externally.
14412
14413 * font.h (font_put_extra): Move declaration from font.c.
14414
14415 * font.c (Ffont_get): Use font driver to determine otf capability.
14416 (adjust_anchor): Check if driver defines anchor_point before using.
14417
14418 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14419 (w32font_draw): Use options.
14420 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14421 Fix detection of truetype fonts.
14422 (registry_to_w32_charset): Handle charsets other than iso8859-1
14423 expressed as lisp symbols.
14424 (w32_registry): Express charset as lisp symbol.
14425 (fill_in_logfont): Reverse pixel and point height logic.
14426 Don't set width here. Set quality to default.
14427
14428 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14429 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14430
14431 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14432 Remove redundant loop and allocation.
14433
14434 * makefile.w32-in (font.o, w32font.o): New objects.
14435 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14436 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14437
14438 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14439 STORE_XCHARB a valid l-value.
14440
14441 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14442 calculations for non-Truetype fonts.
14443 (x_draw_glyph_string): Sync with xterm.c.
14444 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14445 Remove redundant code.
14446 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14447
14448 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14449 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14450
14451 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14452 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14453
14454 * w32font.c: New file for w32 font backend.
14455
144562008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * term.c: Don't include "buffer.h" twice.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * character.c (Funibyte_string): New function.
14463 (syms_of_character): Defsubr it.
14464
144652008-02-01 Jason Rumney <jasonr@gnu.org>
14466
14467 * w32term.c [USE_FONT_BACKEND]:
14468 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14469 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14470 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14471 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14472 (x_free_frame_resources): Sync with xterm.c.
14473
144742008-02-01 Andreas Schwab <schwab@suse.de>
14475
14476 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14477 char-table size.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14486 font_otf_gpos, add font_drive_otf.
14487
14488 * fontset.c (fontset_find_font): Pay attention to font size
14489 specified for a font.
14490 (reorder_font_vector): Check contents of font_def.
14491
14492 * font.c (struct otf_list): Delete it.
14493 (otf_list): Make it a lisp variable.
14494 (otf_open): Use lispy otf_list.
14495 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14496 (check_otf_features): New function.
14497 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14498 New functions.
14499 (font_drive_otf): New function merging font_otf_gsub and
14500 font_otf_gpos.
14501 (font_open_for_lface): New arg spec. Change argument order.
14502 (font_load_for_face): Adjust for the change of font_open_for_lface.
14503 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14504 Ffont_otf_gpos.
14505 (syms_of_font): Staticpro otf_list. Delete defsubr of
14506 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14507
14508 * xfaces.c (set_font_frame_param): Adjust for the change of
14509 font_open_for_lface.
14510
14511 * font.h (font_open_for_lface): Adjust prototype.
14512 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14513 member otf_drive.
14514 (font_otf_gsub, font_otf_gpos): Delete externs.
14515 (font_drive_otf): Extern it.
14516
145172008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * font.c (font_at): If the window W is not on a window system,
14520 return Qnil.
14521
14522 * coding.c (produce_chars, encode_coding): Don't call
14523 insert_from_gap if no characters to produce.
14524
145252008-02-01 Kenichi Handa <handa@m17n.org>
14526
14527 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14528 Fclear_face_cache.
14529
14530 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14531
145322008-02-01 Miles Bader <miles@gnu.org>
14533
14534 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14535 Parse "--disable-font-backend" option.
14536 (standard_args): Add "--disable-font-backend" option.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * fontset.c (fontset_find_font): New function.
14541 (fontset_font): Use fontset_find_font.
14542 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14543 Register the specified font for all Latin characters.
14544 (new_fontset_from_font): Register the specified font for all Latin
14545 characters.
14546 (dump_fontset): For a realized fontset, include the base fontset
14547 name in the returned vector.
14548
145492008-02-01 Kenichi Handa <handa@m17n.org>
14550
14551 * character.h (CHAR_STRING): Cast C to unsigned on calling
14552 char_string.
14553
14554 * character.c (char_string): Type of arg C changed to unsigned.
14555 Signal an error if C is an invalid character code.
14556
14557 * editfns.c (general_insert_function, Fchar_to_string):
14558 Use CHARACTERP, not INTEGERP.
14559
145602008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14563 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14564
14565 * regex.c (analyse_first): Fix for multibyte characters in "case
14566 charset:" and "case categoryspec:".
14567
145682008-02-01 Andreas Schwab <schwab@suse.de>
14569
14570 * Makefile.in (LIBES): Move standard libraries to the end.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14575 nonzero, don't shrink the buffer nextb.
14576
14577 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14578
14579 * coding.c (coding_alloc_by_making_gap): New arg offset.
14580 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14581 offset.
14582 (decode_coding_iso_2022): Update coding->safe_charsets.
14583 (decode_coding_gap): Temporarily set
14584 current_buffer->text->inhibit_shrinking to 1.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14589 indexing into elements of s->cmp and s->char2b.
14590
145912008-02-01 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14598 target_multibyte instead of multibyte.
14599 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14600 (bcmp_translate): Change the argument name from multibyte to
14601 target_multibyte.
14602
146032008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 These changes are to compile a regexp into a pattern that can be
14606 used both for multibyte and unibyte targets.
14607
14608 * Makefile.in (search.o): Depend on charset.h.
14609
14610 * character.c (multibyte_char_to_unibyte_safe): New function.
14611
14612 * search.c: Include "charset.h".
14613 (compile_pattern_1): Delete argument multibyte. Don't set
14614 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14615 (compile_pattern): Don't compare cp->buf.target_multibyte.
14616 Compare cp->buf.charset_unibyte.
14617 (compile_pattern): Set cp->buf.target_multibyte.
14618
14619 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14620
14621 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14622
14623 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14624 multibyte. Change callers.
14625 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14626 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14627 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14628 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14629 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14630 (regex_compile): Make the compiled pattern usable both for
14631 multibyte and unibyte targets.
14632 (analyse_first): Make the fastmap usable both for multibyte and
14633 unibyte targets.
14634 (TRANSLATE_VIA_MULTIBYTE): Delete.
14635 (re_match_2_internal): Pay attention to the case that the
14636 multibyteness of bufp and target may be different.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14641 empty box occupy at least one column width.
14642
146432008-02-01 Miles Bader <miles@gnu.org>
14644
14645 * Makefile.in: Remove redundant HAVE_XFT clause.
14646
146472008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14654 being nil.
14655
146562008-02-01 Kenichi Handa <handa@m17n.org>
14657
14658 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14659
146602008-02-01 Kenichi Handa <handa@m17n.org>
14661
14662 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14663
146642008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * search.c (simple_search): Fix previous change.
14667
146682008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * xftfont.c (ftfont_font_format): Extern declaration.
14671
14672 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14673
14674 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14675 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14676
14677 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14678 (ftfont_font_format): Fix previous change.
14679
14680 * font.h (Ffont_xlfd_name): EXFUN it.
14681
14682 * font.c (font_parse_xlfd): Fix the array size of `f'.
14683 (register_font_driver): Use EQ to compare driver->type.
14684
14685 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14686 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14687 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14692 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xfont.c (xfont_open): Set font->format.
14697
14698 * xftfont.c (xftfont_open): Set font->format.
14699
14700 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14701 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14702 (ftfont_open): Set font->format.
14703 (ftfont_font_format): New function.
14704
14705 * font.h (struct font): New member format.
14706
14707 * font.c (Qopentype): New variable.
14708 (syms_of_font): Defsym it.
14709 (Fquery_font): Change the format of the last element of the return
14710 value.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14715 last resort.
14716
147172008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * coding.c (detect_coding_charset): Fix detection of multi-byte
14720 charset.
14721
147222008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14723
14724 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * xdisp.c (get_next_display_element): Set it->face_id for the
14729 first component of a composition.
14730 (x_produce_glyphs): Check if the font is changed or not for composition.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * fontset.c (Qlatin): New variable.
14735 (syms_of_fontset): Define it as a lisp symbol.
14736 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14737
147382008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * font.c (font_unparse_fcname): Pay attention to the case that
14741 some of font property is a null string.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * term.c: Include "composite.h".
14746 (encode_terminal_code): Output all components of composition.
14747 Check the size of encode_terminal_src.
14748 (produce_glyphs): For composition, call produce_composite_glyph.
14749 (append_composite_glyph, produce_composite_glyph): New functions.
14750
14751 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14752 is not found, get font_info from the current ascii face.
14753
147542008-02-01 Kenichi Handa <handa@m17n.org>
14755
14756 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14757 buffer-file-name to Qnil before calling insert_from_buffer.
14758
14759 * font.c (font_unparse_fcname): Pay attention to the case that
14760 foundry is a null string.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14765
14766 * font.c (Qunicode_sip): New variable.
14767 (syms_of_font): Declare it as a Lisp symbol.
14768
14769 * font.h (Qunicode_sip): Extern it.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * composite.c (get_composition_id): Pay attention to TAB component.
14774
14775 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14776 TAB. Adjust for the change of s->char2b which always points to
14777 the first element of allocated memory.
14778
14779 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14780
14781 * xdisp.c (handle_composition_prop): Set it->c to the first
14782 non-TAB component.
14783 (fill_composite_glyph_string): Change argument.
14784 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14785 (x_produce_glyphs): Fix handling of left/right padding.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * coding.c (detect_coding_system): Fix for handling off
14790 inhibit_iso_escape_detection. Fix for the case that no coding
14791 system is defined for a specific coding category.
14792
147932008-02-01 Kenichi Handa <handa@m17n.org>
14794
14795 * font.c (font_matching_entity): Delete unused local var.
14796
14797 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14798 opening a font.
14799
14800 * fileio.c (Finsert_file_contents): On recovering a file, assume
14801 Unix-like eol.
14802 (choose_write_coding_system): On auto-saving a file, force
14803 Unix-like eol.
14804
14805 * coding.c (setup_coding_system): Fix setting of
14806 coding->common_flags based on eol_type.
14807 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14808 inherit from it.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * alloc.c (NSTATICS): Increas to 0x600.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14817 (ftfont_list): Don't check :name property.
14818 (ftfont_match): New function.
14819 (ftfont_pattern_entity): If the pattern doesn't contain
14820 FC_SPACING, don't assume FC_MONO.
14821
14822 * font.h (struct font_driver): New member `match'.
14823 (font_update_drivers): Adjust prototype.
14824
14825 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14826 property of FONT.
14827 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14828 them unconditionally.
14829 (font_matching_entity): New function.
14830 (font_open_by_name): Try font_matching_entity if exact match is
14831 not found.
14832 (font_update_drivers): Delete the arg FONT. Return a list of
14833 actually used backends. Don't free faces, font caches here.
14834 Don't store data in frame parameters. Don't call x_set_font.
14835 (Ffont_spec): Store :name property as is.
14836 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14837 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14838 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14839 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14840 Call font->driver->otf_gsub instead of font_otf_gsub.
14841
14842 * frame.c (x_set_font_backend): Do more works that were done in
14843 font_update_drivers before.
14844
14845 * xfont.c (xfont_match): New function.
14846 (xfont_driver): Set xfont_driver.match to xfont_match.
14847 (xfont_draw): Set font in GC if necessary.
14848
14849 * ftxfont.c (ftxfont_match): New function.
14850 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14851
14852 * xftfont.c (xftfont_match): New function.
14853 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * font.h (struct font): New member scalable.
14858 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14859 (font_otf_gsub): Adjust prototype.
14860
14861 * font.c (font_otf_capability): Fix handling of the default langsys.
14862 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14863 Check the contents of SPEC.
14864 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14865 (check_gstring): New function.
14866 (REPLACEMENT_CHARACTER): New macro.
14867 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14868 glyph codes of GSTRING.
14869 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14870 (font_prepare_composition): Set cmp->glyph_len.
14871 (font_open_entity): Set font->scalable.
14872 (Ffont_get): Handle :otf property.
14873 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14874 functions.
14875 (Fquery_font): Use font->font.full_name.
14876 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14877 Sfont_otf_alternates.
14878
14879 * ftfont.c (ftfont_open): Set font->font.full_name and
14880 font->font.name properly. Fix calculation of font->font.height
14881 and font->min_width.
14882
14883 * ftxfont.c (ftxfont_create_gcs): New function.
14884 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14885 (ftxfont_draw_backgrond): Fix filling region.
14886 (ftxfont_default_fid): New function.
14887 (ftxfont_open): Set xfont->fid to the return value of
14888 ftxfont_default_fid.
14889 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14890 (ftxfont_done_face): Free only GCs that are created by
14891 ftxfont_create_gcs.
14892 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14893
14894 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14895 Clip to src->width, etc (not src->clip_XXX).
14896
14897 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14898 FontBackend frame parameter.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * font.h (struct font_driver_list): New member `on'.
14903 (Fclear_font_cache): EXFUN it.
14904 (font_update_drivers): Extern it.
14905
14906 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14907 (font_list_entities): Check driver_list->on.
c0943d3d 14908 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
14909 (font_update_drivers): New function.
14910 (Fclear_font_cache): Check driver_list->on.
14911
14912 * frame.h (Qfont_backend): Extern it.
14913 (x_set_font_backend): Extern it.
14914
14915 * frame.c (Qfont_backend): New variable.
14916 (frame_parms): New element for font-backend.
14917 (x_set_font_backend): New function.
14918
14919 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14920 FontBackend frame parameter.
14921 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14922 x_set_font_backend.
14923
14924 * xfont.c (xfont_list): Don't try listing by :name property if the
14925 name is not for XLFD.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14930 (LGLYPH_SET_TO): New macros.
14931 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14932 element of G is vector or not.
14933 (font_at): Extern it.
14934
14935 * font.c: Include window.h.
14936 (font_lispy_object): New function.
14937 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14938 end of valid glyph.
14939 (font_close_object): Fix getting (struct font *).
14940 (font_at): New function.
14941 (Ffont_get): If FONT is a font-object, get entity from it.
14942 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14943 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14944 range check.
14945 (Ffont_at): New function.
14946 (syms_of_font): Defsubr Sfont_at.
14947
14948 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14949 before the entry for Qcomposition.
14950 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14951 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14952 the font in gstring.
14953 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14954 LGLYPH_FORM (g) to detect the end of valid glyph.
14955 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14956 we are composing with gstring.
14957
14958 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14959 Check if adjustment is vector or not.
14960
14961 * Makefile.in (font.o): Make it depends on window.h.
14962
149632008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14966 adjustment is vector or not.
14967
149682008-02-01 Miles Bader <miles@gnu.org>
14969
14970 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14971
149722008-02-01 Kenichi Handa <handa@m17n.org>
14973
14974 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14975 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14976 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14977
14978 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14979 (DEVICE_DELTA): Fix typo.
14980 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14981 LGLYPH format.
14982
14983 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14984 the change of LGLYPH format.
14985
149862008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * ftfont.c (ftfont_list): Fix typo.
14989 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14990
149912008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14992
14993 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14994
14995 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14996 xftface_info is non-NULL.
14997
149982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14999
15000 * ftfont.c (ftfont_list): Move misplaced #endif.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * ftfont.c (ftfont_list): Pay attention to the case that
15005 FC_CAPABILITY is not defined.
15006
150072008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * xftfont.c (xftfont_open): Set charset related members to -1.
15010
15011 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15012 QCname.
15013 (ftfont_open): Set charset related members to -1.
15014
15015 * fontset.c (Votf_script_alist): New variable.
15016 (syms_of_fontset): Initialize it.
15017 (fontset_font): Delete unused variable.
15018
15019 * fontset.h (Votf_script_alist): Extern it.
15020
15021 * font.c (font_find_for_lface): Optimize code.
15022
15023 * font.h (font_close_object, font_merge_old_spec): Extern them.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15028 (syms_of_font): Initialize them.
15029 (font_pixel_size): Allow float value in dpi.
15030 (font_prop_validate_type): Delete.
15031 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15032 Change caller.
15033 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15034 (font_prop_validate_extra): Delete.
15035 (font_prop_validate_spacing): New function.
15036 (font_property_table): Add elements for all known properties.
15037 (get_font_prop_index): Rename from check_font_prop_name. New
15038 argument FROM. Change caller.
15039 (font_prop_validate): Validate all known properties.
15040 (font_put_extra): Delete argument force. Change caller.
15041 (font_expand_wildcards): Make it static. Fix the way of shrinking
15042 the possible range.
15043 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15044 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15045 Change caller.
15046 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15047 (font_parse_fcname): Delete argument merge. Fix parsing of point
15048 size. Don't validate properties values here. Change caller.
15049 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15050 (font_open_by_name): Delete unused variable.
15051 (Ffont_spec): Likewise. Validate property values.
15052 (Ffont_match_p): New function.
15053
15054 * font.h (QCscalable): Extern it.
15055 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15056
15057 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15058
15059 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15060 (xfont_list_pattern): New function.
15061 (xfont_list): Use xfont_list_pattern.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * font.h (Flist_fonts): EXFUN it.
15066
150672008-02-01 Jason Rumney <jasonr@gnu.org>
15068
15069 * w32term.c (w32_initialize): Add back smoothing_type and
15070 smoothing_enabled definitions.
15071
150722008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15075 s->face->font on determining underline position.
15076
150772008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15080 (font_has_char): Accept font-object too.
15081 (font_find_for_lface): Try at first with a size specified in face.
15082
150832008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15086 font_open_by_name.
15087
150882008-02-01 Kenichi Handa <handa@m17n.org>
15089
15090 * font.h (QCspacing, QCdpi): Extern them.
15091 (enum font_spacing): New enum.
15092 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15093
15094 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15095 (QCspacing, QCdpi): New variables.
15096 (syms_of_font): Initialize them.
15097 (font_pixel_size): New function.
15098 (font_put_extra): New function.
15099 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15100 in FONT_EXTRA.
15101 (font_parse_fcname): Handle enumerated values (e.g. bold).
15102 Fix handling font size. Add QCname property that contains only
15103 unknown properties.
15104 (font_score): Change argument. Change caller. Pay attention to
15105 FONT_PIXEL_SIZE_QUANTUM.
15106 (font_sort_entites, font_list_entities, font_find_for_lface)
15107 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15108 (Ffont_spec): Add QCname property that contains only unknown properties.
15109
15110 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15111 include weight in listing pattern, instead check weight of each
15112 listed font. Don't include scalable in pattern. Pay attention to
15113 FONT_PIXEL_SIZE_QUANTUM.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * font.c (font_parse_fcname): Fix parsing of point-size.
15118 (font_unparse_fcname): Produce symbolic names for style properties.
15119 (font_list_entities): Handle float size correctly.
15120 (font_open_by_name): Prefer `normal' property values if the name
15121 doesn't specify them.
15122
15123 * fontset.c (Finternal_char_font): Use font_get_name, not
15124 Ffont_xlfd_name.
15125
15126 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15127 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15128 pattern. Don't force scalable.
15129
15130 * xftfont.c (xftfont_open): For generating a name, start from
15131 96-byte buffer.
15132
151332008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15134
15135 * frame.h (x_new_fontset2): Fix prototype.
15136
151372008-02-01 Kenichi Handa <handa@m17n.org>
15138
15139 * font.h (struct font_driver): Delete member parse_name.
15140 (font_match_p, font_get_spec, font_parse_fcname)
15141 (font_unparse_fcname): Extern them.
15142 (font_get_name): Adjust prototype.
15143
15144 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15145 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15146 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15147 unnecessary checks for weight, slant, and swidth.
15148 (font_parse_fcname): New function.
15149 (font_unparse_fcname): New function.
15150 (font_parse_name): New function.
15151 (font_match_p): New function.
15152 (font_get_name): Change return value to Lisp string.
15153 (font_get_spec): New function.
15154 (Qunspecified, Qignore_defface): Don't extern them.
15155 (font_find_for_lface): Assume that LFACE is fully specified.
15156 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15157 object, use it for FACE.
15158 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15159 driver->parse_name.
15160 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15161
15162 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15163 prototype.
15164
15165 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15166 argument F. Don't call Fnew_fontset. Instead, directly call
15167 make_fontset.
15168
15169 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15170
15171 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15172 of x_new_fontset2.
15173
15174 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15175 (Qsans__serif): New variables.
15176 (ftfont_generic_family_list): New variable.
15177 (syms_of_ftfont): Initialize the above variables.
15178 (ftfont_pattern_entity): Delete argument NAME.
15179 (ftfont_list_generic_family): New function.
15180 (ftfont_parse_name): Delete this function.
15181 (ftfont_list): Try generic family only when FcFontList found no font.
15182 (ftfont_list_family): Fix args to FcObjectSetBuild.
15183
15184 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15185 object in attrs[LFACE_FONT_INDEX].
15186 (set_lface_from_font_name): Cancel all changes for font-backend.
15187 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15188 function.
15189 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15190 font object in QCfont attribute.
15191 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15192 (realize_default_face) [USE_FONT_BACKEND]: Call
15193 set_lface_from_font_and_fontset.
15194
15195 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15196 "fixed", and signal error here if no suitable font was found.
15197
15198 * xfont.c (xfont_parse_name): Delete this function.
15199
15200 * xftfont.c (xftfont_open): Change coding style of error
15201 handling. Generate fontconfig's fontname pattern.
15202
15203 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15204 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15205
15206 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15207 Both args FONTSET and FONT_OBJECT must be existing ones.
15208
152092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15210
15211 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15216
15217 * font.h (struct font): Fix typo.
15218
15219 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15220 XLFD_XXX_INDEX.
15221 (enum xlfd_field_mask): New enum.
15222 (intern_font_field): Changed argument. Change caller. If digits
15223 are followed by non-digits, return a symbol.
15224 (font_expand_wildcards): New function.
15225 (font_parse_xlfd): Fix wildcard handling.
15226 (Ffont_spec): If :name is specified, reflect the info in the other
15227 properties.
15228
15229 * ftfont.c (ftfont_pattern_entity): Fix typo.
15230 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15231 locale.
15232
152332008-02-01 Kenichi Handa <handa@m17n.org>
15234
15235 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15236
15237 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15238 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15239 registry doesn't specify encoding part.
15240 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15241 (font_open_by_name): At first try parsing the name.
15242 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15243 as Lisp symbols.
15244
15245 * fontset.c (reorder_font_vector): Pay attention to the case that
15246 the 3rd element of font_def is nil.
15247 (fontset_font): For the default fontset, append one more fontset
15248 elements for a script-based font specification. Don't add script
15249 attribute on finding a font.
15250 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15251 font name.
15252 (fontset_ascii_font): If a font can't be opened, return nil.
15253
15254 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15255 (ftfont_pattern_entity): New function.
15256 (ftfont_get_cache): Assume that freetype_font_cache is already
15257 initialized.
15258 (ftfont_list): Handle the case that a file is specified in font
15259 name. Use ftfont_pattern_entity to generate entities.
15260 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15261 (syms_of_ftfont): Initialize freetype_font_cache.
15262
15263 * xftfont.c (xftfont_open): Make the font name fontconfig's
15264 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15265 (xftfont_close): Free font->font.name if not NULL.
15266
15267 * xfont.c (xfont_list): If script is specified for a font, return
15268 null_vector.
15269 (xfont_list_family): Declare argument type.
15270
15271 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15272 name, set LFACE_FONT (lface) to nil.
15273
15274 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15275 return Qnil.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15280 (standard_args): Add "-enable-font-backend".
15281
152822008-02-01 Kenichi Handa <handa@m17n.org>
15283
15284 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15285 (struct xftdraw_list, xftdraw_list): Delete them.
15286 (register_xftdraw, check_xftdraw): Delete them.
15287 (xftfont_prepare_face): Don't call register_xftdraw.
15288 (xftfont_done_face): Don't call check_xftdraw.
15289 (xftfont_draw): Get background color only when with_background is
15290 nonzero.
15291
15292 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15293
152942008-02-01 Kenichi Handa <handa@m17n.org>
15295
15296 These changes are for the new font handling codes.
15297
15298 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15299 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15300 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15301 (FONTSRC, FONTOBJ): New variables.
15302 (obj): Add $(FONTOBJ).
15303 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15304 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15305 @LIBOTF_LIBS@.
15306 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15307 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15308
15309 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15310
15311 * character.h (Vscript_representative_chars): Extern it.
15312
15313 * character.c (Vscript_representative_chars): New variable.
15314 (syms_of_character): Declare it as a Lisp variable.
15315
15316 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15317 enable_font_backend is nonzero, accept the composition method
15318 COMPOSITION_WITH_GLYPH_STRING.
15319
15320 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15321 enumeration COMPOSITION_WITH_GLYPH_STRING.
15322
15323 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15324 members clip_x, clip_y, clip_width, and clip_height.
15325 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15326
15327 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15328 --enable-font-backend. Call syms_of_font.
15329
15330 * fns.c (assoc_no_quit): New function.
15331
15332 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15333 (face_for_font, new_fontset_from_font)
15334 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15335
15336 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15337 (fontset_font, fontset_ascii, face_for_char)
15338 (make_fontset_for_ascii_face, Ffont_info)
15339 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15340 is nonzero, use font-backend mechanism.
15341 (find_font_encoding): Make it non-static.
15342 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15343 New functions.
15344
15345 * frame.h (struct frame): New members resx and resy.
15346 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15347 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15348
15349 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15350 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15351
15352 * lisp.h (assoc_no_quit): Extern it.
15353
15354 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15355 Through out the file, use FONT_INFO_FROM_FACE instead of
15356 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15357 rif->per_char_metric.
15358 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15359 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15360 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15361 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15362 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15363 nonzero, use font-backend mechanism.
15364 (get_per_char_metric): New function.
15365
15366 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15367 (set_lface_from_font_name)
15368 (set_font_frame_param, free_realized_face)
15369 (prepare_face_for_display, clear_face_gcs)
15370 (Finternal_set_font_selection_order, realize_x_face)
15371 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15372 font-backend mechanism.
15373 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15374 (load_face_font) [USE_FONT_BACKEND]: Abort.
15375 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15376 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15377
15378 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15379 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15380 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15381 nonzero, register all available font drivers. Call
15382 x_default_font_parameter for deciding a font.
15383 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15384
15385 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15386 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15387 (x_set_glyph_string_clipping_exactly)
15388 (x_compute_glyph_string_overhangs)
15389 (x_draw_glyph_string_foreground)
15390 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15391 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15392 enable_font_backend is nonzero, use font-backend mechanism.
15393 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15398 system_eol_type.
15399 (syms_of_coding): Initialize system_eol_type.
15400
15401 * process.c (Fset_process_coding_system): Inherit system's eol
15402 format if necessary.
15403
154042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15405
15406 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15407
154082008-02-01 Kenichi Handa <handa@m17n.org>
15409
15410 * coding.c (decode_eol): Pay attention to buffer relocation in
15411 del_range_2.
15412 (decode_coding): Call decode_eol before restoring undo_list.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * charset.c (Fdefine_charset_internal): Fix setting of
15417 emacs_mule_bytes.
15418
154192008-02-01 Kenichi Handa <handa@m17n.org>
15420
15421 * keyboard.c (read_char): Check if C is a character or not before
15422 looking up Vkeyboard_translate_table.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15427 condition to terminate the loop.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * coding.c (produce_composition): Compare charbuf[i] instead of
15432 args[i] against 0.
15433 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15438 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15439 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15440 detect_coding.
15441 (emacs_mule_char): Handle old style (Emacs 20) component character
15442 of a composition.
15443 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15444 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15445 composition rule.
15446 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * coding.c (encode_coding_ccl): Allocate destination dynamically
15451 when necessary.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15456 the loop. When quitted, show a proper error message.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15461 src->clip_head and src->clip_tail temporarily instead of src->hl.
15462
15463 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15464 character sequence.
15465 (Fccl_execute_on_string): Use ASET, not XSET.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * coding.c (decode_coding): Fix the condition of terminating the
15474 decoding loop.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * data.c (Faset): On setting a character bigger than 255 in a
15479 unibyte string, signal an error instead of make the string multibyte.
15480
154812008-02-01 Kenichi Handa <handa@m17n.org>
15482
15483 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15484 made by a mapping table.
15485
154862008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15489 not.
15490 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15491 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15492
15493 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15494 s->face is NULL or not.
15495
154962008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15499 (x_draw_glyph_string): Fix drawing of right_overhang and
15500 left_overhang around/on cursor.
15501
15502 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15503
155042008-02-01 Kenichi Handa <handa@m17n.org>
15505
15506 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * coding.c (Fdefine_coding_system_internal)
15511 (Fdefine_coding_system_alias): Avoid a duplicated element in
15512 Vcoding_system_alist.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15517
15518 * coding.c (Qcoding_system_define_form): New variable.
15519 (syms_of_coding): Intern and staticpro it.
15520 (Fcoding_system_p): Check Qcoding_system_define_form.
15521 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15522
15523 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15524 Fcoding_system_p.
15525 (CHECK_CODING_SYSTEM): If ID is not available, call
15526 Fcheck_coding_system.
15527 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15528 Try also Fcheck_coding_system.
15529
155302008-02-01 Kenichi Handa <handa@m17n.org>
15531
15532 * coding.c (code_conversion_restore): GCPRO arg.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * character.c (lisp_string_width): Check multibyteness of STRING.
15537
155382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15539
15540 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15541 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15542 (decode_mac_font_name): Use decode_coding_c_string instead of
15543 decode_coding.
15544 (x_load_font): Initialize fontp->fontset to -1. Set
15545 fontp->encoding_type.
15546
155472008-02-01 Kenichi Handa <handa@m17n.org>
15548
15549 * search.c (search_buffer): Give up BM search on case-fold-search
15550 if one of a target character has a case-equivalence of different
15551 byte length even if that target charcter is an ASCII.
15552 (simple_search): Fix calculation of byte length of matched text.
15553 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * coding.c (decode_coding): Fix handling of invalid bytes.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15562 Unicode characters.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * coding.c (encode_coding_object): If a pre-write-conversion
15567 function makes a new buffer, kill it.
15568
155692008-02-01 Kenichi Handa <handa@m17n.org>
15570
15571 * coding.c (QCascii_compatible_p): New variable.
15572 (syms_of_coding): Initialize it.
15573 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15574 calling string_char.
15575 (record_conversion_result): Add `default:' case.
15576 (coding_charset_list): Delete unused variable `coding_type'.
15577 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15578 property in the plist of the coding system.
15579 (Fcoding_system_put): Check QCascii_compatible_p.
15580
155812008-02-01 Miles Bader <miles@gnu.org>
15582
15583 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15584 removed calculation of frame `f', as it's now used.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15589 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15590 (UNIDATA): New variable.
15591 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15592 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15593 $(RUN_TEMACS) unconditionally.
15594
155952008-02-01 Kenichi Handa <handa@m17n.org>
15596
15597 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15598 (admindir): New variable.
15599 ($(lispsource)international/charprop.el): New target.
15600
156012008-02-01 Miles Bader <miles@gnu.org>
15602
15603 * character.c (chars-in-region): Remove obsolete function.
15604 (syms_of_character): Remove its initialization.
15605
156062008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15607
15608 * w32select.c (validate_coding_system)
15609 (setup_windows_coding_system): New functions.
15610 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15611 setup_windows_coding_system.
15612 (setup_config, Fw32_get_clipboard_data): Use
15613 validate_coding_system.
15614 (Fx_selection_exists): Move call to setup_config to a place
15615 where signals are allowed.
15616
15617 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15618 (Fcheck_coding_system): Add declarations.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15623
156242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15625
15626 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15627 string as the second argument for x_new_fontset.
15628
156292008-02-01 Kenichi Handa <handa@m17n.org>
15630
15631 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15632 (encode_coding_object): Use safe_call instead of call2.
15633
156342008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15637
15638 * Makefile.in (lisp): Include charprop.el.
15639
156402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15641
15642 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15643 Not sure if it's unnecessary.
15644
156452008-02-01 Steven Tamm <steventamm@mac.com>
15646
15647 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15648 some possibly unnecessary fontset checking code that crashed
15649 when creating a new frame.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15654 lookup_face.
15655
15656 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15657
15658 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15663 (coding_charset_list): New function.
15664
15665 * coding.h (coding_charset_list): Extern it.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15670 concatenation of family and registry.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * character.h (BYTE8_STRING): Fix typo.
15675
15676 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15677 string to multibyte (sync to HEAD).
15678
15679 * casefiddle.c (casify_region): Handle changes in byte-length
15680 using replace_range_2 (sync to HEAD).
15681
156822008-02-01 Andreas Schwab <schwab@suse.de>
15683
15684 * chartab.c (map_char_table): GCPRO table and arg.
15685
156862008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15689 already at limit.
15690
156912008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15694 instead of fast_c_string_match_ignore_case.
15695 (find_font_encoding): Change argument to Lisp_Object. Use
15696 fast_string_match_ignore_case instead of
15697 fast_c_string_match_ignore_case. Change caller.
15698
156992008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * xdisp.c (get_next_display_element): In unibyte case, decide to
15702 display in octal form by checking a character by
15703 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15704
15705 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15706
15707 * character.c (unibyte_has_multibyte_table): New variable.
15708
15709 * character.h (unibyte_has_multibyte_table): Extern it.
15710 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * coding.c (encode_coding_iso_2022): Fix handling of charset
15715 annotation.
15716
157172008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * coding.c (setup_coding_system): If coding_system is nil, use
15720 Qundecided.
15721 (Fterminal_coding_system): Return nil if terminal coding system is
15722 `undecided'.
15723 (syms_of_coding): Define coding-system `undecided' here. Setup
15724 terminal_coding as `undecided'.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * xdisp.c (message_dolog, set_message_1): Call
15729 unibyte_char_to_multibyte with arg type int.
15730
15731 * lread.c (read1): Fix reading of a char-table.
15732
15733 * print.c (print_object): Include sub char-table in circularities
15734 detection.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15739 Append the found sequences in car of ARGS instead of prepending.
15740
157412008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * fileio.c (report_file_error): Make a unibyte string from
15744 strerror (errorno).
15745 (Fsubstitute_in_file_name): Fix the arg to
15746 unibyte_char_to_multibyte. It is evaluated twice.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15751
157522008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15755 BOM is not found.
15756 (detect_coding, detect_coding_system): Optimization for ISO-2022
15757 when no 8-bit data is found.
15758
157592008-02-01 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15766 CHARS.
15767
157682008-02-01 Steven Tamm <steventamm@mac.com>
15769
15770 * macterm.c (mac_encode_char): Add charset argument and update
15771 to use encoding_type.
15772 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15773 switch to pure fontset.
15774 (decode_mac_font_name): Temporarily remove decoding.
15775 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15776 (x_load_font): Temporarily remove encoding.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * xfaces.c (Fface_font): If frame is not on a window system,
15781 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15782 refer to face->font.
15783 (split_font_name_into_vector, build_font_name_from_vector)
15784 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15785 when HAVE_WINDOW_SYSTEM is defined.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15790 (x_produce_glyphs): Fix setting of members of cmp in case
15791 cmp->glyph_len is zero.
15792
15793 * fontset.c (Fset_fontset_font): Fix docstring.
15794 (Ffontset_info): Make it backward compatible. New arg ALL.
15795
157962008-02-01 Kim F. Storm <storm@cua.dk>
15797
15798 * process.c (read_process_output): Grow decoding_buf when needed;
15799 this could cause a crash in allocate_string and compact_small_strings.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * coding.c (setup_coding_system): Set coding->common_flags
15808 correctly for raw-text.
15809 (consume_chars): On encoding unibyte text by raw-text, don't check
15810 multibyte form.
15811 (encode_coding): On encoding by raw-text, never use translation tables.
15812
15813 * fileio.c (e_write): Short cut for the case of no encoding.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * coding.c (detect_coding, detect_coding_system): Delete unused
15818 variables.
15819
158202008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15823 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 * coding.c (Ffind_coding_systems_region_internal): Include
15828 raw-text and no-conversion in the result.
15829
158302008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15833 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15834 FONT_DEF.
15835 (font_def_arg, add_arg, from_arg, to_arg): New args.
15836 (set_fontset_font): Change argument.
15837 (Fset_fontset_font): Fix for the case that TARGET is a script
15838 name and charset name.
15839 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15840
158412008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * fontset.c (fontset_font): Rename from fontset_face. Change return
15844 value.
15845 (face_suitable_for_char_p, face_for_char): Adjust for the change
15846 of fontset_font.
15847 (make_fontset_for_ascii_face): Fix setting of the fontset element
15848 for ASCII.
15849 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15850 to get a font name.
15851 (Ffontset_info): Adjust for the change of fontset_font.
15852
15853 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15854
15855 * character.h (LEADING_CODE_LATIN_1_MIN)
15856 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * editfns.c (check_translation): New function.
15861 (Ftranslate_region_internal): Handle M:N mapping.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15870 goto invalid_code.
15871 (decode_coding_iso_2022): Fix handling of invalid designation.
15872
15873 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15874 after calling code_conversion_save.
15875
158762008-02-01 Kenichi Handa <handa@m17n.org>
15877
15878 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15879
15880 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15881
15882 * fontset.c: Include "intervals.h".
15883 (fontset_face): Fix comparing of Lisp_Objects.
15884 (free_face_fontset, new_fontset_from_font_name): Fix
15885 Lisp_Object/int mixup.
15886
15887 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15888
15889 * coding.c: Add many prototypes for static functions.
15890 (get_translation_table): Allow max_lookup to be NULL.
15891 (decode_coding, Ffind_coding_systems_region_internal)
15892 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15893 get_translation_table with max_lookup NULL.
15894
158952008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * coding.c (get_translation_table): Declare it as Lisp_Object.
15898 (LOOKUP_TRANSLATION_TABLE): New macro.
15899 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15900 instead of CHAR_TABLE_REF.
15901
159022008-02-01 Kenichi Handa <handa@m17n.org>
15903
15904 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15905 annotation data format.
15906 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15907 Change arguments FROM and TO to single argument NCHARS. Change caller.
15908 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15909 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15910 (decode_coding_ccl, decode_coding_charset): Pay attention to
15911 coding->charbuf_used.
15912 (get_translation): New function.
15913 (produce_chars): New arguments translation_table and last_block.
15914 Translate characters here. Return number of carryover chars.
15915 Change caller.
15916 (produce_composition): New argument pos. Change caller.
15917 Adjust for the change of annotation data format.
15918 (produce_charset, produce_annotation): Likewise.
15919 (decode_coding, encode_coding): Don't call translate_chars.
15920 (consume_chars): New arg translation_table. Change caller.
15921 (translate_chars): Delete.
15922 (syms_of_coding): Make translation-table's number of extra slots 2.
15923
159242008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * search.c (simple_search): Fix setting this_pos_byte in backward
15927 search.
15928
15929 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15930 byte sequence.
15931 (detect_coding_ccl): Fix setting of the variable valids.
15932
159332008-02-01 Kenichi Handa <handa@m17n.org>
15934
15935 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15936
15937 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15938
15939 * editfns.c (Ftranslate_region_internal): Rename from
15940 Ftranslate_region. Accept a char-table in TABLE.
15941 (syms_of_editfns): Defsubr Stranslate_region_internal.
15942
15943 * xfaces.c (set_lface_from_font_name): If a font is specified for
15944 a frame, generate a fontset from the font.
15945 (build_scalable_font_name): If the scalable font is requested for
15946 a specific size, don't change that size.
15947 (try_font_list): Try a scalable font also in the case that a
15948 pattern string is specified.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * xfaces.c (Fface_font): New optional arg CHARACTER.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * charset.h (CHARSET_OFFSET): New macro.
15957
159582008-02-01 Kenichi Handa <handa@m17n.org>
15959
15960 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15961
15962 * fontset.c (fontset_face): Handle the case that repertory is a
15963 char-table.
15964 (find_font_encoding): Return nil for unknown encoding.
15965 (Fset_fontset_font): Ignore a font of unknown encoding.
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * keymap.c (describe_vector): Handle default value of a char table.
15970
15971 * fontset.c (fontset_face): Handle fallback fonts correctly.
15972 (Ffontset_info): Return infomation about fallback fonts.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * fontset.c (FONTSET_DEFAULT): New macro.
15977 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15978 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15979 the case that it is nil.
15980 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15981 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15982
15983 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15984 subset or superset.
15985
159862008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * emacs.c (main): Call init_charset after syms_of_XXX.
15989
15990 * charset.c (Vcharset_map_directory): Delete.
15991 (Vcharset_map_path): New variable.
15992 (load_charset_map_from_file): Use Vcharset_map_path instead.
15993 (init_charset): Initialize Vcharset_map_path.
15994 (syms_of_charset): Delete declaration of "charset-map-directory",
15995 add declaration of "charset-map-path".
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16000 ASCII only string.
16001
16002 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16003
16004 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16005 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16010
16011 * coding.c (QCmnemonic, QCdefalut_char)
16012 (QCdecode_translation_table, QCencode_translation_table)
16013 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16014 (get_translation_table): Return a list of translation tables if
16015 necessary.
16016 (decode_coding): Call get_translation_table with ENCODEP 0.
16017 (char_encodable_p): If translation_table is non-nil, always call
16018 translate_char.
16019 (Fdefine_coding_system_internal): Accept list of translation
16020 tables as :encode-translation-table and :decode-translation-table.
16021 (Fcoding_system_put): New function.
16022 (syms_of_coding): Declare new symbols. Defsubr
16023 Scoding_system_put.
16024 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16025 typically JISX0212.
16026
16027 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16028 when the charset is superset type.
16029
16030 * character.c (translate_char): Accept list of translation tables.
16031
160322008-02-01 Kenichi Handa <handa@m17n.org>
16033
16034 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16035 (CODING_ATTR_TRANS_TBL): New macro.
16036
16037 * coding.c (get_translation_table): New function.
16038 (translate_chars): Fix the bug of skipping annotation data.
16039 (decode_coding, encode_coding): Utilize get_translation_table.
16040 (char_encodable_p, Funencodable_char_position): Translate char if
16041 necessary.
16042 (Ffind_coding_systems_region_internal)
16043 (Fcheck_coding_systems_region): Setup translation table for encode
16044 in a coding system attribute vector in advance.
16045 (Fdefine_coding_system_internal): Allow a symbol as translation
16046 table. For shift-jis type coding system, allow 4th charset.
16047
160482008-02-01 Kenichi Handa <handa@m17n.org>
16049
16050 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16051
16052 * xdisp.c (get_next_display_element): Pass -1 as POS to
16053 FACE_FOR_CHAR if displaying a C-string.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * composite.c (get_composition_id): Handle xoff and yoff in a
16058 composition rule.
16059
16060 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16061 (struct composition): New member lbearing and rbearing.
16062
16063 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16064 (x_get_glyph_overhangs): Handle a composition glyph.
16065 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16066
16067 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16068 composition glyph.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * print.c: Include charset.h.
16073 (Vprint_charset_text_property): New variable.
16074 (Qdefault): Extern it.
16075 (PRINT_STRING_NON_CHARSET_FOUND)
16076 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16077 (print_check_string_result): New variable.
16078 (print_check_string_charset_prop): New function.
16079 (print_prune_charset_plist): New variable.
16080 (print_prune_string_charset): New function.
16081 (print_object): Call print_prune_string_charset if
16082 Vprint_charset_text_property is not t.
16083 (print_interval): Print nothing if interval->plist is nil.
16084 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16085 variable. Init and staticpro print_prune_charset_plist.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * fontset.c (new_fontset_from_font_name): Use the specified font
16090 for all characters in the new fontset.
16091
16092 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16093 OBJECT args.
16094
16095 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16096 OBJECT args for composition too.
16097
16098 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16099 OBJECT args.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16104
16105 * fontset.c (reorder_font_vector): Adjust for the change of
16106 FONT_DEF format.
16107 (fontset_face): New arg id. Change caller.
16108 (face_for_char): New args pos and object.
16109 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16110 (fs_query_fontset): Check NAME by Fassoc too.
16111 (Fset_fontset_font): Allow non-XLFD font name.
16112 (Ffontset_info): Adjust for the change of FONT_DEF format.
16113
16114 * fontset.h (face_for_char): Adjust prototype.
16115
16116 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16117 (append_space, extend_face_to_end_of_line)
16118 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16119 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16120
16121 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16122 POS and OBJECT args.
16123
16124 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16125 POS and OBJECT args.
16126
161272008-02-01 Jason Rumney <jasonr@gnu.org>
16128
16129 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16130 of GlobalAlloc'ed memory.
16131
161322008-02-01 Kenichi Handa <handa@m17n.org>
16133
16134 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16135
16136 * charset.h (charset_table_used): Delete extern.
16137
16138 * charset.c (charset_table_used): Make it static.
16139 (map_charset_chars): Fix args to c_function with.
16140
16141 * chartab.c (map_sub_char_table_for_charset): Fix args to
16142 c_function with.
16143
16144 * coding.h (enum coding_result_code): Delete
16145 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16146
16147 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16148 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16149 (Vlast_code_conversion_error): New variables.
16150 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16151 (ONE_MORE_BYTE): Record error if any instead of signaling an
16152 error. If non-ASCII multibyte char is found, return the negative
16153 value of the code. All callers changed to check it.
16154 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16155 (record_conversion_result): New function. Change all codes setting
16156 coding->result to call this function.
16157 (detect_coding_utf_8, decode_coding_utf_8)
16158 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16159 Don't use the local variable incomplete.
16160 (emacs_mule_char): Change the second arg to `const'.
16161 (decode_coding): Fix of flushing out unprocessed data.
16162 (make_conversion_work_buffer): Fix making of a work buffer.
16163 (decode_coding_object): Return coding->dst_object.
16164
16165 * fontset.c (set_fontset_font): Fix args.
16166
16167 * lisp.h (CHARACTERBITS): Define as 22.
16168
16169 * process.c (send_process): Be sure to set coding->src_multibyte.
16170
16171 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * xdisp.c (handle_auto_composed_prop): Give limit to
16176 Fnext_single_char_property_change.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * composite.c (syms_of_composite): Don't make the composition hash
16181 table weak.
16182
16183 * fontset.c (Fset_fontset_font): Fix docstring.
16184
16185 * lisp.h (detect_coding_system): Adjust prototype.
16186
16187 * fileio.c (kill_workbuf_unwind): Delete this function.
16188 (Finsert_file_contents): Adjust the call of detect_coding_system.
16189 Get conversion_buffer by code_conversion_save. Use the macro
16190 CODING_MAY_REQUIRE_DECODING. After decoding, update
16191 coding_system.
16192
16193 * coding.h (make_conversion_work_buffer): Delete extern.
16194 (code_conversion_save): Extern it.
16195
16196 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16197 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16198 (decode_coding_utf_8): Don't do eol converion.
16199 (detect_coding_utf_16): Check coding->src_chars, not
16200 coding->src_bytes. Add heuristics for those that have no signature.
16201 (decode_coding_emacs_mule, decode_coding_iso_2022)
16202 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16203 Don't do eol converion.
16204 (adjust_coding_eol_type): Return a new coding system.
16205 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16206 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16207 each change.
16208 (decode_coding): Pay attention to undo_list. Do eol conversion for
16209 all types of coding-systems (if necessary).
16210 (Vcode_conversion_work_buf_list): Delete it.
16211 (Vcode_conversion_reused_workbuf): Rename from
16212 Vcode_conversion_reused_work_buf.
16213 (Vcode_conversion_workbuf_name): New variable.
16214 (reused_workbuf_in_use): New variable.
16215 (make_conversion_work_buffer): Delete the arg DEPTH.
16216 (code_conversion_restore): Change argument to cons.
16217 (code_conversion_save): Delete the argument BUFFER. Change callers.
16218 (detect_coding_system): New argument src_chars. Change callers.
16219 Fix for utf-16 detection.
16220 (init_coding_once): Don't use ISO_carriage_return.
16221 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16222 reused_workbuf_in_use.
16223
162242008-02-01 Kenichi Handa <handa@m17n.org>
16225
16226 * keymap.c (store_in_keymap): Pay attention to the case that idx
16227 is a cons specifying a character range.
16228
162292008-02-01 Kenichi Handa <handa@m17n.org>
16230
16231 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16232 HANDLED_RECOMPUTE_PROPS.
16233
16234 * coding.c (Fdefine_coding_system_internal): Fix checking of
16235 ascii compatibility.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * charset.c (find_charsets_in_text): Delete unused locale variable.
16240 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16241
16242 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16243 Resync charset_list to Vemacs_mule_charset_list.
16244
16245 * keymap.c (store_in_keymap): Pay attention to the case that idx
16246 is a cons specifying a character range.
16247
162482008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * composite.c (update_compositions): Bind inhibit-read-only, etc
16251 to t before calling remove-list-of-text-properties.
16252
16253 * print.c (print_object): Always print ASCII chars as is.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16258
16259 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16260 is a char table.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * xfaces.c (set_lface_from_font_name): Fix for the case that
16269 FONTNAME is not fontset name.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * fns.c (base64_encode_1): Fix previous change.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * fontset.c (set_fontset_font): New function.
16278 (Fset_fontset_font): If a font is specified for a charset, use
16279 map_charset_chars to store the font spec in a fontset.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * fontset.c (fontset_face): Create a fallback fontset on demand.
16284 (make_fontset): Don't create a fallback fontset here.
16285 (free_face_fontset): Free a fallback fontset (if any) too.
16286 (n_auto_fontsets): Delete this variable.
16287 (auto_fontset_alist): New variable.
16288 (new_fontset_from_font_name): Check auto_fontset_alist.
16289 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16290 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16291 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16292 Defsubr Sfontset_list_all.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16297
162982008-02-01 Kenichi Handa <handa@m17n.org>
16299
16300 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * editfns.c (Fgoto_char): Fix docstring.
16305
163062008-02-01 Kenichi Handa <handa@m17n.org>
16307
16308 * insdel.c (insert_from_gap): Adjust intervals correctly.
16309
163102008-02-01 Jason Rumney <jasonr@gnu.org>
16311
16312 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16313 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16314 (w32_initialize): Try to load it.
16315 (x_get_font_repertory): Use it if available.
16316 (w32_encode_char): Add shortcut for unicode output.
16317
16318 * w32fns.c (w32_load_system_font): Default charset to -1.
16319 (x_to_w32_charset): Match all fonts for unicode.
16320 (w32_to_x_charset): New parameter matching. Don't return partial
16321 or wildcard charsets.
16322 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16323 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16324 (w32_to_x_font): Match charset to real charset.
16325 (enum_font_cb2): Always list unicode versions.
16326
16327 * makefile.w32-in (temacs): Increase EMHEAP.
16328
163292008-02-01 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32term.c (w32_encode_char): New charset parameter.
16332 font_info.encoding becomes encoding_type.
16333 (x_get_font_repertory): New function. Warning: stub only!
16334 (x_new_font): Return quickly if font already set.
16335 (x_new_fontset): fontsetname parameter is Lisp_Object.
16336 Use new fs_query_fontset. Try new_fontset_from_font_name.
16337 Use fontset_name for return value.
16338
16339 * w32term.h: Declare x_get_font_repertory.
16340
16341 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16342 place of find_charset_in_text. Use encode_coding_object in place
16343 of encode_coding.
16344 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16345 decode_coding.
16346
16347 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16348 of x_new_fontset.
16349 (w32_load_system_font): Initialize charset as unicode.
16350 font_info.encoding becomes encoding_type.
16351 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16352 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16353 (syms_of_w32fns): Set get_font_repertory_func.
16354
16355 * w32console.c: Include character.h. Use terminal_encode_buffer
16356 from term.c.
16357 (write_glyphs): Use new version of encode_terminal_code. Use
16358 encode_coding_object in place of encode_coding.
16359
16360 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16361 encoding becomes encoding_type.
16362
16363 * term.c (terminal_encode_buffer): Make externally visible.
16364
16365 * makefile.w32-in: Add character.h dependancies.
16366 (character.o, chartab.o): New targets.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16371 CODING_ID_EOL_TYPE.
16372
163732008-02-01 Andreas Schwab <schwab@suse.de>
16374
16375 * coding.c (produce_chars): Revert last change.
16376
163772008-02-01 Kenichi Handa <handa@m17n.org>
16378
16379 * charset.h (charset_unicode): Extern it.
16380
16381 * charset.c (string_xstring_p): Check by (C >= 0x100).
16382 (find_charsets_in_text): Change format of the arc CHARSETS. New
16383 arg MULTIBYTE.
16384 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16385 change of find_charsets_in_text.
16386 (Fsplit_char): Fix doc. Never return unknown.
16387
16388 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16389
16390 * coding.c (Fdefine_coding_system_alias): Update
16391 Vcoding_system_list.
16392
16393 * fontset.c (load_font_get_repertory): Pay attention to the case
16394 that ENCODING of a font is specified by a char-table.
16395
16396 * xterm.c (x_get_font_repertory): Handle the case that the
16397 encoding of font is other than Unicode.
16398
163992008-02-01 Kenichi Handa <handa@m17n.org>
16400
16401 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16402 if a character is encodable by the terminal coding system. If
16403 not, produces proper number of `?'s. Update
16404 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16405 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16406
164072008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16410 variables.
16411 (encode_terminal_code): Change argument. Encode multiple
16412 characters at once. Store the result of encoding in
16413 terminal_encode_buffer.
16414 (write_glyphs, insert_glyphs): Adjust for the change of
16415 encode_terminal_code.
16416 (term_init): Initialize terminal_encode_buffer and
16417 terminal_encode_buf_size.
16418
16419 * coding.c (consume_chars): If coding->src_object is nil, don't
16420 check annotation.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * character.c (char_string): Use ASCII_CHAR_P instead of
16425 SINGLE_BYTE_CHAR_P.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * xdisp.c (handle_auto_composed_prop): Check if the last
16430 characters of auto-composed region is newly composed with the
16431 following characters.
16432 (handle_composition_prop): Fix checking of point being inside
16433 composition.
16434
164352008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * fns.c (concat): Don't change multibyteness of the result by
16438 concatenating an 8-bit character.
16439
16440 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16441 multibyteness of the result when newelt is an 8-bit character.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16446 EMACS_INT.
16447
16448 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16449
16450 * xfaces.c (face_numeric_value): Declare dim size_t.
16451 (Finternal_lisp_face_equal_p): Remove unused f.
16452
16453 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16454 (MATRIX_ROW): Remove unused vars.
16455 (draw_glyphs, x_insert_glyphs, fast_find_position)
16456 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16457 byte/char counts.
16458
16459 * regex.c (regex_compile): Remove unused var.
16460
16461 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16462
16463 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16464 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16465
16466 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16467
16468 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16469
16470 * fileio.c (Fwrite_region): Remove unused var.
16471
16472 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16473 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16474
16475 * composite.c (Fremove_list_of_text_properties): Declare.
16476
16477 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16478 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16479 (coding_inherit_eol_type): Remove unused attrs.
16480 (detect_coding): Cast arg of detect_eol.
16481
16482 * charset.c (syms_of_charset): Remove unused var p.
16483 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16484 byte/char counts.
16485
16486 * casetab.c (set_case_table): Remove unused var.
16487
16488 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16489 unused vars.
16490
164912008-02-01 Dave Love <fx@gnu.org>
16492
16493 * xterm.c (x_bitmap_mask): Declare.
16494
164952008-02-01 Dave Love <fx@gnu.org>
16496
16497 * xterm.c (x_term_init): Fix type error.
16498
16499 * lisp.h: Add Funibyte_char_to_multibyte.
16500
16501 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16502 (Fset_coding_system_priority): Doc fix.
16503
16504 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16505
16506 * indent.c (check_composition): Make start and end EMACS_INT.
16507
16508 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16509
16510 * xdisp.c (handle_composition_prop, check_point_in_composition):
16511 Make buffer positions EMACS_INT.
16512
16513 * composite.c (find_composition, run_composition_function)
16514 (update_compositions, Ffind_composition_internal): Make buffer
16515 positions EMACS_INT.
16516
16517 * composite.h (find_composition, update_compositions): Make
16518 position args EMACS_INT.
16519
16520 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16521
16522 * intervals.c (get_property_and_range):
16523 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16524
16525 * unexalpha.c: Don't include varargs.h.
16526
165272008-02-01 Dave Love <fx@gnu.org>
16528
16529 * coding.h (ENCODE_UTF_8): New.
16530
16531 * Makefile.in (gtkutil.o): Depend on coding.h.
16532
16533 * coding.c (Fset_coding_system_priority): Doc fix.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16538 the case of auto saving.
16539
165402008-02-01 Andreas Schwab <schwab@suse.de>
16541
16542 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16543 `range' from GC.
16544
165452008-02-01 Kenichi Handa <handa@m17n.org>
16546
16547 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16548
165492008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * fileio.c (choose_write_coding_system): Return a decided coding system.
16552 (Fwrite_region): Set Vlast_coding_system_used to the return value
16553 of choose_write_coding_system.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * charset.c (Fset_charset_priority): Pay attention to duplicated
16558 arguments.
16559
16560 * coding.c (QCcategory): New variable.
16561 (syms_of_coding): Defsym it. Set all elements of
16562 Vcoding_category_table and their symbol values.
16563 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16564 coding-category-XXX, and coding-category-list.
16565 (Fdefine_coding_system_internal): Add category in the plist.
16566
165672008-02-01 Kenichi Handa <handa@m17n.org>
16568
16569 * callproc.c (Fcall_process): Handle carryover correctly.
16570
16571 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16572 (raw_text_coding_system): Check NILP (coding_system).
16573 (coding_inherit_eol_type): Check NILP (coding_system) and
16574 NILP (parent).
16575 (consume_chars): Fix for the case of raw-text.
16576
16577 * process.c (read_process_output): Handle carryover correctly.
16578
165792008-02-01 Dave Love <fx@gnu.org>
16580
16581 * regex.c (re_search_2): Fix last change.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16586 target_multibyte. Even in a unibyte case, return a converted
16587 multibyte char.
16588 (GET_CHAR_AFTER): New macro.
16589 (PATFETCH): Translate via multibyte char.
16590 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16591 (SETUP_MULTIBYTE_RANGE): New macro.
16592 (regex_compile): Setup compiled code so that its multibyteness
16593 matches that of a target. Fix the handling of "[X-YZ]" using
16594 SETUP_MULTIBYTE_RANGE.
16595 (analyse_first) <charset>: For filling fastmap for all multibyte
16596 characters, don't check by BASE_LEADING_CODE_P.
16597 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16598 the same as RE_MULTIBYTE_P (bufp) now.
16599 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16600 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16601 (TRANSLATE_VIA_MULTIBYTE): New macro.
16602 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16603 It is the same as RE_MULTIBYTE_P (bufp) now.
16604 <exactn>: Translate via multibyte.
16605 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16606 translate it.
16607 <charset, charset_not>: Fetch a character by
16608 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16609 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16610 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16611 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16612 by GET_CHAR_AFTER.
16613 (bcmp_translate): Likewise.
16614
16615 * search.c (compile_pattern): Check the member target_multibyte,
16616 not the member multibyte of buf.
16617
16618 * lread.c (read1): While reading a string, set force_singlebyte
16619 and force_multibyte correctly.
16620
16621 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16622 up of unibyte_to_multibyte_table.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * coding.c (setup_coding_system): If coding has
16627 post-read-conversion or pre-write-conversion, set
16628 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16629 respectively.
16630 (decode_coding_gap): Run post-read-conversion if any.
16631
16632 * fileio.c (Finsert_file_contents): Even if we read into a
16633 unibyte buffer, check if we must decode the result or not.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * coding.c (make_conversion_work_buffer): Change the work buffer
16638 name to the same one as that of Emacs 21.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * coding.h (make_conversion_work_buffer): Adjust prototype.
16643 (code_conversion_restore): Don't extern it.
16644
16645 * coding.c (detected_mask): Delete unused variable.
16646 (decode_coding_iso_2022): Pay attention to the byte sequence of
16647 CTEXT extended segment, and retain those bytes as is.
16648 (decode_coding_ccl): Delete unused variable `valids'.
16649 (setup_coding_system): Delete unused variable `category'.
16650 (consume_chars): Delete unused variable `category'. Make it work
16651 for non-multibyte case.
16652 (make_conversion_work_buffer): Change argument.
16653 (saved_coding): Delete unused variable.
16654 (code_conversion_restore): Don't check saved_coding->destination.
16655 (code_conversion_save): New function.
16656 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16657 instead of record_unwind_protect.
16658 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16659 (detect_coding_system): Delete unused variable `mask'.
16660 (Fdefine_coding_system_internal): Delete unused variable id.
16661
16662 * fileio.c (kill_workbuf_unwind): New function.
16663 (Finsert_file_contents): On replacing, call
16664 make_conversion_work_buffer with correct args, and call
16665 record_unwind_protect with the first arg kill_workbuf_unwind.
16666
16667 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16668
166692008-02-01 Kenichi Handa <handa@m17n.org>
16670
16671 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16672 (fontset_add): Fix for the case that TO is less than TO1.
16673 (Ffontset_info): Don't use fallback fontset on checking the
16674 default fontset.
16675 (dump_fontset): New function for debugging.
16676
16677 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16678 coding_type is Qcharset.
16679
166802008-02-01 Kenichi Handa <handa@m17n.org>
16681
16682 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16683 (map_char_table): Don't inherit the value from the parent on
16684 initializing VAL. Adjust for the above change.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * coding.c (Qsignature, Qendian): Delete these variables.
16689 (syms_of_coding): Don't initialize them.
16690 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16691 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16692 detect_info->found.
16693 (decode_coding_utf_16): Don't detect BOM here.
16694 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16695 is NOT utf_16_without_bom.
16696 (setup_coding_system): For a coding system of type utf-16, check
16697 if the attribute :endian is Qbig or not (not nil or not), and set
16698 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16699 (detect_coding): If coding type is utf-16 and BOM detection is
16700 required, detect it.
16701 (Fdefine_coding_system_internal): For a coding system of type
16702 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * coding.c (coding_set_source): Fix for the case that the current
16707 buffer is different from coding->src_object.
16708 (decode_coding_object): Don't use the conversion work buffer if
16709 DST_OBJECT is a buffer.
16710
167112008-02-01 Dave Love <fx@gnu.org>
16712
16713 * lread.c (read_emacs_mule_char) [len==2]: Index
16714 emacs_mule_charset correctly.
16715
167162008-02-01 Dave Love <fx@gnu.org>
16717
16718 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16719 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16720 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16721 treated specially.)
16722 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16723 (detected_mask): Remove Big5 bits.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 The following changes are to make the font rescaling facility
16728 compatible with Emacs 21.
16729
16730 * xfaces.c (Vface_font_rescale_alist): Rename from
16731 Vface_resizing_fonts.
16732 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16733 (font_rescale_ratio): Rename from font_resizing_ratio.
16734 (split_font_name): Set font->rescale_ratio.
16735 (better_font_p): Pay attention to font->rescale_ratio.
16736 (build_scalable_font_name): Likewise. Change RESX, and RESY
16737 fields.
16738 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16743 (Qutf_16_le): Remove these variables.
16744 (syms_of_coding): Don't DEFSYM them.
16745 (decode_coding_utf_16): Fix handling of BOM.
16746 (encode_coding_utf_16): Fix handling of BOM.
16747
167482008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * fileio.c (Finsert_file_contents): On replacing, before decoding
16751 the file into the work buffer, set point of the work buffer to the end.
16752
167532008-02-01 Dave Love <fx@gnu.org>
16754
16755 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16756
167572008-02-01 Dave Love <fx@gnu.org>
16758
16759 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16760 and fix C types.
16761
167622008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * xdisp.c (SKIP_GLYPHS): New macro.
16765 (set_cursor_from_row): Pay attention to string display properties.
16766
16767 * category.c (copy_category_entry): Fix for the case that RANGE
16768 is an integer.
16769
16770 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16771
16772 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16773
167742008-02-01 Kenichi Handa <handa@m17n.org>
16775
16776 * charset.c (Fcharset_id_internal): New function.
16777 (syms_of_charset): Defsubr it.
16778
16779 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16780 with the last arg charset_list acquired from coding.
16781 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16782 the attribute coding_attr_ccl_valids.
16783
16784 * coding.h (enum define_coding_ccl_arg_index): Set the first
16785 member coding_arg_ccl_decoder to coding_arg_max.
16786
16787 * ccl.h (ccl_driver): Adjust prototype.
16788
16789 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16790 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16791 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16792 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16793 last arg Qnil.
16794
167952008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16798 call encode_char.
16799
16800 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16801
168022008-02-01 Dave Love <fx@gnu.org>
16803
16804 * composite.c (syms_of_composite): Make composition_hash_table weak.
16805
168062008-02-01 Kenichi Handa <handa@m17n.org>
16807
16808 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16809 (font_name_registry): Don't extern them.
16810 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16811
16812 * fontset.h (Qfontset): Don't extern it.
16813 (new_fontset_from_font_name): Extern it.
16814
16815 * fontset.c: Give 8 extra slots to fontset objects.
16816 (Qfontset_info): New variable.
16817 (syms_of_fontset): Defsym it.
16818 (FONTSET_FALLBACK): New macro.
16819 (fontset_face): Try also the default fontset.
16820 (make_fontset): Realize a fallback fontset from the default fontset.
16821 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16822 using split_font_name_into_vector and build_font_name_from_vector.
16823 (Fset_fontset_font): Access the elements of font_spec by enum
16824 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16825 name by using split_font_name_into_vector.
16826 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16827 generate a proper font name from the fontset name. Update
16828 Vfontset_alias_alist.
16829 (n_auto_fontsets): New variable.
16830 (new_fontset_from_font_name): New function.
16831 (Ffont_info): Store the information about fonts generated from the
16832 default fontset in the first extra slot of the returned char-table.
16833
16834 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16835 (font_name_registry): Delete function.
16836 (split_font_name_into_vector): New function.
16837 (build_font_name_from_vector): New function.
16838 (font_list): The argument REGISTRY is now a list of registry names.
16839 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16840 specifies an explicit font name, return the name as is. Make a
16841 list of registy names.
16842
16843 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16844 of x_new_fontset.
16845 (Fx_create_frame): Don't call x_new_fontset here. Just use
16846 x_list_fonts to check the existence of fonts.
16847
16848 * xterm.h (x_new_fontset): Adjust prototype.
16849
16850 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16851 string. Use new_fontset_from_font_name to create a fontset from a
16852 font name.
16853
168542008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * syntax.c (Vfind_word_boundary_function_table): New name for
16857 Vnext_word_boundary_function_table.
16858 (find-word-boundary-function-table): New name for
16859 next-word-boundary-function-table.
16860
168612008-02-01 Dave Love <fx@gnu.org>
16862
16863 * Makefile.in: Fix some dependencies.
16864
16865 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16866 set it to nil before returning.
16867
16868 * composite.c (update_compositions): Fix type error.
16869
16870 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16871
168722008-02-01 Kenichi Handa <handa@m17n.org>
16873
16874 * xterm.c (x_new_font): Optimize for the case that the font is
16875 already set for the frame.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * chartab.c (char_table_ascii): Check if the char table contents
16880 is sub-char-table or not.
16881 (char_table_set, char_table_set_range): Fix argument to
16882 char_table_ascii.
16883
16884 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16885 (detect_coding_utf_8, detect_coding_utf_16)
16886 (detect_coding_emacs_mule, detect_coding_iso_2022)
16887 (detect_coding_sjis, detect_coding_big5)
16888 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16889 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16890 sequence is valid in this coding system. Change callers.
16891 (MAX_ANNOTATION_LENGTH): New macro.
16892 (ADD_ANNOTATION_DATA): New macro.
16893 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16894 ADD_ANNOTATION_DATA. Change the format of annotation data.
16895 (ADD_CHARSET_DATA): New macro.
16896 (emacs_mule_char): New argument ID. Change callers.
16897 (decode_coding_emacs_mule, decode_coding_iso_2022)
16898 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16899 Produce charset annotation data in coding->charbuf.
16900 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16901 to charset annotation data in coding->charbuf.
16902 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16903 coding->common_flags if the coding system is iso-2022 based and
16904 uses designation.
16905 (produce_composition): Adjust for the new annotation data format.
16906 (produce_charset): New function.
16907 (produce_annotation): Handle charset annotation.
16908 (handle_composition_annotation, handle_charset_annotation): New
16909 functions.
16910 (consume_chars): Handle charset annotation. Utilize the above two
16911 functions.
16912 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16913 buffer, get the deleted text as a string and set
16914 coding->src_object to that string.
16915 (detect_coding, detect_coding_system): Use the new struct
16916 coding_detection_info.
16917
16918 * coding.h (struct coding_detection_info): New structure.
16919 (struct coding_system): Adjust prototype of the member `detector'.
16920 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16921
169222008-02-01 Kenichi Handa <handa@m17n.org>
16923
16924 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16925
169262008-02-01 Dave Love <fx@gnu.org>
16927
16928 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16929 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16930 to new local and nullify apropos_accumulate before returning.
16931 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16936 correctly.
e3eea1fc 16937
aac0c6e3
MR
169382008-02-01 Dave Love <fx@gnu.org>
16939
16940 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16941
169422008-02-01 Kenichi Handa <handa@m17n.org>
16943
16944 The following changes are to make character composition happen
16945 automatically on displaying.
16946
16947 * Makefile.in (lisp, shortlisp): Add composite.elc.
16948
16949 * composite.h (Qauto_composed, Vauto_composition_function)
16950 (Qauto_composition_function): Extern them.
16951
16952 * composite.c (Vcomposition_function_table)
16953 (Qcomposition_function_table): Delete variables.
16954 (Qauto_composed, Vauto_composition_function)
16955 (Qauto_composition_function): New variables.
16956 (run_composition_function): Don't call
16957 compose-chars-after-function.
16958 (update_compositions): Clear `auto-composed' text property.
16959 (compose_chars_in_text): Delete this function.
16960 (syms_of_composite): Staticpro Qauto_composed and
16961 Qauto_composition_function. Declare Vauto_composition_function as
16962 a Lisp variable.
16963
16964 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16965
16966 * xdisp.c (it_props): Add an entry for Qauto_composed.
16967 (handle_auto_composed_prop): New function.
16968
16969 * xselect.c (selection_data_to_lisp_data): Don't call
16970 compose_chars_in_text.
16971
169722008-02-01 Dave Love <fx@gnu.org>
16973
16974 * keyboard.c (read_char): Modify checking around use of
16975 Vkeyboard_translate_table.
16976
16977 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16978 and fix C types.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16983 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16984 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16985 the case that the last byte is '\r' correctly.
16986 (decode_coding): Flush out the unprocessed data correctly.
16987 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16988
169892008-02-01 Dave Love <fx@gnu.org>
16990
16991 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16992 Add XK_ISO... case.
16993 (xaw_scroll_callback): Revert last change.
16994
169952008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16998
169992008-02-01 Kenichi Handa <handa@m17n.org>
17000
17001 * xfaces.c (Vface_resizing_fonts): New variable.
17002 (struct font_name): New member `resizing_ratio'.
17003 (font_resizing_ratio): New function.
17004 (split_font_name): Set font->resizing_ratio.
17005 (better_font_p): Pay attention to font->resizing_ratio.
17006 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17007 RESX, and RESY fields.
17008 (try_alternative_families): Try scalable fonts if
17009 Vscalable_fonts_allowed is not Qt.
17010 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17011
170122008-02-01 Dave Love <fx@gnu.org>
17013
17014 * xterm.c (xaw_scroll_callback): Cast correctly.
17015
170162008-02-01 Dave Love <fx@gnu.org>
17017
17018 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17019 (lispy_kana_keys): Comment out.
17020 (make_lispy_event) [XK_kana_A]: Comment out.
17021
17022 * xterm.c (xaw_scroll_callback): Cast call_data.
17023 (XTread_socket): Deal with ASCII keysyms.
17024 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17025
170262008-02-01 Dave Love <fx@gnu.org>
17027
17028 * xterm.c (Vx_keysym_table): New.
17029 (syms_of_xterm): Initialize it.
17030 (XTread_socket): Use it.
17031 From head: Eliminate incorrect optimization that tried to avoid
17032 decoding the output of X*LookupString.
17033 (x_get_font_repertory): Delete charset declaration.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17038 return 0.
17039 (Fdefine_coding_system_internal): Setup
17040 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17041
170422008-02-01 Dave Love <fx@gnu.org>
17043
17044 * coding.c (Fcheck_coding_system): Doc fix.
17045
17046 * editfns.c (Finsert_byte): Return a proper value.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * coding.c (decode_coding): Fix args to translate_chars. Pay
17051 attention to Vstandard_translation_table_for_decode.
17052 (encode_coding): Fix args to translate_chars. Pay attention to
17053 Vstandard_translation_table_for_encode.
17054
17055 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17056 SINGLE_BYTE_CHAR_P.
17057
17058 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17059 not by SINGLE_BYTE_CHAR_P.
17060
17061 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17062 SINGLE_BYTE_CHAR_P.
17063
17064 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17065 SINGLE_BYTE_CHAR_P.
17066
17067 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17068 by SINGLE_BYTE_CHAR_P.
17069
17070 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17071 SINGLE_BYTE_CHAR_P.
17072
170732008-02-01 Dave Love <fx@gnu.org>
17074
17075 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17076
170772008-02-01 Dave Love <fx@gnu.org>
17078
17079 * fns.c (Flanginfo): Fix typo.
17080
17081 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17086 (detect_coding_emacs_mule, detect_coding_iso_2022)
17087 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17088 incomplete byte sequence. Don't update *mask when correctly detected.
17089 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17090 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17091 (detect_coding, detect_coding_system): Adjust for the changes above.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * character.c (char_string): Rename from
17096 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17097 (string_char): Rename from string_char.
17098
17099 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17100 if C is greater than MAX_3_BYTE_CHAR.
17101 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17102 string_char instead of string_char_with_unification.
17103
171042008-02-01 Dave Love <fx@gnu.org>
17105
17106 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * keymap.c (push_key_description): Pay attention to force_multibyte.
17111
17112 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17113
171142008-02-01 Dave Love <fx@gnu.org>
17115
17116 * charset.c (define_charset_internal): Rename `supprementary'.
17117
17118 * Makefile.in (lisp, shortlisp): Remove latin-N.
17119
171202008-02-01 Dave Love <fx@gnu.org>
17121
17122 * xfns.c (x_window, x_window): Use use_xim.
17123
17124 * xterm.c (use_xim): Initialize.
17125 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17126 (x_term_init): Maybe set use_xim.
17127
17128 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * search.c (search_buffer): Fix case-fold-search of multibyte
17133 characters.
17134 (boyer_moore): Rename the last argument to char_high_bits.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * xdisp.c (display_string): Fix for the case of zero width glyph.
17139
17140 * xfns.c (x_set_font): Change the error message of the case that
17141 x_new_fontset returns Qt.
17142
17143 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17144 (Finternal_set_lisp_face_attribute): Use signal_error for the
17145 error of invalid fontset.
17146
17147 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17148 fontset, return Qt.
17149
171502008-02-01 Dave Love <fx@gnu.org>
17151
17152 * unexelf.c (unexec): Make .got handling not SGI-specific.
17153
17154 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17155
17156 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17157
17158 * keyboard.c (read_key_sequence): Fix type error.
17159
17160 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17161 type error.
17162
17163 * fontset.c (fontset_add): Return Lisp_Object.
17164
171652008-02-01 Dave Love <fx@gnu.org>
17166
17167 * charset.h (charset_ordered_list_tick): Declare extern.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 The following changes (and some of 2008-02-01 changes of mine) are
17172 for handling syntax, category, and case conversion for unibyte
17173 characters by converting them to multibyte on the fly. With these
17174 changes, we don't have to setup syntax and case tables for unibyte
17175 characters in each language environment.
17176
17177 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17178 multibyte if necessary.
17179
17180 * bytecode.c (Fbyte_code): Likewise.
17181
17182 * character.h (LEADING_CODE_LATIN_1_MIN)
17183 (LEADING_CODE_LATIN_1_MAX): New macros.
17184 (unibyte_to_multibyte_table): Extern it.
17185 (unibyte_char_to_multibyte): New macro.
17186 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17187 (CHAR_LEADING_CODE): New macro.
17188 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17189
17190 * character.c (unibyte_to_multibyte_table): New variable.
17191 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17192 (multibyte_char_to_unibyte): If C is an eight-bit character,
17193 convert it to the corresponding byte value.
17194
17195 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17196 not 1, signals an error. Update the elements of
17197 unibyte_to_multibyte_table.
17198 (init_charset_once): Initialize unibyte_to_multibyte_table.
17199 (syms_of_charset): Define the charset `iso-8859-1'.
17200
17201 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17202 as is without converting it to unibyte. In a unibyte buffer,
17203 convert C to multibyte before checking the syntax.
17204
17205 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17206
17207 * minibuf.c (Fminibuffer_complete_word): Use the macro
17208 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17209
17210 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17211
17212 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17213 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17214 that is zero, convert an eight-bit char to multibyte.
17215 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17216 non-emacs case.
17217 (PATFETCH): Convert an eight-bit char to multibyte.
17218 (HANDLE_UNIBYTE_RANGE): New macro.
17219 (regex_compile): Setup the compiled pattern for multibyte chars
17220 even if the given regex string is unibyte. Use PATFETCH_RAW
17221 instead of PATFETCH in many places. To handle `charset'
17222 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17223 only for ASCII chars.
17224 (analyse_first) <exactn>: Simplify because the compiled pattern
17225 is multibyte.
17226 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17227 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17228 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17229 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17230 multibyte always 1.
17231 (re_search_2): In emacs, set the locale variable multibyte to 1,
17232 otherwise to 0. New local variable target_multibyte. Check it
17233 to decide the multibyteness of STR1 and STR2. If
17234 target_multibyte is zero, convert unibyte chars to multibyte
17235 before translating and checking fastmap.
17236 (TARGET_CHAR_AND_LENGTH): New macro.
17237 (re_match_2_internal): In emacs, set the locale variable multibyte
17238 to 1, otherwise to 0. New local variable target_multibyte. Check
17239 it to decide the multibyteness of STR1 and STR2. Use
17240 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17241 <charset, charset_not>: If multibyte is nonzero, check fastmap
17242 only for ASCII chars. Call bcmp_translate with
17243 target_multibyte, not with multibyte.
17244 <begline>: Declare the local variable C as `unsigned'.
17245 (bcmp_translate): Change the last arg name to target_multibyte.
17246
17247 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17248 the regexp pattern and the matching target. Set cp->buf.multibyte
17249 to the multibyteness of the regexp pattern. Set
17250 cp->but.target_multibyte to the multibyteness of the matching target.
17251 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17252 FETCH_STRING_CHAR_ADVANCE.
17253 (Freplace_match): Convert unibyte chars to multibyte.
17254
17255 * syntax.c (char_quoted, back_comment, scan_words)
17256 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17257 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17258 unibyte chars to multibyte.
17259 (skip_chars): Delete the arg syntaxp, and move the code for
17260 handling syntaxes to skip_syntaxes. Change callers.
17261 Fix the case that the multibyteness of STRING and the current
17262 buffer doesn't match.
17263 (skip_syntaxes): New function.
17264 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17265 SINGLE_BYTE_CHAR_P.
17266
172672008-02-01 Kenichi Handa <handa@m17n.org>
17268
17269 * xfaces.c (QCfontset): New variable.
17270 (LFACE_FONTSET): New macro.
17271 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17272 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17273 (Finternal_set_lisp_face_attribute)
17274 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17275 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17276 check also LFACE_FONTSET_INDEX.
17277 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17278 attrs[LFACE_FONT_INDEX].
17279 (syms_of_xfaces): Intern and staticpro QCfontset.
17280
17281 * dispextern.h (enum lface_attribute_index): New member
17282 LFACE_FONTSET_INDEX.
17283
17284 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * coding.c (coding_set_destination): Fix coding->destination for
17289 the case converting a region.
17290 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17291 (encode_coding_object): Fix coding->dst_pos and
17292 coding->dst_pos_byte for the case converting a region.
17293
17294 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17295
17296 * character.h (BYTE8_STRING): New macro.
17297
17298 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17303 characters by octal form.
17304
17305 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17306
17307 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17308 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17309 _fetch_multibyte_char_len.
17310 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17311
17312 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17313
17314 * casefiddle.c (casify_object): Simplify. Handle the case that
17315 the case conversion change the byte length.
17316 (casify_region): Likewise.
17317
17318 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17319
17320 * character.c (_fetch_multibyte_char_len): Delete this variable.
17321 (syms_of_character): Setup Vprintable_chars.
17322
17323 * editfns.c (Fchar_equal): Fix for the unibyte case.
17324 (Finsert_byte): New function.
17325 (syms_of_editfns): Defsubr it.
17326
17327 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17328 of direct code 0x3ffff.
17329
17330 * search.c (Freplace_match): Fix for the unibyte case.
17331
173322008-02-01 Kenichi Handa <handa@m17n.org>
17333
17334 * lread.c (safe_to_load_p): Fix the logic.
17335
17336 * syntax.c (scan_words): Don't treat characters belonging to
17337 different scripts as constituting a word.
17338
17339 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17340
17341 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17342
17343 * emacs.c (main): In the case of --unibyte, instead of aborting on
17344 finding non-empty buffer, make it unibyte.
17345
173462008-02-01 Kenichi Handa <handa@m17n.org>
17347
17348 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17349 to create a fontset.
17350
173512008-02-01 Dave Love <fx@gnu.org>
17352
17353 * character.c (Funibyte_char_to_multibyte): Doc fix.
17354
17355 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * fontset.c (fontset_add): Make the type `int'.
17360 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17361
17362 * character.c (unibyte_char_to_multibyte)
17363 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17364 charset_unibyte, not charset_primary.
17365
17366 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17367
17368 * charset.c (charset_unibyte): Rename from charset_primary.
17369 (Funibyte_charset): Rename from Fprimary_charset.
17370 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17371 (syms_of_charset): Adjust for the above changes.
17372
17373 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17374 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17375 it->multibyte_p is zero.
17376
17377 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17378 Delete extern.
17379
173802008-02-01 Kenichi Handa <handa@m17n.org>
17381
17382 * coding.c (Fdefine_coding_system_internal): Fix category setting
17383 for a coding system of type iso-2022.
17384
173852008-02-01 Kenichi Handa <handa@m17n.org>
17386
17387 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * syntax.c (Vnext_word_boundary_function_table): New variable.
17392 (next-word-boundary-function-table): Declare it as a Lisp variable
17393 in syms_of_syntax.
17394 (scan_words): Call functions in Vnext_word_boundary_function_table
17395 if any.
17396
17397 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17398
17399 * fontset.c (fs_load_font): If fontp->charset is not negative,
17400 return fontp without setting its members.
17401
174022008-02-01 Dave Love <fx@gnu.org>
17403
17404 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17405
17406 * m/sparc.h (HAVE_ALLOCA): Delete.
17407
17408 * s/irix6-5.h: Don't include strings.h.
17409 (bcopy, bzero, bcmp): Don't undef.
17410
17411 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17412
17413 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17414 (TIOCSIGSEND): Don't test IRIX6.
17415 (bcopy, bzero, bcmp): Define conditionally.
17416
174172008-02-01 Kenichi Handa <handa@m17n.org>
17418
17419 * buffer.c (Qas, Qmake, Qto): New variables.
17420 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17421 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17422
17423 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17424 we are inserting a process output into a multibyte buffer.
17425
17426 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17427 multibyte_char_to_unibyte.
17428
17429 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17430 by the primary charset, make it eight-bit char.
17431 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17432
17433 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17434 (charset_8_bit__control, charset_8_bit_graphic)
17435 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17436 (define_charset_internal): New function.
17437 (syms_of_charset): Call define_charset_internal for pre-defined
17438 charsets.
17439
17440 * charset.h (charset_8_bit): Extern it.
17441
17442 * coding.c (make_conversion_work_buffer): Adjust for the change
17443 of Fset_buffer_multibyte.
17444 (encode_coding_raw_text): Increment p0 in the loop.
17445
17446 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17447
17448 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17449 for the change of Fset_buffer_multibyte.
17450
17451 * fns.c (Fstring_to_multibyte): New function.
17452 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17453
174542008-02-01 Dave Love <fx@gnu.org>
17455
17456 * xfns.c (x_put_x_image): Declare args.
17457
17458 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17459 (try_font_list): Declare an arg.
17460
17461 * xdisp.c (message2_nolog, set_message): Declare an arg.
17462
17463 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17464
17465 * syntax.c (scan_sexps_forward): Declare an arg.
17466
17467 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17468 Declare an arg.
17469
17470 * lisp.h (Fnew_fontset): Declare.
17471
17472 * keymap.c (push_key_description): Call CHARACTERP correctly.
17473
17474 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17475 (face_for_char): Delete unused vars.
17476 (Fset_fontset_font): Doc fix. Delete unused vars.
17477
17478 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17479
17480 * composite.c (update_compositions): Declare arg.
17481
17482 * cm.c (calccost, cmgoto): Declare args.
17483
17484 * charset.c: Remove `emacs' conditional. Doc fixes.
17485 (map_char_table_for_charset): Declare.
17486
17487 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17488
17489 * ccl.c: Remove `emacs' conditional.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 The following changes are to allow specifying multiple font
17494 patterns for a character range (specified by script or charset).
17495
17496 * Makefile.in (abbrev.o): Depend on syntax.h.
17497 (xfaces.o): Depend on charset.h.
17498
17499 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17500 SINGLE_BYTE_CHAR_P.
17501
17502 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17503
17504 * character.h (Vchar_script_table): Extern it.
17505
17506 * character.c (Vscript_alist): Delete.
17507 (Vchar_script_table, Qchar_script_table): New variable.
17508 (syms_of_character): Declare Vchar_script_table as a lisp variable
17509 and initialize it.
17510
17511 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17512 have property char-table-extra-slots, make no extra slot.
17513
17514 * dispextern.h (struct face): Delete member `charset'.
17515 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17516 SINGLE_BYTE_CHAR_P.
17517 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17518 Add prototypes.
17519 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17520 (generate_ascii_font_name): Rename from generate_ascii_font.
17521
17522 * fontset.h (get_font_repertory_func): New prototype.
17523 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17524 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17525
17526 * fontset.c (Qprepend, Qappend): New variables.
17527 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17528 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17529 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17530 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17531 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17532 (load_font_get_repertory): New functions.
17533 (fontset_set): Delete.
17534 (fontset_face): New arg FACE. Return face ID, not face.
17535 Complete re-write to handle new fontset structure. Change caller.
17536 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17537 (face_for_char): Don't call lookup_face.
17538 (make_fontset_for_ascii_face): New arg FACE.
17539 (fs_load_font): New arg CHARSET_ID. Don't check
17540 Vfont_encoding_alist here.
17541 (find_font_encoding): New function.
17542 (list_fontsets): Use STRINGP, not ! NILP.
17543 (accumulate_script_ranges): New function.
17544 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17545 re-written to handle new fontset structure.
17546 (Ffontset_font): Return a copy of element.
17547 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17548 docstring of font-encoding-alist.
17549
17550 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17551 (Fset_fotset_font): Fix arguments to 5.
17552
17553 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17554
17555 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17556 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17557 (highlight_trailing_whitespace): Adjust for the change of
17558 lookup_named_face.
17559
17560 * xfaces.c: Include charset.h.
17561 (load_face_font): Delete argument C. Change caller.
17562 (generate_ascii_font_name): Rename from generate_ascii_font.
17563 (font_name_registry): New function.
17564 (cache_face): Store ascii faces before non-ascii faces in buckets.
17565 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17566 Lookup only ascii faces.
17567 (lookup_non_ascii_face): New function.
17568 (lookup_named_face): Delete argument C. Change caller.
17569 (lookup_derived_face): Delete argument C. Change caller.
17570 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17571 a string, just call font_list with it.
17572 (choose_face_font): Delete arguments FACE and C. New arg
17573 FONT_SPEC. Change caller.
17574 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17575 Change caller.
17576 (realize_non_ascii_face): New function.
17577 (realize_x_face): Call load_face_font here.
17578 (realize_tty_face): Delete argument C. Change caller.
17579 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17580 get a face ID.
17581 (dump_realized_face): Don't print charset of FACE.
17582
17583 * xfns.c (x_set_font): Always call x_new_fontset and
17584 store_frame_parameter.
17585 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17586 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17587
17588 * xterm.h (x_get_font_repertory): Extern it.
17589
17590 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17591 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17592 it->multibyte_p is zero.
17593 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17594 (x_new_fontset): If FONTSETNAME doesn't match any existing
17595 fontsets, create a new one.
17596 (x_get_font_repertory): New function.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * coding.c (Ffind_coding_systems_region_internal): Detect an
17601 ASCII only string correctly.
17602
17603 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17604 version is 0.
17605
176062008-02-01 Kenichi Handa <handa@m17n.org>
17607
17608 * lread.c: Include "coding.h".
17609 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17610 (load_each_byte, unread_char): New variables.
17611 (readchar_backlog): Delete.
17612 (readchar): Return a character unless load_each_byte is nonzero.
17613 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17614 cons. If unread_char is not -1, simply return it.
17615 (unreadchar): Handle the case that readcharfun is
17616 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17617 (read_multibyte): Delete.
17618 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17619 (read_emacs_mule_char): New functions.
17620 (Fload): Even if the file doesn't have the extension ".elc", if
17621 safe_to_load_p returns a positive version number, assume that the
17622 file contains bytecompiled code. If the version is less than 22,
17623 load the file while decoding multibyte sequences by emacs-mule.
17624 (readevalloop): Don't use readchar_backlog.
17625 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17626 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17627 (read_escape): Delete the arg BYTEREP.
17628 (read1): Set load_each_byte to 1 temporarily while handling
17629 #@NUMBER. Don't call read_multibyte.
17630 (read_vector): Call Fread with a cons. If readcharfun is
17631 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17632 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17633 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17634 and Qload_force_doc_strings.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * xdisp.c (face_before_or_after_it_pos): Call
17639 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17640
176412008-02-01 Kenichi Handa <handa@m17n.org>
17642
17643 * character.h (TRAILING_CODE_P): New macro.
17644 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17645 (string_char_with_unification): Fix prototype.
17646 (Vscript_alist): Extern it.
17647
17648 * character.c (Vscript_alist): New variable.
17649 (string_char_with_unification, str_as_unibyte)
17650 (string_escape_byte8): Add `const' to local variables.
17651 (syms_of_character): Declare script-alist as a Lisp variable.
17652
17653 * charset.h (Vcharset_ordered_list): Extern it.
17654 (charset_ordered_list_tick): Extern it.
17655 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17656 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17657 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17658 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17659 (Funify_charset): Adjust for the change of Funify_charset.
17660
17661 * charset.c (charset_ordered_list_tick): New variable.
17662 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17663 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17664 deunify intead of unify a charset.
17665 (string_xstring_p): Add `const' to local variables.
17666 (find_charsets_in_text): Add `const' to arguments and local variables.
17667 (encode_char): Adjust for the change of Funify_charset. Fix
17668 detecting of invalid code.
17669 (Fset_charset_priority): Increment charset_ordered_list_tick.
17670 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17671 and TO_CODE.
17672
17673 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17674 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17675 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17676 (decode_coding_ccl, consume_chars)
17677 (Ffind_coding_systems_region_internal)
17678 (Fcheck_coding_systems_region): Add `const' to local variables.
17679
17680 * print.c (print_object): Use octal form for printing the
17681 contents of a bool vector.
17682
176832008-02-01 Dave Love <fx@gnu.org>
17684
17685 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17686 <version == 20>: Refuse to load.
17687
176882008-02-01 Dave Love <fx@gnu.org>
17689
17690 * fns.c: Move coding.h.
17691 (Qcodeset, Qdays, Qmonths): New.
17692 (concat): Use CHARACTERP instead of INTEGERP.
17693 (Flocale_codeset): Delete.
17694 (Flanginfo): New function.
17695 (syms_of_fns): Change accordingly.
17696
17697 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17698
176992008-02-01 Dave Love <fx@gnu.org>
17700
17701 * casetab.c (init_casetab_once, init_casetab_once): Fix
17702 CHAR_TABLE_SET call.
17703
17704 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17705
17706 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17707
17708 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17709 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17710 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17711
17712 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17713
17714 * coding.c (ENCODE_DESIGNATION, decode_eol)
17715 (make_conversion_work_buffer, code_conversion_restore)
17716 (Fdefine_coding_system_internal): Convert Lisp types.
17717 (code_conversion_restore): Use EQ, not ==.
17718 (Fencode_coding_string): Fix code_convert_string call.
17719
17720 * coding.h (code_convert_region): Fix prototype.
17721
17722 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17723
17724 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17725 (Ffontset_info): Convert Lisp types.
17726
17727 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17728
17729 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17730
17731 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17732
17733 * chartab.c: Include "...h", not <...h> in some cases.
17734
17735 * callproc.c (Fcall_process): Remove unused variables.
17736
177372008-02-01 Dave Love <fx@gnu.org>
17738
17739 * coding.c (Fset_coding_system_priority): Allow null arg list.
17740
177412008-02-01 Dave Love <fx@gnu.org>
17742
17743 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17744 (Fself_insert_and_exit): Use CHARACTERP.
17745
17746 * callproc.c (Fcall_process): Remove unused vars.
17747
17748 * xterm.c (XTread_socket): Add extra dead keysyms.
17749
17750 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17751
17752 * dispextern.h: Remove prototypes for redraw_frame,
17753 redraw_garbaged_frames.
17754
17755 * cmds.c (Fself_insert_command): Use CHARACTERP.
17756
17757 * chartab.c (make_sub_char_table): Remove unused var.
17758 (Fset_char_table_default, Fmap_char_table): Doc fix.
17759
17760 * keymap.c (access_keymap): Remove generic char code.
17761 (push_key_description): Use CHARACTERP.
17762
177632008-02-01 Dave Love <fx@gnu.org>
17764
17765 * charset.c: Doc fixes.
17766 (Funify_charset): Extra checking.
17767
177682008-02-01 Dave Love <fx@gnu.org>
17769
17770 * lread.c: Remove some unused variables.
17771 (safe_to_load_p): If safe, return the magic number version byte.
17772 (Fload): Maybe use load-with-code-conversion.
17773
177742008-02-01 Kenichi Handa <handa@m17n.org>
17775
17776 * category.c (Fmodify_category_entry): Don't modify the contents
17777 of category_set for characters out of the range. Avoid
17778 unnecessary modification.
17779
17780 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17781 Vchar_unify_table. The default value of the table is now nil.
17782
17783 * character.c (syms_of_character): Setup Vchar_width_table for
17784 eight-bit-control and raw-byte chars.
17785
17786 * charset.h (enum define_charset_arg_index): Delete
17787 charset_arg_parents and add charset_arg_subset and
17788 charset_arg_superset.
17789 (enum charset_attr_index): Delete charset_parents and add
17790 charset_subset and charset_superset.
17791 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17792 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17793 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17794 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17795 (CHARSET_SUPERSET): New macros.
17796 (charset_work): Extern it.
17797 (ENCODE_CHAR): Use charset_work.
17798 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17799 (map_charset_chars): Extern it.
17800
17801 * charset.c (load_charset_map): Set the default value of encoder
17802 and deunifier char-tables to nil.
17803 (map_charset_chars): Change argument. Change callers. Use
17804 map_char_table_for_charset instead of map_char_table.
17805 (Fmap_charset_chars): New optional args from_code and to_code.
17806 (Fdefine_charset_internal): Adjust for the change of
17807 `define-charset' (:parents -> :subset or :superset).
17808 (charset_work): New variable.
17809 (encode_char, syms_of_charset): Adjust for the change of
17810 Fdefine_charset_internal.
17811 (Ffind_charset_string): Setup the vector `charsets' correctly.
17812
17813 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17814 the previous change.
17815 (char_table_ref_and_range): Adjust for the above change.
17816 (map_sub_char_table_for_charset): New function.
17817 (map_char_table_for_charset): New function.
17818
17819 * keymap.c (describe_vector): Handle a char-table directly here.
17820 (describe_char_table): Delete.
17821
17822 * lisp.h (map_charset_chars): Delete.
17823
178242008-02-01 Dave Love <fx@gnu.org>
17825
17826 * fns.c (count_combining): Comment out (unused).
17827 (Flocale_codeset): New.
17828 (syms_of_fns): Defsubr it.
17829
17830 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17831 (size_t): Remove.
17832
178332008-02-01 Dave Love <fx@gnu.org>
17834
17835 * Makefile.in (chartab.o): Depend on charset.h.
17836
178372008-02-01 Kenichi Handa <handa@m17n.org>
17838
17839 * character.c (syms_of_character): Set the default value of
17840 Vprintable_chars to Qnil.
17841
178422008-02-01 Dave Love <fx@gnu.org>
17843
17844 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17845
178462008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * charset.c (load_charset_map): Handle the case that from < to
17849 correctly.
17850
17851 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17852 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17853 Pay attention to raw-8-bit chars.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17858 It is not bytecompiled now.
17859
17860 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17861 (charset_jisx0208): New variables.
17862 (Fdefine_charset_internal): Setup them if appropriate.
17863 (init_charset_once): Initialize them to -1.
17864
17865 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17866 (charset_jisx0208): Extern them.
17867
17868 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17869 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17870 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17871 (setup_iso_safe_charsets): Fix arguments to Fassq.
17872 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17873 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17874 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17875 (encode_coding_iso_2022): Change the 1st arg to
17876 ENCODE_ISO_CHARACTER to a variable.
17877
178782008-02-01 Kenichi Handa <handa@m17n.org>
17879
17880 * charset.h (enum define_charset_arg_index): New enums
17881 charset_arg_min_code and charset_arg_max_code.
17882 (struct charset): New member char_index_offset.
17883
17884 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17885 Take charset->char_index_offset into account.
17886 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17887 args[charset_arg_max_code]. Setup charset.char_index_offset.
17888 (syms_of_charset): Fix args to Fdefine_charset_internal.
17889
178902008-02-01 Dave Love <fx@gnu.org>
17891
17892 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17893
178942008-02-01 Dave Love <fx@gnu.org>
17895
17896 * coding.c: Doc fixes.
17897 (Fcoding_system_aliases): Fix return value.
17898 (Qmac): Remove (duplicated) definition.
17899
179002008-02-01 Dave Love <fx@gnu.org>
17901
362654a6
JB
17902 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17903 New functions.
aac0c6e3
MR
17904
17905 * character.c (Fstring): Doc fix.
17906
17907 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17908
362654a6 17909 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17910 (font-encoding-alist): Doc fix.
17911
179122008-02-01 Dave Love <fx@gnu.org>
17913
17914 * term.c (costs_set): Declare static, non-initialized for pcc.
17915 (encode_terminal_code): Remove unused var.
17916
17917 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17918 for K&R.
17919
17920 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17921
17922 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17923 (suffixes): Move out of make_subsidiaries for K&R.
17924
17925 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17926
17927 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17928
179292008-02-01 Dave Love <fx@gnu.org>
17930
17931 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17932
17933 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17934
179352008-02-01 Yong Lu <lyongu@asia-infonet.com>
17936
17937 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17938
17939 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17940
179412008-02-01 Kenichi Handa <handa@m17n.org>
17942
17943 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17944 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17945
179462008-02-01 Kenichi Handa <handa@m17n.org>
17947
17948 * coding.c (decode_coding_charset): Adjust for the change of
17949 Fdefine_coding_system_internal.
17950 (Fdefine_coding_system_internal): For a coding system of
17951 `charset' type, store a list of charset IDs in
17952 `charset_attr_charset_valids' element of coding attributes.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17957 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17958 caller. Handle 2-byte and 3-byte charsets correctly.
17959 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17960 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17961 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17962 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17963 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17964 sequence.
17965 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17966 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17967 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17968 and alt&rule composition.
17969 (decode_coding_iso_2022): Handle composition correctly.
17970 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17971
17972 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17973 re-defining a charset. If the charset has :emacs-mule-id, setup
17974 emacs_mule_bytes.
17975 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17976
179772008-02-01 Kenichi Handa <handa@m17n.org>
17978
17979 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17980 (encode_coding_big5, encode_coding_charset): If coding requires safe
17981 encoding, produce a character specified by
17982 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17983
179842008-02-01 Dave Love <fx@gnu.org>
17985
17986 * xterm.c (XSetIMValues): Declare.
17987
17988 * process.c: Conditionally include sys/wait.h, pty.h.
17989
17990 * print.c (print_object): Fix print format for 64-bit systems.
17991
17992 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17993
17994 * buffer.c (emacs_strerror): Declare.
17995
17996 * fontset.c (Fclear_face_cache): Declare.
17997 (accumulate_font_info): Comment-out (unused).
17998 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17999 variables.
18000
18001 * character.h (string_escape_byte8): Declare.
18002
18003 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18004 unused vars.
18005 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18006 (Fmap_charset_chars): Doc fix.
18007
18008 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18009 (Fset_coding_system_priority, Fset_coding_system_priority)
18010 (Fdefine_coding_system_internal): Doc fix.
18011
180122008-02-01 Dave Love <fx@gnu.org>
18013
18014 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * character.c (string_escape_byte8): Make multibyte string with
18019 correct size.
18020
18021 * charset.c (Fmake_char): Delete unnecessary code.
18022
180232008-02-01 Kenichi Handa <handa@m17n.org>
18024
18025 * xfns.c (x_encode_text): Allocate coding.destination here, and
18026 call encode_coding_object with dst_object Qnil.
18027
18028 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18029 multibyte form correctly.
18030
18031 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18032 against Vfont_encoding_alist.
18033
18034 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18035 handling of charset list.
18036 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18037 (decode_coding_object): Move point to coding->dst_pos before
18038 calling post-read-conversion function.
18039 (encode_coding_object): Give correct arguments to
18040 pre-write-conversion. Ignore the return value of
18041 pre-write-conversion function. Pay attention to the case that
18042 pre-write-conversion changes the current buffer. If dst_object is
18043 Qt, even if coding->src_bytes is zero, allocate at least one byte
18044 to coding->destination.
18045
18046 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18047
18048 * charset.c (Fmake_char): Make it more backward compatible.
18049 (Fmap_charset_chars): Fix docstring.
18050
180512008-02-01 Dave Love <fx@gnu.org>
18052
18053 * coding.c: Doc fixes.
18054 (Fdefine_coding_system_alias): Use names, not symbols, in
18055 coding-system-alist.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18060 of calling free_realized_face.
18061
180622008-02-01 Yong Lu <lyongu@asia-infonet.com>
18063
18064 * charset.c (read_hex): Don't treat SPC as a comment starter.
18065 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18066 (Fdecode_char): Fix typo.
18067
180682008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * charset.h (struct charset): New member `code_space_mask'.
18071
18072 * coding.c (coding_set_source): Delete the local variable beg_byte.
18073 (encode_coding_charset, Fdefine_coding_system_internal):
18074 Delete the local variable charset.
18075 (Fdefine_coding_system_internal): Setup
18076 attrs[coding_attr_charset_valids] correctly.
18077
18078 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18079 member to check if CODE is valid or not.
18080 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18081 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18082 is within the range of charset->min_code and carset->max_code.
18083
180842008-02-01 Dave Love <fx@gnu.org>
18085
18086 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18087
18088 * dispextern.h (generate_ascii_font): Fix return type.
18089
18090 * xfaces.c (generate_ascii_font): Fix arg declaration.
18091
18092 * coding.c (coding_inherit_eol_type)
18093 (Fset_terminal_coding_system_internal)
18094 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18099 multiple charsets correctly.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * search.c (boyer_moore): Fix handling of multibyte character
18104 translation.
18105
18106 * xdisp.c (display_mode_element): When the variable `elt' is
18107 changed, update `this' and `lisp_string'.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18112
18113 * callproc.c (Fcall_process): Be sure to give the current buffer
18114 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18115
18116 * charset.c (struct charset_map_entries): New struct.
18117 (load_charset_map): Rename from parse_charset_map. New args
18118 entries and n_entries. Change caller.
18119 (load_charset_map_from_file): Rename from load_charset_map.
18120 Change caller. New arg control_flag. Call load_charset_map at
18121 the tail.
18122 (load_charset_map_from_vector): New function.
18123 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18124 (encode_char): If the charset is compact, change a character index
18125 to a code point.
18126
18127 * coding.c (coding_alloc_by_making_gap): Check the case that the
18128 source and destination are the same correctly.
18129 (decode_coding_raw_text): Set coding->consumed_char and
18130 coding->consumed to 0.
18131 (produce_chars): If coding->chars_at_source is nonzero, update
18132 coding->consumed_char and coding->consumed before calling
18133 alloc_destination.
18134 (Fdefine_coding_system_alias): Register ALIAS in
18135 Vcoding_system_alist.
18136 (syms_of_coding): Define `no-conversion' coding system at the tail.
18137
18138 * fileio.c (Finsert_file_contents): Set coding_system instead of
18139 val. If the current buffer is multibyte, always call
18140 decode_coding_gap.
18141
18142 * xfaces.c (try_font_list): Give higher priority to fontset's
18143 family than face's family.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * callproc.c (Fcall_process): Be sure to give the current buffer
18148 to decode_coding_c_string.
18149
18150 * xfaces.c (try_font_list): Give a family specified in a fontset
18151 higher priority than a family specified in a face.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18156 Fix arguments to insert_from_buffer.
18157
18158 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18163 (decode_coding_gap): Set coding->dst_multibyte correctly.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18168 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18169 (encode_coding_utf_16): Substitute coding->default_char for
18170 non-Unicode characters.
18171 (decode_coding): Don't call record_insert here.
18172 (setup_coding_system): Initialize `surrogate' of
18173 coding->spec.utf_16 to 0.
18174 (EMIT_ONE_BYTE): Fix for multibyte case.
18175
18176 * insdel.c (insert_from_gap): Call record_insert.
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * casefiddle.c (casify_region): Fix multibyte case.
18181
18182 * character.c (c_string_width): Add return type `int'.
18183 (char_string_with_unification): Delete arg ADVANCED.
18184
18185 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18186 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18187 (CHAR_STRING_ADVANCE): Make it do-while statement.
18188
18189 * chartab.c (sub_char_table_set_range): Optimize for the case
18190 DEPTH == 3. Add workaround code for a GCC optimization bug.
18191
18192 * charset.c (parse_charset_map): Remove an unused variable.
18193
18194 * coding.c: Delete unused variables.
18195
18196 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18197 earlier. If inserted is zero and the coding system doesn't
18198 require flushing, don't call decode_coding_gap.
18199
18200 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18201
182022008-02-01 Kenichi Handa <handa@m17n.org>
18203
18204 The following changes are for using Unicode as an internal
18205 character model, and use UTF-8 format for buffer/string
18206 representation.
18207
18208 * .gdbinit (xchartable): Adjust for the change of char table structure.
18209 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18210
18211 * Makefile.in (obj): Add character.o and chartab.o.
18212 (lisp, shortlisp): Remove utf-8.elc.
18213 (*.o): For many files, change dependency on charset.h to
18214 character.h, and add dependency on character.h.
18215 (character.o, chartab.o): New targets.
18216
18217 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18218 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18219 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18220 of "charset.h".
18221
18222 * dired.c, filelock.c: Include "character.h".
18223
18224 * alloc.c: Include "character.h" instead of "charset.h".
18225 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18226 (syms_of_alloc): Remove defsubr for Smake_char_table.
18227
18228 * buffer.c: Include "character.h" instead of "charset.h", don't
18229 include "coding.h".
18230 (Fset_buffer_multibyte): Adjust for UTF-8.
18231
18232 * buffer.h: EXFUN Fbuffer_live_p.
18233
18234 * callproc.c: Include "character.h" instead of "charset.h".
18235 (Fcall_process): Big change for the new code-conversion APIs.
18236
18237 * casetab.c: Include "character.h" instead of "charset.h".
18238 (set_canon, set_identity, shuffle): Adjust for the new
18239 map_char_table spec.
18240 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18241 accessing the char table structure.
18242
18243 * chartab.c: New file that implements char table.
18244
18245 * category.c: Include "character.h".
18246 (copy_category_entry): New function.
18247 (copy_category_table): Call map_char_table and copy_category_entry.
18248 (Fmake_category_table): Initialize all top-level slots.
18249 (char_category_set): New function.
18250 (modify_lower_category_set): Delete.
18251 (Fmodify_category_entry): Call char_table_ref_and_range.
18252
18253 * category.h (CATEGORY_SET): Just call char_category_set.
18254
18255 * ccl.c: Include "character.h".
18256 (Qccl, Qcclp): New variables.
18257 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18258 it's less than 256.
18259 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18260 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18261 and DST type.
18262 (ccl_driver): Change types of argument, adjust code accordingly.
18263 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18264 ccl_driver.
18265 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18266
18267 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18268 New members src_multibyte, dst_multibyte, consumed, and produced.
18269 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18270 (CODING_SPEC_CCL_PROGRAM): New macro.
18271 (ccl_driver): Update prototype.
18272 (Qccl, Qcclp, Fccl_program_p): Extern them.
18273 (CHECK_CCL_PROGRAM): New macro.
18274
18275 * character.c, character.h, chartab.c: New files.
18276
18277 * charset.c: Mostly re-written. Move character and multibyte sequence
18278 handling codes to character.c.
18279
18280 * charset.h: Mostly re-written. Move character and multibyte sequence
18281 handling codes to character.h.
18282
18283 * coding.c, coding.h: Mostly re-written.
18284
18285 * composite.c: Include "character.h" instead of "charset.h".
18286 (CHAR_WIDTH): Move to character.h.
18287 (HASH_KEY, HASH_VALUE): Delete.
18288
18289 * composite.h (enum composition_method): Change order of enumeration
18290 symbols.
18291
18292 * data.c: Include "character.h" instead of "charset.h".
18293 (Faref): Call CHAR_TABLE_REF for a char table.
18294 (Faset): Call CHAR_TABLE_SET for a char table.
18295
18296 * dispextern.h (free_realized_face, check_face_attribytes)
18297 (generate_ascii_font): Extern them.
18298 (free_realized_multibyte_face): Delete extern.
18299
18300 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18301 table structure.
18302
18303 * editfns.c: Include "character.h" instead of "charset.h".
18304 (Fchar_to_string): Always call CHAR_STRING.
18305
18306 * emacs.c (main): Call init_charset_once, init_charset,
18307 syms_of_chartab, and syms_of_character.
18308
18309 * fileio.c: Include "character.h" instead of "charset.h".
18310 (Finsert_file_contents): Big change for the new code-conversion API.
18311 (choose_write_coding_system, Fwrite_region): Likewise.
18312 (build_annotations_2): Delete.
18313 (e_write): Big change for the new code-conversion API.
18314
18315 * fns.c: Include "character.h" instead of "charset.h".
18316 (copy_sub_char_table): Move to chartab.c.
18317 (Fcopy_sequence): Call copy_char_table for a char table.
18318 (concat): Delete codes calling count_multibyte.
18319 (string_char_to_byte, string_byte_to_char): Adjust for the new
18320 multibyte form.
18321 (internal_equal): Adjust for the change of char table structure.
18322 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18323 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18324 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18325 (char_table_translate, optimize_sub_char_table)
18326 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18327 chartab.c.
18328 (char_table_ref_and_index): Delete.
18329 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18330 (Fmd5): Call preferred_coding_system instead of accessing
18331 Vcoding_category_list. Adjust for the new code-conversion API.
18332 (syms_of_fns): Move defsubr for char table related functions to
18333 chartab.c.
18334
18335 * fontset.c: Mostly re-written.
18336
18337 * fontset.h (struct font_info): Change type of the member encoding_type.
18338 (enum FONT_SPEC_INDEX): New enum.
18339 (fontset_font_pattern, fs_load_font): Update prototype.
18340 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18341
18342 * indent.c: Include "character.h" instead of "charset.h".
18343 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18344
18345 * insdel.c: Include "character.h" instead of "charset.h".
18346 (copy_text): Don't refer to Vnonascii_translation_table.
18347 (insert_from_gap): New function.
18348
18349 * keyboard.c: Include "character.h" instead of "charset.h".
18350 (command_loop_1): Never call direct_output_forward_char before
18351 a non-ASCII character.
18352 (read_char): If Vkeyboard_translate_table is a char table, always
18353 translate a character.
18354
18355 * keymap.c: Include "character.h".
18356 (store_in_keymap): Handle the case that IDX is a cons.
18357 (Fdefine_key): Handle the case that KEY is a cons and the car part
18358 is also a cons (range).
18359 (push_key_description): Adjust for the new character code.
18360 (describe_vector): Call describe_char_table for a char table.
18361 (describe_char_table): New function.
18362
18363 * keymap.h (describe_char_table): Extern it.
18364
18365 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18366 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18367 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18368 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18369 Delete.
18370 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18371 structure.
18372 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18373 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18374 (CHARTAB_SIZE_BITS_3): New macros.
18375 (chartab_size): Extern it.
18376 (struct Lisp_Char_Table): Re-design.
18377 (struct Lisp_Sub_Char_Table): New structure.
18378 (HASH_KEY, HASH_VALUE): Move from fns.c.
18379 (CHARACTERBITS): Define as 22.
18380 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18381 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18382 (GC_SUB_CHAR_TABLE_P): New macro.
18383 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18384 (code_convert_string_norecord): Deleted extern.
18385 (init_character_once, syms_of_character, init_charset)
18386 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18387
18388 * lread.c: Include "character.h".
18389 (read_multibyte): New arg NBYTES.
18390 (read_escape): Change the meaning of returned *BYTEREP.
18391 (to_multibyte): Delete.
18392 (read1): Adjust the handling of char table and string.
18393
18394 * print.c: Include "character.h" instead of "charset.h".
18395 (print_string): Convert 8-bit raw bytes to octal form by
18396 string_escape_byte8.
18397 (print_object): Adjust for the new multibyte form. Print 8-bit
18398 raw bytes always in octal form. Handle sub char table correctly.
18399
18400 * process.c: Include "character.h" instead of "charset.h".
18401 (read_process_output, send_process): Adjust for the new
18402 code-conversion API.
18403
18404 * puresize.h (BASE_PURESIZE): Increase.
18405
18406 * regex.c: Include "character.h" instead of "charset.h".
18407 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18408 (regex_compile): Accept a range whose starting and ending
18409 character have different leading bytes.
18410 (analyse_first): Adjust for the above change.
18411
18412 * search.c: Include "character.h" instead of "charset.h".
18413 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18414 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18415
18416 * syntax.c: Include "character.h" instead of "charset.h".
18417 (syntax_parent_lookup): Delete.
18418 (Fmodify_syntax_entry): Accept a cons as CHAR.
18419 (skip_chars): Adjust for the new multibyte form.
18420 (init_syntax_once): Call char_table_set_range instead of directly
18421 accessing the structure of a char table.
18422
18423 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18424 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18425 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18426 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18427
18428 * term.c: Include "buffer.h" and "character.h".
18429 (encode_terminal_code, write_glyphs): Adjust for the new
18430 code-conversion API.
18431 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18432
18433 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18434
18435 * xdisp.c: Include "character.h".
18436 (get_next_display_element): Adjust for the new multibyte form.
18437 (disp_char_vector): Adjust for the new char table structure.
18438 (decode_mode_spec_coding): Adjust for the new structure of
18439 coding system.
18440 (decode_mode_spec): Adjust for the new code-conversion API.
18441
18442 * xfaces.c: Include "character.h" instead of "charset.h".
18443 (load_face_font): Adjust for the change of choose_face_font and
18444 FS_LOAD_FONT.
18445 (generate_ascii_font): New function.
18446 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18447 (set_font_frame_param): Adjust for the change of choose_face_font.
18448 (free_realized_face): Make it public.
18449 (free_realized_faces_for_fontset): Rename from
18450 free_realized_multibyte_face. Free also faces realized for ASCII.
18451 (choose_face_font): Change arguments. Adjust for the change of
18452 fontset_font_pattern and FS_LOAD_FONT.
18453
18454 * xfns.c: Include "character.h".
18455 (x_encode_text): Adjust for the new code-conversion API.
18456
18457 * xselect.c: Don't include "charset.h".
18458 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18459
18460 * xterm.c: Include "character.h".
18461 (x_encode_char): New argument CHARSET. Change caller.
18462 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18463 Call ENCODE_CHAR instead of SPLIT_CHAR.
18464 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18465 CHAR_WIDTH instead of CHARSET_WIDTH.
18466 (XTread_socket): Adjust for the new code-conversion API.
18467 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18468 (x_load_font): Adjust for the change of struct font.
18469
184702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18471
18472 * xfaces.c (face_at_buffer_position): Remove unused vars.
18473
184742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18475
18476 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18477 Fix overflow checking.
18478
184792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18480
18481 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18482 Cancel previous change.
18483
184842008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18485
18486 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18487 ccl->eight_bit_control. Fix check for buffer overflow.
18488 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18489 (ccl_driver): Initialize extra_bytes to 0.
18490
184912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18492
18493 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18494 return it ORed with ctrl_modifier.
18495
184962008-01-29 Miles Bader <miles@gnu.org>
18497
18498 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18499
185002008-01-28 Jason Rumney <jasonr@gnu.org>
18501
18502 * w32.c (stat): Don't double check for networked drive.
18503
185042008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18505
18506 * window.c (run_window_configuration_change_hook): New function.
18507 Code extracted from set_window_buffer. Set the selected frame.
18508 (set_window_buffer): Use it.
18509 * window.h (run_window_configuration_change_hook): Declare.
18510 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18511
18512 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18513
185142008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18515
18516 * Makefile.in: Remove references to unused macros.
18517
185182008-01-26 Eli Zaretskii <eliz@gnu.org>
18519
18520 * w32.c (g_b_init_get_sid_sub_authority)
18521 (g_b_init_get_sid_sub_authority_count): New static variables.
18522 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18523 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18524 (init_user_info): Use them to retrieve uid and gid.
18525 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18526 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18527 st_uid and st_gid of the file.
18528
185292008-01-26 Jason Rumney <jasonr@gnu.org>
18530
18531 * w32.c (logon_network_drive): New function.
18532 (stat): Use it.
18533
185342008-01-26 Chong Yidong <cyd@stupidchicken.com>
18535
18536 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18537 invisible text covered with an ellipsis.
18538
185392008-01-25 Richard Stallman <rms@gnu.org>
18540
18541 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18542 jump back to beginning. Move some other initializations after that.
18543 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18544 New variables.
18545 (syms_of_xdisp): Init them.
18546
18547 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18548
18549 * buffer.c (reset_buffer_local_variables):
18550 Implement `permanent-local-hook'.
18551 (Qpermanent_local_hook): New variable.
18552 (syms_of_buffer): Init and staticpro it.
18553
185542008-01-25 Michael Albinus <michael.albinus@gmx.de>
18555
18556 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18557
185582008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18559
18560 * fns.c (Fclrhash): Return TABLE.
18561
185622008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18563
18564 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18565 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18566 is set even without positional changes.
18567 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18568
18569 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18570
185712008-01-23 Jason Rumney <jasonr@gnu.org>
18572
18573 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18574
18575 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18576 the unicode range available in MULE by locale-coding-system.
18577 Improve dbcs lead byte detection. Set event timestamp and modifiers
18578 earlier.
18579
185802008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18581
18582 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18583 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18584 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18585 when used on child processes.
18586
185872008-01-21 Michael Albinus <michael.albinus@gmx.de>
18588
18589 * dbusbind.c (Fdbus_method_return_internal): Rename from
18590 Fdbus_method_return.
18591 (Fdbus_unregister_object): Move to dbus.el.
18592 (Fdbus_call_method, Fdbus_method_return_internal)
18593 (Fdbus_send_signal): Improve debug messages.
18594
185952008-01-20 Martin Rudalics <rudalics@gmx.at>
18596
18597 * undo.c (undo_inhibit_record_point): New variable.
18598 (syms_of_undo): Initialize it.
18599 (record_point): Don't record point when undo_inhibit_record_point
18600 is set.
18601
186022008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18605
18606 * xdisp.c (Qauto_hscroll_mode): New var.
18607 (syms_of_xdisp): Initialize it.
18608 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18609 window's buffer.
18610 (hscroll_windows): Don't check automatic_hscrolling_p here.
18611
18612 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18613 vscroll if we're setting window-buffer to the value it already has.
18614
186152008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18616
18617 * m/intel386.h: Remove references to XENIX.
18618
186192008-01-17 Andreas Schwab <schwab@suse.de>
18620
18621 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18622 instead of HAVE_X86_64_LIB64_DIR.
18623 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18624
186252008-01-17 Glenn Morris <rgm@gnu.org>
18626
18627 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18628 to HAVE_X86_64_LIB64_DIR.
18629
186302008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18631
18632 * s/irix3-3.h:
18633 * s/irix4-0.h:
18634 * s/386-ix.h:
18635 * s/domain.h:
18636 * s/hpux9-x11r4.h:
18637 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18638
18639 * sysdep.c: Remove code containing references to symbols defined
18640 by unsupported systems.
18641
186422008-01-16 Glenn Morris <rgm@gnu.org>
18643
18644 * coding.c (select-safe-coding-system-function): Doc fix.
18645
186462008-01-15 Glenn Morris <rgm@gnu.org>
18647
18648 * config.in: Revert 2008-01-13 change: this is a generated file.
18649
186502008-01-13 Tom Tromey <tromey@redhat.com>
18651
18652 * lisp.h: Fix typo.
18653
186542008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18655
18656 * m/sequent-ptx.h:
18657 * m/sequent.h:
18658 * s/ptx.h:
18659 * s/ptx4-2.h:
18660 * s/ptx4.h: Remove files for systems no longer supported.
18661
18662 * callproc.c (Fcall_process): Fix previous change.
18663
186642008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18665
18666 * unexsunos4.c: Remove file, system not supported anymore.
18667
18668 * m/mips.h:
18669 * m/intel386.h:
18670 * callproc.c:
18671 * config.in:
18672 * ecrt0.c:
18673 * emacs.c:
18674 * fileio.c:
18675 * frame.c:
18676 * getpagesize.h:
18677 * keyboard.c:
18678 * lread.c:
18679 * process.c:
18680 * puresize.h:
18681 * sysdep.c:
18682 * systty.h:
18683 * syswait.h:
18684 * unexec.c:
18685 * xdisp.c:
18686 * alloc.c: Remove code containing references to symbols defined by
18687 unsupported systems.
18688
186892008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18690
18691 * coding.c (detect_coding_mask): Fix previous change.
18692
186932008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18694
18695 * coding.c (detect_coding_iso2022): New arg
18696 latin_extra_code_state. Allow Latin extra codes only
18697 when *latin_extra_code_state is nonzero.
18698 (detect_coding_mask): If there is a NULL byte, detect the encoding
18699 as UTF-16 or binary. If Latin extra codes exist, detect the
18700 encoding as ISO-2022 only when there's no other proper encoding is
18701 found.
18702
187032008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18704
18705 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18706 #ifdef MAC_OS.
18707
187082008-01-08 Richard Stallman <rms@gnu.org>
18709
18710 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18711
187122008-01-06 Nick Roberts <nickrob@snap.net.nz>
18713
18714 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18715 menu bar in parentheses.
18716
187172008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18718
18719 * m/7300.h:
18720 * m/acorn.h:
18721 * m/alliant-2800.h:
18722 * m/alliant.h:
18723 * m/alliant1.h:
18724 * m/alliant4.h:
18725 * m/altos.h:
18726 * m/amdahl.h:
18727 * m/apollo.h:
18728 * m/att3b.h:
18729 * m/aviion-intel.h:
18730 * m/aviion.h:
18731 * m/celerity.h:
18732 * m/clipper.h:
18733 * m/cnvrgnt.h:
18734 * m/convex.h:
18735 * m/cydra5.h:
18736 * m/delta88k.h:
18737 * m/dpx2.h:
18738 * m/dual.h:
18739 * m/elxsi.h:
18740 * m/f301.h:
18741 * m/gould-np1.h:
18742 * m/gould.h:
18743 * m/i860.h:
18744 * m/ibmps2-aix.h:
18745 * m/ibmrt-aix.h:
18746 * m/ibmrt.h:
18747 * m/irist.h:
18748 * m/is386.h:
18749 * m/isi-ov.h:
18750 * m/mega68.h:
18751 * m/mg1.h:
18752 * m/news-r6.h:
18753 * m/news-risc.h:
18754 * m/news.h:
18755 * m/nh3000.h:
18756 * m/nh4000.h:
18757 * m/ns16000.h:
18758 * m/ns32000.h:
18759 * m/nu.h:
18760 * m/orion.h:
18761 * m/orion105.h:
18762 * m/paragon.h:
18763 * m/pfa50.h:
18764 * m/plexus.h:
18765 * m/pyramid.h:
18766 * m/pyrmips.h:
18767 * m/sh3el.h:
18768 * m/sps7.h:
18769 * m/sr2k.h:
18770 * m/stride.h:
18771 * m/sun1.h:
18772 * m/sun2.h:
18773 * m/sun3-68881.h:
18774 * m/sun3-fpa.h:
18775 * m/sun3-soft.h:
18776 * m/sun3.h:
18777 * m/sun386.h:
18778 * m/symmetry.h:
18779 * m/tad68k.h:
18780 * m/tahoe.h:
18781 * m/targon31.h:
18782 * m/tek4300.h:
18783 * m/tekxd88.h:
18784 * m/tower32.h:
18785 * m/tower32v3.h:
18786 * m/ustation.h:
18787 * m/wicat.h:
18788 * m/xps100.h:
18789 * s/cxux.h:
18790 * s/cxux7.h:
18791 * s/dgux.h:
18792 * s/dgux4.h:
18793 * s/dgux5-4-3.h:
18794 * s/dgux5-4r2.h:
18795 * s/esix.h:
18796 * s/esix5r4.h:
18797 * s/hiuxmpp.h:
18798 * s/hiuxwe2.h:
18799 * s/iris3-5.h:
18800 * s/iris3-6.h:
18801 * s/isc2-2.h:
18802 * s/isc3-0.h:
18803 * s/isc4-0.h:
18804 * s/isc4-1.h:
18805 * s/newsos5.h:
18806 * s/newsos6.h:
18807 * s/osf1.h:
18808 * s/osf5-0.h:
18809 * s/riscix1-1.h:
18810 * s/riscix12.h:
18811 * s/sco4.h:
18812 * s/sco5.h:
18813 * s/sunos4-0.h:
18814 * s/sunos4-1.h:
18815 * s/sunos413.h:
18816 * s/sunos4shr.h:
18817 * s/umax.h:
18818 * s/unipl5-2.h:
18819 * s/xenix.h:
18820 * cxux-crt0.s:
18821 * unexapollo.c:
18822 * unexconvex.c:
18823 * unexenix.c:
18824 * unexsni.c: Remove files for systems no longer supported.
18825
18826 * m/intel386.h: Remove references to unsupported systems.
18827
18828 * w32.c (get_emacs_configuration): Remove reference to i860.
18829
18830 * sysdep.c: Remove dead code.
18831
188322008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18833
18834 * s/rtu.h:
18835 * m/masscomp.h: Remove files. Platform is obsolete.
18836
188372008-01-04 Michael Albinus <michael.albinus@gmx.de>
18838
18839 * dbusbind.c (Fdbus_method_return): New function.
18840 (xd_read_message): Add the serial number to the event.
18841 (Fdbus_register_method): Activate the function.
18842
188432008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18844
18845 * keyboard.c (read_key_sequence): Fix typo.
18846
188472008-01-03 Michael Albinus <michael.albinus@gmx.de>
18848
18849 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18850 (xd_signature, xd_append_arg): Handle element type detection for
18851 empty arrays.
18852 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18853 SDATA () calls; this must be solved more general.
18854 (Fdbus_register_signal): Use SBYTES instead of strlen.
18855
188562008-01-03 Magnus Henoch <magnus@zemdatav>
18857
18858 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18859 unsigned int for byte values (necessary for big-endian platform).
18860 (Fdbus_call_method): Handle the case of no returned arguments.
18861
188622007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18863
18864 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18865
188662007-12-31 Magnus Henoch <mange@freemail.hu>
18867
18868 * dbusbind.c (xd_signature): Signature of variant is just "v".
18869
188702007-12-30 Michael Albinus <michael.albinus@gmx.de>
18871
18872 * dbusbind.c: Fix several errors and compiler warnings.
18873 Reported by Tom Tromey <tromey@redhat.com>.
18874 (XD_ERROR, XD_DEBUG_MESSAGE)
18875 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18876 (xd_append_arg): Part for basic D-Bus types rewritten.
18877 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18878 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18879 appropriate.
18880 (xd_read_message): Return Qnil. Don't signal an error; it is not
18881 useful during event reading.
18882 (Fdbus_register_signal): Signal an error if the check for
18883 FUNCTIONP fails.
18884 (Fdbus_register_method): New function. The implementation is not
18885 complete, the call of the function signals an error therefore.
18886 (Fdbus_unregister_object): New function, renamed from
18887 Fdbus_unregister_signal. The initial check signals an error, if
18888 the object is not well formed.
18889
188902007-12-30 Richard Stallman <rms@gnu.org>
18891
18892 * textprop.c (get_char_property_and_overlay):
18893 Signal error if POSITION is out of range in a buffer.
18894
188952007-12-29 Martin Rudalics <rudalics@gmx.at>
18896
18897 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18898 because the original parameters are in pure storage now.
18899
189002007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18901
18902 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18903
189042007-12-22 Eli Zaretskii <eliz@gnu.org>
18905
18906 * callint.c (syms_of_callint) <command-history>: Add reference to
18907 history-length in the doc string.
18908
189092007-12-17 Jason Rumney <jasonr@gnu.org>
18910
18911 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18912 before passing as wParam.
18913
189142007-12-22 Michael Albinus <michael.albinus@gmx.de>
18915
18916 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18917 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18918 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18919 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18920 as number.
18921 (Fdbus_call_method): Fix docstring.
18922
189232007-12-21 Michael Albinus <michael.albinus@gmx.de>
18924
18925 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18926 New macros.
18927 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18928 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18929 Simplify.
18930 (xd_signature): New function.
18931 (xd_append_arg): Compute also signatures. Major rewrite.
18932 (xd_retrieve_arg): Make debug messages friendly.
18933 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18934 Check for signatures of arguments.
18935
189362007-12-19 Michael Albinus <michael.albinus@gmx.de>
18937
18938 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18939 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18940 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18941 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18942 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18943 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18944 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18945 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18946 (xd_retrieve_value): Remove. Functionality included in ...
18947 (xd_append_arg): New function.
18948 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18949
189502007-12-16 Michael Albinus <michael.albinus@gmx.de>
18951
18952 * dbusbind.c (top): Include <stdio.h>.
18953 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18954 dbus_message_new_method_call and dbus_message_new_signal.
18955 (Fdbus_register_signal): Rename unique_name to uname.
18956 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18957 non-existing unique name. Fix typos in matching rule. Return an
18958 object which is useful in Fdbus_unregister_signal.
18959 (Fdbus_unregister_signal): Reimplementation, in order to remove
18960 only the corresponding entry.
18961 (Vdbus_registered_functions_table): Change the order of entries.
18962 Apply these changes in xd_read_message and Fdbus_register_signal.
18963
189642007-12-16 Andreas Schwab <schwab@suse.de>
18965
18966 * fileio.c (Finsert_file_contents): Fix overflow check to not
18967 depend on undefined integer overflow.
18968
189692007-12-14 Jason Rumney <jasonr@gnu.org>
18970
18971 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18972 for characters above 127.
18973
189742007-12-13 Jason Rumney <jasonr@gnu.org>
18975
18976 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18977 before dereferencing array.
18978 (lookup_vk_code): Remove zero comparison.
18979
189802007-12-14 Michael Albinus <michael.albinus@gmx.de>
18981
18982 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18983 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18984 Use `unsigned int' instead of `uint'.
18985 (xd_read_message, Fdbus_register_signal): Split expressions into
18986 multiple lines before operators "&&" and "||", according to the
18987 GNU Coding Standards.
18988
189892007-12-14 Eli Zaretskii <eliz@gnu.org>
18990
18991 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18992
189932007-12-12 Juri Linkov <juri@jurta.org>
18994
18995 * buffer.c (Frename_buffer): In interactive spec replace
18996 `read-buffer' with `read-string' that uses `buffer-name-history'
18997 as history, and the current buffer's name as default.
18998
189992007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19000
19001 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19002 manipulating the backtrace manually.
19003 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19004 (struct backtrace, backtrace_list): Remove.
19005 (command_loop_1): Remove dead var `no_direct'.
19006
19007 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19008 preserve non-built-in buffer-local variables.
19009 (Fkill_all_local_variables): Don't re-create&re-set permanent
19010 buffer-local variables.
19011
190122007-12-09 Juri Linkov <juri@jurta.org>
19013
19014 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19015 Lisp code that uses `read-buffer' with current buffer as default.
19016
190172007-12-08 Michael Albinus <michael.albinus@gmx.de>
19018
19019 * dbusbind.c (xd_read_message): Generate an event for every
19020 registered handler. There might be several handlers registered
19021 for the same signal.
19022 (Fdbus_register_signal): Don't overwrite a registration for the
19023 same signal. Add a new registration if handlers are different.
19024 (Vdbus_registered_functions_table): Rework doc string.
19025
190262007-12-07 Michael Albinus <michael.albinus@gmx.de>
19027
19028 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19029 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19030 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19031 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19032 Unify argument lists.
19033 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19034 arguments and hash table keys. Use unique name for service.
19035 (Fdbus_unregister_signal): Remove checks.
19036 (Vdbus_registered_functions_table): Fix doc string.
19037
190382007-12-05 Magnus Henoch <mange@freemail.hu>
19039
19040 * process.c (make_process): Initialize pty_flag to 0.
19041
190422007-12-05 Jason Rumney <jasonr@gnu.org>
19043
19044 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19045 specified XBMs.
19046
190472007-12-05 Richard Stallman <rms@gnu.org>
19048
19049 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19050
190512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19052
19053 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19054 New variable.
19055 (mac_try_close_socket) [MAC_OSX]: New function.
19056 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19057 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19058
19059 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19060 Use mac_try_close_socket.
19061
190622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19063
19064 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19065 reloc_base.
19066 (copy_dysymtab): Compute relocation base here.
19067 (rebase_reloc_address) [__ppc64__]: New function.
19068 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19069 changed.
19070
190712007-12-05 Jason Rumney <jasonr@gnu.org>
19072
19073 * w32proc.c (sys_spawnve): Quote args with wildcards.
19074
190752007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19076
19077 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19078 __objc_* sections.
19079 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19080
190812007-12-05 Michael Albinus <michael.albinus@gmx.de>
19082
19083 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19084 Move check for Vdbus_registered_functions_table to
19085 xd_read_queued_messages.
19086 (xd_read_queued_messages): Protect xd_read_message calls by
19087 internal_condition_case_1.
19088
190892007-12-04 Michael Albinus <michael.albinus@gmx.de>
19090
19091 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19092 Qdbus_system_bus and Qdbus_session_bus, respectively.
19093 (Vdbus_intern_symbols): Remove.
19094 (Vdbus_registered_functions_table): New hash table.
19095 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19096 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19097 Rewrite in order to manage registered functions by hash table
19098 Vdbus_registered_functions_table.
19099
191002007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19101
19102 * xterm.c: Update URL to Window Manager Specification in comment.
19103
191042007-12-02 Michael Albinus <michael.albinus@gmx.de>
19105
19106 * config.in (HAVE_DBUS): Add.
19107
19108 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19109 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19110 (obj): Add $(DBUS_OBJ).
19111 (LIBES): Add $(DBUS_LIBS).
19112 (dbusbind.o): New target.
19113
19114 * dbusbind.c: New file.
19115
19116 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19117
19118 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19119 (Qdbus_event): New Lisp symbol.
19120 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19121 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19122 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19123
19124 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19125
191262007-12-01 Richard Stallman <rms@gnu.org>
19127
19128 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19129
191302007-11-30 Jason Rumney <jasonr@gnu.org>
19131
19132 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19133 (w32con_reset_terminal_modes): Clear screen buffer.
19134 (w32_face_attributes): Don't use color indexes that are out of range.
19135 Only reverse the default colors.
19136
19137 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19138 WINDOWSNT.
19139
19140 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19141
191422007-11-29 Jason Rumney <jasonr@gnu.org>
19143
19144 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19145 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19146 if the terminal colors are initialized.
19147 (unspecified_fg, unspecified_bg): Remove unused declarations.
19148
191492007-11-29 Andreas Schwab <schwab@suse.de>
19150
19151 * keyboard.c (apply_modifiers): Fix typo.
19152
191532007-11-29 Richard Stallman <rms@gnu.org>
19154
19155 * keymap.c (Fcurrent_local_map): Doc fix.
19156
191572007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19158
19159 * s/gnu-kfreebsd.h: New file.
19160
191612007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19162
19163 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19164 Don't cast redundantly.
19165
19166 * keyboard.c (KEY_TO_CHAR): New macro.
19167 (parse_modifiers, apply_modifiers): Accept integer arguments.
19168 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19169 for chars and symbol keys.
19170 After doing such remapping, apply function-key-map again.
19171
191722007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19173
19174 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19175 compiled anymore.
19176
191772007-11-26 Andreas Schwab <schwab@suse.de>
19178
19179 * process.c (list_processes_1): Fix indentation level of the
19180 command column.
19181
191822007-11-23 Andreas Schwab <schwab@suse.de>
19183
19184 * editfns.c (Fformat): Handle %c specially since it requires the
19185 argument to be of type int.
19186
191872007-11-23 Markus Triska <markus.triska@gmx.at>
19188
19189 * emacs.c (main): Call init_editfns before init_process, since
19190 init_process sets Vprocess_connection_type depending on OS release.
19191
191922007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19193
19194 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19195 (find_symbol_value): Use do_symval_forwarding.
19196
19197 * data.c (set_internal): Set the value in the `cons-cell' (for
19198 Buffer_Local_values) not only for frame-local variables.
19199
192002007-11-22 Andreas Schwab <schwab@suse.de>
19201
19202 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19203 values to sprintf.
19204 * keymap.c (Fsingle_key_description): Likewise.
19205 * print.c (print_object): Likewise.
19206
192072007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19208
19209 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19210 file for image is nil.
19211
192122007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19213
19214 * term.c: Include stdarg.h.
19215 (fatal): Implement using varargs.
19216 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19217
192182007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19219
19220 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19221 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19222 Update call to buffer_slot_type_mismatch.
19223 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19224 (buffer_slot_type_mismatch): Update.
19225 * buffer.c (buffer_local_types): Remove.
19226 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19227 (defvar_per_buffer): Set the type in the buffer_objfwd.
19228
192292007-11-21 Jason Rumney <jasonr@gnu.org>
19230
19231 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19232 CreateFileMapping returns NULL on failure.
19233
192342007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19235
19236 * search.c (Fset_match_data): Remove the `evaporate' feature.
19237 (unwind_set_match_data): Don't use the `evaporate' feature.
19238
192392007-11-21 Jason Rumney <jasonr@gnu.org>
19240
19241 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19242
19243 * w32console.c (w32con_write_glyphs): Remove unused variables.
19244
192452007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19246
19247 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19248
19249 * s/darwin.h (MULTI_KBOARD): Remove.
19250
19251 * macfns.c (x_create_tip_frame, Fx_create_frame)
19252 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19253
192542007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19255
19256 * buffer.c (Fbuffer_local_value): Remove redundant test.
19257 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19258 than in `current-buffer' to match the comment.
19259 Do the swap using swap_in_global_binding.
19260
19261 * data.c (store_symval_forwarding, set_internal):
19262 * eval.c (specbind): Remove dead code.
19263
19264 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19265 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19266 Since we do not want to see internal Lisp_*fwd objects here.
19267
192682007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19269
19270 * sysdep.c (init_system_name): Use getaddrinfo if available.
19271
19272 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19273 (x_scroll_bar_note_movement): start, end, with, height in struct
19274 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19275
192762007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19277
19278 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19279
192802007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19281
19282 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19283 This undoes Richard's change of 14-Oct-2002.
19284
19285 * alloc.c (allocate_other_vector):
19286 * lisp.h (allocate_other_vector): Remove.
19287
19288 * window.c (struct save_window_data): Move non-lisp data to the end
19289 and make it `int' rather than Lisp_Object.
19290 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19291 Done wrap/unwrap integer values.
19292 (Fset_window_configuration, compare_window_configurations):
19293 Update use of fields to their new types.
19294
19295 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19296 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19297 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19298 (SET_SCROLL_BAR_X_WINDOW): Remove.
19299 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19300 Access the new x_window field directly.
19301 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19302 Don't wrap/unwrap integers into Lisp_Objects.
19303 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19304 (x_scroll_bar_report_motion):
19305 Don't wrap/unwrap integers into Lisp_Objects.
19306 (x_term_init): Use SDATA.
19307 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19308 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19309 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19310 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19311 * xfns.c (x_set_background_color):
19312 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19313 Access the new x_window field directly.
19314
19315 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19316 (allocate_pseudovector): Make non-static.
19317
19318 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19319 (allocate_pseudovector): Declare.
19320 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19321
193222007-11-15 Andreas Schwab <schwab@suse.de>
19323
19324 * editfns.c (Fformat): Correctly format EMACS_INT values.
19325 Also take precision into account when formatting an integer.
19326
19327 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19328
193292007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19330
19331 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19332 (syms_of_keyboard): Defsubr it.
19333
19334 * data.c (swap_in_global_binding): Fix longstanding bug where
19335 store_symval_forwarding was not called with the right second argument,
19336 thus causing objfwd-ing from being dropped.
19337
193382007-11-14 Juanma Barranquero <lekktu@gmail.com>
19339
19340 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19341 (Fx_display_pixel_height, Fx_display_planes)
19342 (Fx_display_color_cells, Fx_server_max_request_size)
19343 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19344 (Fx_display_visual_class, Fx_display_save_under):
19345 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19346 (Fx_display_pixel_height, Fx_display_planes)
19347 (Fx_display_color_cells, Fx_server_max_request_size)
19348 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19349 (Fx_display_mm_height, Fx_display_mm_width)
19350 (Fx_display_backing_store, Fx_display_visual_class)
19351 (Fw32_select_font, Fx_display_save_under):
19352 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19353 (Fx_display_pixel_height, Fx_display_planes)
19354 (Fx_display_color_cells, Fx_server_max_request_size)
19355 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19356 (Fx_display_save_under): Fix typos in docstrings.
19357
193582007-11-14 Juanma Barranquero <lekktu@gmail.com>
19359
19360 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19361 corresponding to deleted entries; they are an implementation detail.
19362 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19363 Remove variables.
19364 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19365 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19366 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19367 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19368 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19369 (Fw32_define_rgb_color, Fw32_load_color_file)
19370 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19371 Fix typos in docstrings.
19372 (Fx_server_version): Reflow docstring.
19373 (Fw32_shell_execute): Doc fixes.
19374
193752007-11-13 Juanma Barranquero <lekktu@gmail.com>
19376
19377 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19378 if w32_parse_hot_key returned nil.
19379
193802007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19381
19382 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19383
193842007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19385
aac0c6e3
MR
19386 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19387
19388 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19389
19390 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19391 Remove W32_SCROLL_BAR_CLICK_EVENT.
19392
19393 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19394 Add MULTIMEDIA_KEY_EVENT.
19395
19396 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19397 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19398 (make_lispy_event) [WINDOWSNT]: Use it to translate
19399 MULTIMEDIA_KEY_EVENT.
19400
19401 * w32term.h (WM_APPCOMMAND): Define if not already.
19402 (GET_APPCOMMAND_LPARAM): Likewise.
19403
19404 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19405 WM_APPCOMMAND.
19406
19407 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19408 (syms_of_w32fns): Export and initialize it.
19409 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19410
194112007-11-09 Chong Yidong <cyd@stupidchicken.com>
19412
19413 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19414 twice.
19415
19416 * xdisp.c (handle_face_prop): Fix last change.
19417
194182007-11-09 Richard Stallman <rms@gnu.org>
19419
19420 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19421 not just for after-strings and before-strings.
19422 Call face_for_overlay_string and pass the overlay to it.
19423 (handle_display_prop): Determine whether property came from an overlay.
19424 Pass OVERLAY arg to handle_single_display_spec.
19425 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19426 (load_overlay_strings): Fill in it->string_overlays.
19427 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19428
19429 * xfaces.c (face_for_overlay_string): Function renamed from
19430 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19431
19432 * dispextern.h (struct it): New elt string_overlays.
19433 New elt from_overlay, also in stack.
19434 Rearrange a few elements.
19435 (face_for_overlay_string): Decl renamed from
19436 face_at_buffer_position_no_overlays, and add argument.
19437
194382007-11-09 Richard Stallman <rms@gnu.org>
19439
19440 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19441 to get the base face for an overlay string.
19442
19443 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19444
19445 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19446
19447 * xdisp.c (handle_stop): Move some code out of loop.
19448
194492007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19450
19451 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19452 Fix conversion from Lisp object to ATSUFontID.
19453
194542007-11-09 Jason Rumney <jasonr@gnu.org>
19455
19456 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19457
194582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19459
19460 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19461 Don't assume regions are aligned to page boundary.
19462 (print_load_command_name): Add LC_UUID if defined.
19463
194642007-11-09 Richard Stallman <rms@gnu.org>
19465
19466 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19467
194682007-11-07 Jason Rumney <jasonr@gnu.org>
19469
19470 * s/windows95.h: Remove.
19471
194722007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19473
19474 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19475 abort with a message on unhandled store_type values.
19476
194772007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19478
19479 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19480 Remove HAVE_X11R5 and HAVE_X11R4.
19481
194822007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19483
19484 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19485
194862007-11-01 Johan Bockgård <bojohan@gnu.org>
19487
19488 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19489 Don't set s->stippled_p here, since it has already been set by
19490 x_set_glyph_string_gc from x_draw_glyph_string.
19491
194922007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19493
19494 * sunfns.c: Remove file.
19495
19496 * m/sun386.h:
19497 * m/sun2.h:
19498 * m/sparc.h: Remove Sun windows code.
19499
195002007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19501
19502 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19503 (init_keyboard): Set current_kboard's window-system to nil.
19504 (tty_read_avail_input): Typo.
19505 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19506
195072007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19508
19509 * s/usg5-4.h:
19510 * s/usg5-3.h:
19511 * s/ptx.h:
19512 * m/is386.h:
19513 * m/ibmps2-aix.h:
19514 * Makefile.in: Remove all mentions of X10.
19515
19516 * dispnew.c (syms_of_display): Don't mention version 10.
19517
195182007-10-28 Juanma Barranquero <lekktu@gmail.com>
19519
19520 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19521 ($(BLD)/abbrev.$(O)): Remove.
19522
195232007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19524
19525 Rewrite abbrev.c in Elisp.
19526 * image.c (Qcount): Don't declare as extern.
19527 (syms_of_image): Initialize and staticpro `Qcount'.
19528 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19529 * emacs.c (main): Don't call syms_of_abbrev.
19530 * Makefile.in (obj): Remove abbrev.o.
19531 (abbrev.o): Remove.
19532 * abbrev.c: Remove.
19533
195342007-10-26 Martin Rudalics <rudalics@gmx.at>
19535
19536 * window.c (window_min_size_2): Don't count header-line.
19537
195382007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19539
19540 * frame.h (struct frame): Move all bit fields after the first bit
19541 field to take advantage of the available space. Group all the
19542 chars together to reduce wasted space due to padding.
19543
195442007-10-26 Juanma Barranquero <lekktu@gmail.com>
19545
19546 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19547
19548 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19549 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19550 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19551 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19552 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19553 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19554 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19555 (last_marked, mark_object_loop_halt): Make static.
19556
19557 * frame.c (syms_of_frame) <delete-frame-functions>:
19558 Fix typo in docstring.
19559
195602007-10-25 Juanma Barranquero <lekktu@gmail.com>
19561
19562 * w32.c (init_environment): Fix tiny memory leak.
19563 (w32_get_resource): Remove unused variable `ok'.
19564
195652007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19566
19567 Make `window-system' into a keyboard-local variable (rather than
19568 frame-local as done originally by multi-tty).
19569
19570 * keyboard.h (struct kboard): Add Vwindow_system.
19571 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19572 (mark_kboards): Mark Vwindow_system.
19573
19574 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19575 (init_display): Don't set the obsolete `window-system' frame-param.
19576
19577 * xterm.c (x_term_init):
19578 * w32term.c (w32_create_terminal):
19579 * term.c (init_tty): Set Vwindow_system.
19580 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19581 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19582
19583 * xfns.c (Fx_create_frame, x_create_tip_frame):
19584 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19585 * macfns.c (Fx_create_frame):
19586 Don't set the obsolete `window-system' frame-param.
19587
19588 * frame.h (Qwindow_system): Remove.
19589 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19590 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19591
195922007-10-24 Richard Stallman <rms@gnu.org>
19593
19594 * frame.c (x_figure_window_size): For fullscreen case,
19595 set USPosition | PPosition without clobbering rest of window_prompting.
19596
19597 * keyboard.c (Fcurrent_idle_time): Doc fix.
19598
19599 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19600
196012007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19602
19603 * process.c (unwind_request_sigio): Only define if __ultrix__.
19604
19605 * callproc.c (child_setup): Remove spurious *.
19606
19607 * lisp.h (Fget_text_property): Declare.
19608 (have_menus_p): Declare it here rather than in sys-dep header files.
19609 * macterm.h (have_menus_p):
19610 * msdos.h (have_menus_p):
19611 * xterm.h (have_menus_p): Remove.
19612
19613 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19614 (Fmake_variable_frame_local): Just check the variable's const-ness
19615 rather than checking nil or t.
19616
196172007-10-22 Jason Rumney <jasonr@gnu.org>
19618
19619 * w32fns.c: Include math.h.
19620 (w32_abort): Declaration moved to nt/config.nt.
19621
19622 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19623 (abort): Redefinition moved to nt/config.nt.
19624
19625 * m/windowsnt.h: Remove.
19626
196272007-10-22 Juanma Barranquero <lekktu@gmail.com>
19628
19629 * emacs.c (Fdump_emacs): Fix typo in message.
19630 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19631 <installation-directory>: Reflow docstring.
19632
196332007-10-22 Juri Linkov <juri@jurta.org>
19634
19635 * minibuf.c: Allow minibuffer default to be a list of default values.
19636 With empty input use the first element of this list as returned default.
19637 (string_to_object)
19638 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19639 (read_minibuf): If defalt is cons, set histstring to its car.
19640 (Fread_string): If default_value is cons, set val to its car.
19641 (Fread_buffer): If def is cons, use its car.
19642 (Fcompleting_read): If defalt is cons, set val to its car.
19643
196442007-10-21 Michael Albinus <michael.albinus@gmx.de>
19645
19646 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19647
196482007-10-20 Juanma Barranquero <lekktu@gmail.com>
19649
19650 * doc.c (Fdocumentation): Check for advice in all cases.
19651
196522007-10-19 Chong Yidong <cyd@stupidchicken.com>
19653
19654 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19655
196562007-10-19 Richard Stallman <rms@gnu.org>
19657
19658 * doc.c (Fdocumentation): Check for and handle an advised function.
19659
196602007-10-19 Juanma Barranquero <lekktu@gmail.com>
19661
19662 * process.c (Fset_process_filter): Doc fix.
19663
196642007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19665
19666 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19667 which caused key-translation-map to applied repeatedly (thus breaking
19668 double-mode).
19669
196702007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19671
19672 * xselect.c (x_own_selection, x_handle_selection_clear)
19673 (x_clear_frame_selections):
19674 * w32menu.c (list_of_panes, list_of_items):
19675 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19676 * textprop.c (validate_plist, interval_has_all_properties)
19677 (interval_has_some_properties, interval_has_some_properties_list)
19678 (add_properties, text_property_list):
19679 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19680 * minibuf.c (Fassoc_string):
19681 * macselect.c (x_own_selection, x_clear_frame_selections)
19682 (Fx_disown_selection_internal):
19683 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19684 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19685
196862007-10-17 Chong Yidong <cyd@stupidchicken.com>
19687
19688 * process.c: Link to libs for calling res_init() if available.
19689 (Fmake_network_process): Call res_init() before getaddrinfo or
19690 gethostbyname, if possible.
19691
196922007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19693
19694 * lread.c (read1): Set pvectype for char_tables.
19695
19696 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19697 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19698 Add type checks.
19699 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19700
19701 * alloc.c (free_misc): Use XMISCTYPE.
19702 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19703
197042007-10-17 Glenn Morris <rgm@gnu.org>
19705
19706 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19707 (syms_of_minibuf): Add Qcompletion_ignore_case.
19708 * dired.c (Qcompletion_ignore_case): Change to external.
19709 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19710 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19711 (Fread_file_name): Use it rather than intern'ing.
19712
19713 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19714 (Fread_coding_system): Ignore case of user input.
19715
197162007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19717
19718 * xdisp.c (handle_display_prop): Ignore display specs after
19719 replacing one when string text is being replaced.
19720 (handle_single_display_spec): Pretend as if characters with display
19721 property haven't been consumed only when buffer text is being replaced.
19722
197232007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19724
19725 * xfns.c (Fx_create_frame, Fx_display_list):
19726 * window.c (window_fixed_size_p, enlarge_window)
19727 (shrink_window_lowest_first):
19728 * macterm.c (init_font_name_table):
19729 * macfns.c (Fx_create_frame, Fx_display_list):
19730 * lread.c (close_load_descs):
19731 * keyboard.c (read_char_x_menu_prompt):
19732 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19733 * coding.c (code_convert_region_unwind): Test the type of an object
19734 rather than just !NILP before extracting data from it.
19735
19736 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19737
19738 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19739 (XMISCANY): New macro.
19740 (XMISCTYPE): Use it.
19741 (struct Lisp_Misc_Any): New type.
19742 (union Lisp_Misc): Use it.
19743 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19744 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19745 (find_symbol_value, set_internal, default_value, Fset_default)
19746 (Fmake_variable_buffer_local, Fmake_local_variable)
19747 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19748 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19749 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19750 * alloc.c (allocate_buffer): Set the size and tag.
19751 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19752 Use XMISCANY.
19753 (die): Follow the GNU convention for error messages.
19754 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19755 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19756 tag any more.
19757 (set_buffer_internal_1):
19758 * frame.c (store_frame_param):
19759 * eval.c (specbind):
19760 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19761
19762 * doc.c (Fsnarf_documentation): Simplify.
19763
197642007-10-14 Juanma Barranquero <lekktu@gmail.com>
19765
19766 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19767 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19768
197692007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19770
19771 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19772
197732007-10-14 Juanma Barranquero <lekktu@gmail.com>
19774
19775 * eval.c (do_autoload): Don't save autoloads.
19776
19777 * data.c (Ffset): Save autoload of the function being set.
19778
197792007-10-07 John Paul Wallington <jpw@pobox.com>
19780
19781 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19782 parameter before setting up faces.
19783
197842007-10-13 Eli Zaretskii <eliz@gnu.org>
19785
19786 * ccl.c (Fregister_code_conversion_map):
19787 * keyboard.c (append_tool_bar_item): Reformat last change.
19788
19789 * lisp.h (eabs): Rename from `abs'. All callers changed.
19790
197912007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19792
19793 * buffer.c (add_overlay_mod_hooklist):
19794 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19795 * fontset.c (make_fontset):
19796 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19797 (append_tool_bar_item):
19798 * macmenu.c (grow_menu_items):
19799 * w32menu.c (grow_menu_items):
19800 * xmenu.c (grow_menu_items): Use larger_vector.
19801
198022007-10-13 Eli Zaretskii <eliz@gnu.org>
19803
19804 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19805 selected frame'' on MSDOS).
19806
198072007-10-12 Martin Rudalics <rudalics@gmx.at>
19808
19809 * frame.c (Qexplicit_name): New variable.
19810 (x_report_frame_params): Report it in parameter alist.
19811 (syms_of_frame): Intern and staticpro it.
19812
198132007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19814
19815 * macfns.c (x_create_tip_frame): Set terminal for frame.
19816
198172007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19818
19819 * frame.c (Qenvironment): Remove.
19820 (syms_of_frame) <Qenvironment>: Don't initialize.
19821 (Fdelete_frame): Don't treat the `environment' param specially.
19822 * frame.h (Qenvironment): Don't declare.
19823 * callproc.c (set_initial_environment): Don't set unused frame param.
19824
19825 * frame.c (Fframe_with_environment): Remove.
19826 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19827
19828 * lisp.h (Fframe_with_environment): Don't declare.
19829
198302007-10-10 Juanma Barranquero <lekktu@gmail.com>
19831
19832 * indent.c (indent_tabs_mode, last_known_column)
19833 (last_known_column_modified): Make static.
19834 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19835
198362007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19837
19838 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19839
198402007-10-09 Jason Rumney <jasonr@gnu.org>
19841
19842 * w32term.c (x_set_window_size): Disable code that attempts to tell
19843 Lisp code about a size change before it actually happens.
19844
198452007-10-09 Richard Stallman <rms@gnu.org>
19846
19847 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19848 return HANDLED_RETURN.
19849
198502007-10-08 Martin Rudalics <rudalics@gmx.at>
19851
19852 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19853 when there's an unread command event.
19854
19855 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19856 window autoselection act appropriately when leaving selected frame.
19857 (syms_of_frame): Initialize focus_follows_mouse.
19858 * frame.h (focus_follows_mouse): Extern it.
19859 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19860 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19861 * msdos.c (dos_rawgetc): Likewise.
19862 * w32term.c (w32_read_socket): Likewise.
19863 * xterm.c (handle_one_xevent): Likewise.
19864 * xdisp.c (syms_of_xdisp): In doc-string of
19865 mouse-autoselect-window mention focus-follows-mouse.
19866
198672007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19868
19869 * macterm.c (mac_load_query_font): Fix missing return value.
19870 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19871 Add BLOCK_INPUT.
19872
198732007-10-08 Richard Stallman <rms@gnu.org>
19874
19875 * xdisp.c (get_window_cursor_type): Implement documented behavior
19876 for cursor-in-non-selected-windows = t.
19877
198782007-10-08 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32.c (w32_get_resource): Always close registry keys.
19881
198822007-10-08 Jason Rumney <jasonr@gnu.org>
19883
19884 * makefile.w32-in (LIBS): Add COMCTL32.
19885
19886 * w32fns.c (globals_of_w32fns): Init common controls.
19887
198882007-10-08 Richard Stallman <rms@gnu.org>
19889
19890 * image.c (our_memory_buffer): Rename from omfib_buffer.
19891
198922007-10-08 Richard Stallman <rms@gnu.org>
19893
19894 * buffer.c (Foverlays_at): Doc fix.
19895
198962007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19897
19898 * fns.c (Fplist_put): Preserve uneven tail data.
19899
199002007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19901
19902 * termhooks.h (enum event_kind): Remove trailing comma.
19903
19904 * frame.h (enum): Remove trailing comma.
19905
199062007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19907
19908 * w32proc.c (delete_child): Don't terminate threads of zombies.
19909
199102007-10-08 Martin Rudalics <rudalics@gmx.at>
19911
19912 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19913
19914 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19915 last-repeatable-command.
19916 (init_kboard): Initialize Vlast_repeatable_command.
19917 (command_loop_1): Set it to real_this_command unless that was
19918 bound to an input event.
19919 (mark_kboards): Mark it.
19920
199212007-10-08 Richard Stallman <rms@gnu.org>
19922
19923 * eval.c (condition-case): Doc fix.
19924
199252007-10-08 Masatake YAMATO <jet@gyve.org>
19926
19927 * xfaces.c (tty_supports_face_attributes_p): Fix code
19928 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19929 was copied and not edited.
19930
199312007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19932
19933 Add new `input-decode-map' keymap and use it for terminal
19934 escape sequences.
19935 * keyboard.h (struct kboard): Add Vinput_decode_map.
19936 Remove Vlocal_key_translation_map.
19937 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19938 (init_kboard): Init input-decode-map.
19939 Replace local-key-translation-map back with key-translation-map.
19940 (syms_of_keyboard): Declare input-decode-map.
19941 Remove local-key-translation-map. Update docstrings.
19942 (mark_kboards): Mark Vinput_decode_map.
19943 Don't mark Vlocal_key_translation_map.
19944 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19945 Replace local-key-translation-map back with key-translation-map.
19946 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19947 Bind in input-decode-map rather than function-key-map.
19948
19949 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19950 This was made redundant by the previous introduction of XSETPVECTYPE.
19951
199522007-10-09 Richard Stallman <rms@gnu.org>
19953
19954 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19955
199562007-09-29 Richard Stallman <rms@gnu.org>
19957
19958 * eval.c (internal_condition_case_2, internal_condition_case_1)
19959 (internal_condition_case): Reenable abort if x_catching_errors ()
19960 to see if that really happens and why.
19961
199622007-10-06 Andreas Schwab <schwab@suse.de>
19963
19964 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19965
199662007-10-04 Juanma Barranquero <lekktu@gmail.com>
19967
19968 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19969
199702007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19971
19972 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19973
199742007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19975
19976 * window.h (struct window):
19977 * window.c (struct save_window_data, struct saved_window):
19978 * termhooks.h (struct terminal):
19979 * process.h (struct Lisp_Process):
19980 * frame.h (struct frame):
19981 * buffer.h (struct buffer):
19982 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19983 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19984 The size field of (pseudo)vectors is now unsigned.
19985 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19986
19987 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19988 Turn `count' into an integer.
19989
19990 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19991 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19992 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19993 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19994 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19995
19996 * alloc.c (allocate_pseudovector): New fun.
19997 (ALLOCATE_PSEUDOVECTOR): New macro.
19998 (allocate_window, allocate_terminal, allocate_frame)
19999 (allocate_process): Use it.
20000 (mark_vectorlike): New function.
20001 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20002 (mark_terminals): Use it.
20003 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20004 (Fmake_byte_code): Use XSETPVECTYPE.
20005
20006 * frame.c (Fframe_parameters): Minor simplification.
20007
20008 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20009
20010 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20011
20012 * buffer.c (Fget_buffer_create, init_buffer_once):
20013 * lread.c (defsubr):
20014 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20015
20016 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20017 defined differently in the m/*.h files.
20018 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20019 (XSETPVECTYPE): New macro.
20020 (XSETPSEUDOVECTOR): Use it.
20021
20022 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20023 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20024
20025 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20026 * lread.c (defvar_per_buffer):
20027 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20028
20029 * window.c (candidate_window_p): Only consider as visible frames that
20030 are on the same terminal.
20031
20032 * m/ibms390x.h (MARKBIT): Remove unused macro.
20033
200342007-10-01 Juanma Barranquero <lekktu@gmail.com>
20035
20036 * lread.c (Fload): Fix typo in docstring.
20037
200382007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20039
20040 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20041 of a non-zero value can't yield zero.
20042
200432007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20044
20045 * term.c (term_clear_mouse_face, term_mouse_highlight)
20046 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20047
20048 * print.c (safe_debug_print): Use XHASH.
20049
20050 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20051 Lisp elements such as tags.
20052 (XHASH): New macro.
20053 (EQ): Use it.
20054 (SREF, SSET, STRING_COPYIN): Use SDATA.
20055 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20056
20057 * alloc.c (mark_terminal): Remove left-over declaration.
20058 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20059 (allocate_vectorlike): Remove type argument. Adjust callers.
20060 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20061 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20062
20063 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20064 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20065 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20066 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20067 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20068 Use them.
20069
20070 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20071 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20072 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20073
200742007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20075
20076 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20077 loaded by default.
20078
200792007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20080
20081 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20082 on this tty.
20083 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20084
20085 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20086 Update all users.
20087 (handle_one_term_event): Use Gpm_DrawPointer.
20088 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20089 Signal errors instead of returning nil. Always return nil.
20090 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20091 Make it a noop if gpm-mouse was not activated.
20092 (syms_of_term): Update names.
20093
200942007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20097 (init_sys_modes): Check that gpm_tty is the current tty.
20098
20099 * alloc.c (allocate_terminal): Set the vector size to only count the
20100 lisp fields. Initialize those to nil.
20101 (mark_object): Don't treat terminals specially.
20102 (mark_terminal): Remove.
20103 (mark_terminals): Use mark_object instead.
20104
20105 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20106 the GC to the beginning.
20107
20108 * indent.h:
20109 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20110
20111 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20112
201132007-09-25 Jason Rumney <jasonr@gnu.org>
20114
20115 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20116
20117 * w32console.c (create_w32cons_output): Remove.
20118
20119 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20120
20121 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20122 (reset_sys_modes): Use reset_terminal_modes_hook.
20123
201242007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20125
20126 * eval.c (do_autoload): Don't output any message.
20127
201282007-09-24 Juri Linkov <juri@jurta.org>
20129
20130 * emacs.c (standard_args): Change priority of "--no-splash"
20131 from 40 to 3. Add "--no-desktop" with the same priority.
20132
201332007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20134
20135 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20136 and optimize the case where they are all 1.
20137
201382007-09-23 Johannes Weiner <hannes@saeurebad.de>
20139
20140 * lisp.h (abs): Define if not defined.
20141 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20142 Don't define `abs', since it's defined in lisp.h.
20143
201442007-09-22 Eli Zaretskii <eliz@gnu.org>
20145
20146 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20147 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20148 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20149 (init_tty): Use DEV_TTY instead of "/dev/tty".
20150 [WINDOWSNT]: No need to protect from NAME arg being null.
20151
201522007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20153
20154 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20155 up the tty state.
20156
201572007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20158
20159 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20160 (gpm_tty): Change its type.
20161 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20162 (gpm_tty): Change its type and initialize it.
20163 (Fterm_open_connection): Check the frame is indeed a tty.
20164 Use the new gpm_tty.
20165 (Fterm_close_connection): Use the new gpm_tty.
20166 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20167 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20168
201692007-09-21 Juanma Barranquero <lekktu@gmail.com>
20170
20171 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20172 underline_color, to draw strike-through.
20173
201742007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20175
20176 * lisp.h (allocate_terminal): Declare.
20177
20178 * window.c (candidate_window_p): Consider frames that are being placed
20179 by the user as somewhere between visible and iconified.
20180 (window_loop): Prefer windows on the current frame.
20181 (Fselect_window): Move the use of select-frame to the beginning so we
20182 can just delegate all the work (it'll call us back anyway).
20183
20184 * frame.c (Qdisplay_environment_variable):
20185 * frame.h (Qdisplay_environment_variable): Delete.
20186
20187 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20188 of the first arg, since that value may be a union.
20189
20190 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20191 parameter rather than Qdisplay_environment_variable. If all else
20192 fails, look for DISPLAY in initial-environment.
20193
201942007-09-21 Glenn Morris <rgm@gnu.org>
20195
20196 * Makefile.in (emacstool): Remove target.
20197 (lisp, shortlisp): Remove termdev.elc.
20198
201992007-09-21 Markus Triska <markus.triska@gmx.at>
20200
20201 * xterm.c (x_delete_display): Compile session management conditionally.
20202
202032007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20204
20205 * callproc.c (getenv_internal_1): New function.
20206 (getenv_internal): Use it.
20207 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20208
20209 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20210 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20211 (Fset_terminal_parameter): Work with dead terminals as well.
20212 (Fmodify_terminal_parameters): Remove.
20213
20214 * terminal.c (get_terminal): Handle terminals.
20215 Make sure the terminal returned is live.
20216 (create_terminal): Use allocate_terminal.
20217 (mark_terminals): Move to alloc.c.
20218 (delete_terminal): Use terminal->name as liveness status.
20219 NULL out fields after freeing their contents.
20220 Don't deallocate the object.
20221 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20222 rather than an int.
20223 (Fterminal_live_p): Accept non-integer arguments.
20224 (Fterminal_list): Return terminal objects rather than an ints.
20225
20226 * alloc.c (enum mem_type): New member for `terminal' objects.
20227 (allocate_terminal): New function.
20228 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20229 Handle terminals.
20230 (mark_terminal): New fun.
20231 (mark_terminals): Move from terminal.c.
20232
20233 * term.c (get_tty_terminal): Don't treat output_initial specially.
20234 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20235 (delete_tty): Use terminal->name as liveness status.
20236
20237 * termhooks.h (struct terminal): Make it into a pseudovector.
20238 Remove `deleted' replaced by checking `name's nullness.
20239
20240 * print.c (print_object): Handle terminals.
20241
20242 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20243 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20244
20245 * frame.c (make_terminal_frame):
20246 * keyboard.c (tty_read_avail_input):
20247 * w32term.c (x_delete_terminal):
20248 * xfns.c (Fx_create_frame, x_create_tip_frame):
20249 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20250
202512007-09-20 Glenn Morris <rgm@gnu.org>
20252
20253 * process.c (Fmake_network_process): Doc fix.
20254
202552007-09-19 Jason Rumney <jasonr@gnu.org>
20256
20257 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20258
202592007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20260
20261 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20262 Fix a C warning regarding variable constness.
20263
20264 * xterm.c (handle_one_xevent): Fix a C warning.
20265
202662007-09-18 Jason Rumney <jasonr@gnu.org>
20267
20268 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20269
202702007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20271
20272 * gtkutil.c (gdpy_def): New variable.
20273 (xg_initialize): Initialize gdpy_def.
20274 (xg_display_close): If no other display exists, set gdpy_def to a
20275 new connection.
20276
202772007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20278
20279 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20280 when we have no file name for the icon.
20281 (xg_tool_bar_expose_callback): Remove.
20282 (xg_create_tool_bar): Don't connect expose signal to
20283 xg_tool_bar_expose_callback.
20284 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20285
202862007-09-16 Andreas Schwab <schwab@suse.de>
20287
20288 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20289 values instead of zapping them.
20290
202912007-09-14 Glenn Morris <rgm@gnu.org>
20292
20293 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20294 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20295 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20296 scope and rename to omfib_buffer for clarity.
20297 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20298
202992007-09-14 Kenichi Handa <handa@m17n.org>
20300
20301 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20302
203032007-09-13 Jason Rumney <jasonr@gnu.org>
20304
20305 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20306
20307 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20308
20309 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20310 (mac_term_init): Call here instead, passing rif.
20311
203122007-09-13 Glenn Morris <rgm@gnu.org>
20313
20314 * s/hpux.h: No longer define `static' as nothing.
20315
203162007-09-13 Johan Bockgård <bojohan@gnu.org>
20317
20318 * callint.c (Fcall_interactively): Remove unused var `fun'.
20319
203202007-09-12 Romain Francoise <romain@orebokech.com>
20321
20322 * window.c (prefer_window_split_horizontally, display_buffer):
20323 Revert 2007-09-08 change.
20324
203252007-09-12 Glenn Morris <rgm@gnu.org>
20326
20327 * alloca.c: Remove file.
20328 * Makefile.in (alloca): Do not undef.
20329 (allocaobj, alloca.o): Remove.
20330 (otherobj): Remove allocaobj.
20331 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20332 * regex.c (C_ALLOCA): Remove all references and code that was only
20333 used when this was defined.
20334 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20335 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20336 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20337
20338 * Makefile.in (SOURCES, unlock, relock): Delete.
20339
20340 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20341 (menu_grab_callback): All uses changed.
20342
20343 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20344 (x_reply_selection_request): All uses changed.
20345
203462007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20347
20348 * lread.c (load_warn_old_style_backquotes): Change message to look
20349 better when it appears in the middle of byte-compiler messages.
20350
203512007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20352
20353 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20354
20355 * xterm.c (x_create_terminal): Add comment.
20356
20357 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20358
203592007-09-10 Richard Stallman <rms@gnu.org>
20360
20361 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20362
203632007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20364
20365 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20366 (DEFUN): Document `intspec', use it instead of `prompt'.
20367
20368 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20369
20370 * data.c (Finteractive_form): If the interactive specification starts
20371 with a `(', use it as a Lisp form.
20372
20373 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20374 name and file modes.
20375
20376 * callint.c (Fcall_interactively): Comment fixes.
20377
203782007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20379
20380 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20381 and compiled functions.
20382
203832007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20384
20385 * window.c (prefer_window_split_horizontally): New variable.
20386 (display_buffer): Consider splitting window horizontally depending
20387 on prefer_window_split_horizontally.
20388
203892007-09-08 Eli Zaretskii <eliz@gnu.org>
20390
20391 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20392
203932007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20394
20395 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20396
20397 * frame.c (x_set_frame_parameters): Check number is positive before
20398 using XFASTINT.
20399
20400 * window.c (freeze_window_start): Don't presume selected_window holds
20401 a window object.
20402 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20403
204042007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20405
20406 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20407
204082007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * window.c (Vsplit_window_preferred_function): New var.
20411 (Fdisplay_buffer): Use it.
20412 (syms_of_window): Export, and initialize it.
20413
204142007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20415
20416 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20417
204182007-09-06 Glenn Morris <rgm@gnu.org>
20419
20420 * gtkutil.c (menu_grab_callback) <cnt>:
20421 * xselect.c (x_reply_selection_request) <cnt>: Move static
20422 variable to file scope.
20423
204242007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20425
20426 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20427 consistent values of selected_frame and selected_window.
20428
204292007-09-04 Jason Rumney <jasonr@gnu.org>
20430
20431 * w32console.c (initialize_w32_display): Zero unused hooks.
20432
204332007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20434
20435 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20436 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20437
204382007-09-04 Jason Rumney <jasonr@gnu.org>
20439
20440 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20441 in w32console.c. Set up input. Remove XXX comments that have been
20442 confirmed as correct.
20443
20444 * s/ms-w32.h (MULTI_KBOARD): Define.
20445
20446 * w32console.c (one_and_only_w32cons): Remove.
20447 (initialize_w32_display): Take terminal argument.
20448
20449 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20450 initialize_w32_display.
20451 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20452
20453 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20454
20455 * keyboard.c (discard_mouse_events): Discard it.
20456 (make_lispy_event): Translate it to a lisp event.
20457 (lispy_wheel_names): Add wheel-left and right events.
20458 (syms_of_keyboard): Enlarge wheel_syms.
20459
20460 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20461 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20462
20463 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20464
20465 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20466 from WM_MOUSEHWHEEL.
20467 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20468
20469 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20470 terminal.
20471
20472 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20473 keyboard for the terminal.
20474
204752007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20476
20477 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20478 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20479 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20480 and resume-tty-function to resume-tty-hook.
20481 (Fsuspend_tty, Fresume_tty): Use new names.
20482
204832007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20484
20485 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20486 if it starts with "n:".
20487
204882007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20489
20490 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20491
204922007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * frame.h:
20495 * frame.c (Qterm_environment_variable): Remove.
20496 (syms_of_frame): Don't init and staticpro it.
20497
20498 * callproc.c (getenv_internal): Remove special case for $TERM.
20499
20500 * callproc.c (Vinitial_environment): New variable.
20501 (set_initial_environment): Initialize it.
20502 (syms_of_callproc): Declare it.
20503 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20504 TERM under which a process runs is never related to the TERM in which
20505 Emacs is running.
20506
205072007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20508
20509 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20510 * s/darwin.h: ... do it here.
20511
205122007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20513
20514 * lisp.h (set_initial_environment): Rename from set_global_environment.
20515
20516 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20517 removed by mistake on the multi-tty branch.
20518
20519 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20520 (Fmodify_frame_parameters): Return a value.
20521
20522 * image.c (png_load): Comment-out var only used in commented-out code.
20523
20524 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20525 before passing it to mark_object.
20526
20527 * xfaces.c (internal_resolve_face_name): Return a value.
20528 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20529
20530 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20531 (x_icon): Comment-out var only used in commented-out code.
20532
205332007-08-29 Romain Francoise <romain@orebokech.com>
20534
20535 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20536 QUIT hasn't been provided.
20537
205382007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20539
20540 * callproc.c (child_setup, getenv_internal): Use the
20541 display-environment-variable and term-environment-variable frame params.
20542 (set_initial_environment): Initialise Vprocess_environment.
20543
20544 * config.in: Disable multi-keyboard support on a mac.
20545
20546 * frame.c (Qterm_environment_variable)
20547 (Qdisplay_environment_variable): New variables.
20548 (syms_of_frame): Intern and staticpro them.
20549 (Fmake_terminal_frame): Disable output method test.
20550
20551 * frame.h: Declare them here.
20552
20553 * macfns.c (x_set_mouse_color): Get rif from the frame.
20554 (x_set_tool_bar_lines): Don't use updating_frame.
20555 (mac_window): Add 2 new parameters for consistency with other systems.
20556 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20557 frame parameters following what is done in X11 and w32. Don't use
20558 FRAME_MAC_DISPLAY_INFO.
20559 (Fx_open_connection, start_hourglass): Remove window-system check.
20560 (x_create_tip_frame): Get the keyboard from the terminal.
20561
20562 * macmenu.c: Reorder includes.
20563 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20564
20565 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20566 terminal parameter.
20567 (x_clear_frame): Add a frame parameter.
20568 (note_mouse_movement): Get rif from the frame.
20569 (mac_term_init): Initialize the terminal.
20570 (mac_initialize): Make static and move terminal initialization ...
20571 (mac_create_terminal): ... to this new function.
20572
20573 * macterm.h (struct mac_display_info): Add terminal.
20574 (mac_initialize): Delete declaration.
20575
20576 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20577
20578 * sysdep.c: Comment out text after #endif.
20579
20580 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20581 is defined. Better initialize ttys in windows. Use terminal
20582 specific mouse_position_hook.
20583
20584 * termhooks.h (union display_info): Add mac_display_info.
20585
20586 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20587 Set the default minibuffer frame, window_system and the rest of the
20588 frame parameters following what is done in X11.
20589
20590 * w32term.c (w32_initialize): Make static.
20591
20592 * xselect.c (x_handle_selection_clear): Only access
20593 terminal->kboard when MULTI_KBOARD is defined.
20594
20595 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20596 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20597
205982007-08-29 Jason Rumney <jasonr@gnu.org>
20599
20600 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20601 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20602
20603 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20604 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20605
20606 * keyboard.c (restore_kboard_configuration): Only define when
20607 MULTI_KBOARD defined.
20608
20609 * makefile.w32-in: Update dependancies from Makefile.in.
20610 (OBJ1): Add terminal.$(O)
20611
20612 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20613 Don't define function body.
20614 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20615
20616 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20617
20618 * w32.c (request_sigio, unrequest_sigio): Remove.
20619
20620 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20621 (w32con_clear_frame, w32con_clear_end_of_line)
20622 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20623 (w32con_delete_glyphs, w32con_set_terminal_window)
20624 (scroll_line, w32_sys_ring_bell): Add frame arg.
20625 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20626 Add terminal arg.
20627 (PICK_FRAME): Remove.
20628 (w32con_write_glyphs): Use frame specific terminal coding.
20629 (one_and_only_w32cons): New global variable.
20630 (initialize_w32_display): Use it for storing hooks.
20631 (create_w32cons_output): New function.
20632
20633 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20634 arg a frame.
20635
20636 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20637 Set window_system.
20638 (x_set_tool_bar_lines): Don't use updating_frame.
20639 (Fx_create_frame): Set terminal and ref count.
20640 (Fx_open_connection): Remove window-system check.
20641
20642 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20643
20644 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20645 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20646 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20647 Add frame arg.
20648 (x_delete_terminal, w32_create_terminal): New functions.
20649 (w32_term_init): Create a terminal.
20650 (w32_initialize): Move terminal specific initialization to
20651 w32_create_terminal.
20652
20653 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20654 (w32_clear_rect, w32_clear_area): Use background from frame.
20655 (w32_display_info): Add terminal.
20656 (w32_sys_ring_bell, x_delete_display): Declare here.
20657
20658 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20659
20660 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20661
206622007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20663
20664 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20665 Fix get_named_tty calls for the controlling tty.
20666
206672007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20668
194d44e7 20669 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20670
206712007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20672
20673 * term.c (tty_insert_glyphs): Add missing first parameter.
20674
206752007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20676
20677 * buffer.c (Fbuffer_list, Fbury_buffer):
20678 Take frame->buried_buffer_list into account.
20679
20680 * cm.c (current_tty): New variable, for cmputc().
20681 (cmputc): Use it.
20682 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20683 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20684 (cmgoto): Add tty parameter. Pass it on to calccost().
20685 Use emacs_tputs() instead of tputs().
20686
20687 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20688 tputs().
20689 (current_tty): New variable, for cmputc().
20690 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20691
20692 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20693 (internal_condition_case, internal_condition_case_1)
20694 (internal_condition_case_2): Don't abort when x_catching_errors.
20695
20696 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20697 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20698 prevent crashes caused by bogus longjmps in read_char.
20699
20700 * keymap.h (Fset_keymap_parent): Add EXFUN.
20701
20702 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20703 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20704 Remove redundant definition.
20705
20706 * macfns.c (x_set_mouse_color, x_make_gc):
20707 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20708
20709 * w32term.c (x_free_frame_resources):
20710 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20711 (w32_initialize): Use the accessor macros for terminal characteristics.
20712
20713 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20714 Use the accessor macros for terminal characteristics.
20715 * msdos.c (internal_terminal_init): Use the accessor macros for
20716 terminal characteristics.
20717 (ScreenVisualBell, internal_terminal_init):
20718 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20719
20720 * termopts.h (no_redraw_on_reenter): Declare.
20721
20722 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20723 (mark_terminals, mark_ttys): Declare.
20724 (Fgarbage_collect): Call them.
20725 (mark_object): Mark buried_buffer_list.
20726
20727 * prefix-args.c: Include stdlib.h for exit.
20728
20729 * syssignal.h: Add comment.
20730
20731 * indent.c: Include stdio.h.
20732
20733 * window.h (Vinitial_window_system): Declare.
20734 (Vwindow_system): Delete declaration.
20735
20736 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20737
20738 * image.c (lookup_image): Don't initialize `c' until the xasserts
20739 have been run.
20740
20741 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20742 FRAME_FOREGROUND_PIXEL.
20743
20744 * print.c (print_preprocess): Don't lose print_depth levels while
20745 iterating.
20746
20747 * widget.c (update_from_various_frame_slots):
20748 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20749
20750 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20751 frames.
20752 (window_internal_height): Remove bogus make_number call.
20753 (init_window_once): Call make_terminal_frame with two zero parameters.
20754
20755 * fileio.c (Fread_file_name): Update comment.
20756
20757 * callint.c (Fcall_interactively):
20758 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20759 Make sure it is correctly unwound.
20760
20761 * xsmfns.c (x_session_close): New function.
20762
20763 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20764 Delete declarations.
20765
20766 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20767 (x_output): Remove background_pixel and foreground_pixel fields.
20768 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20769 (x_delete_device, x_session_close): Declare.
20770
20771 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20772 (read_filtered_event): Call `read_char' with a local
20773 `wrong_kboard_jmpbuf'.
20774
20775 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20776 Don't call single_kboard_state. Use FRAME_RIF.
20777
20778 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20779 systems.
20780
20781 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20782 (Fframe_with_environment, Fset_input_meta_mode)
20783 (Fset_quit_char): EXFUN.
20784 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20785 (init_sys_modes, reset_sys_modes): Update prototypes.
20786 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20787
20788 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20789 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20790 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20791 Delete declarations.
20792 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20793 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20794 New declarations.
20795
20796 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20797 already does that during init_display(). Call syms_of_keymap
20798 before syms_of_keyboard. Call `syms_of_terminal'.
20799 Call set_initial_environment, not set_process_environment.
20800 (shut_down_emacs): Call reset_all_sys_modes() instead of
20801 reset_sys_modes().
20802
20803 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20804 (internal_resolve_face_name, resolve_face_name_error): New functions.
20805 (resolve_face_name): Protect against loops and errors thrown by Fget.
20806 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20807 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20808
20809 * scroll.c: Replace CURTTY() with local variables throughout the
20810 file (where applicable).
20811 (calculate_scrolling, calculate_direct_scrolling)
20812 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20813 characteristics.
20814
20815 * keymap.c (Vfunction_key_map): Remove.
20816 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20817 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20818 (Vkey_translation_map): Remove.
20819 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20820 (Fdescribe_buffer_bindings)
20821 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20822 Update for terminal-local key-translation-map.
20823
20824 * Makefile.in (callproc.o): Update dependencies.
20825 (lisp, shortlisp): Add termdev.elc.
20826 (obj): Add terminal.o.
20827 (terminal.o): Add dependencies.
20828 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20829 (data.o, fns.o): Add termhooks.h dependency.
20830 (SOME_MACHINE_LISP): Add dnd.elc.
20831 (minibuf.o): Fix typo.
20832 Update dependencies.
20833
20834 * data.c (do_symval_forwarding, store_symval_forwarding)
20835 (find_symbol_value): Use the selected frame's keyboard, not
20836 current_kboard.
20837
20838 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20839 Vwindow_system.
20840
20841 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20842 Fmenu_bar_open.
20843 (syms_of_xmenu): Update defsubr.
20844 (mouse_position_for_popup, Fx_popup_menu)
20845 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20846 (set_frame_menubar, free_frame_menubar)
b97439ce 20847 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20848 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20849 an X frame.
20850
20851 * xselect.c (x_own_selection): Abort if not an X frame.
20852 (some_frame_on_display): Check if it is an X frame.
20853 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20854
20855 * coding.c: Include frame.h and termhooks.h.
20856 (terminal_coding, keyboard_coding): Delete.
20857 (Fset_terminal_coding_system_internal)
20858 (Fset_keyboard_coding_system_internal)
20859 (Fkeyboard_coding_system)
20860 (Fterminal_coding_system): Add a terminal parameter.
20861 Get terminal_coding from the terminal.
20862 (init_coding_once): Don't call setup_coding_system here.
20863
20864 * dispextern.h (set_scroll_region, turn_off_insert)
20865 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20866 (tty_clear_end_of_line, tty_setup_colors)
20867 (delete_tty, updating_frame)
20868 (produce_special_glyphs, produce_glyphs, write_glyphs)
20869 (insert_glyphs): Remove.
20870 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20871 (tty_turn_off_highlight, get_tty_size): Add declaration.
20872 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20873
20874 * frame.h (enum output_method): Add output_initial.
20875 (struct x_output): Delete.
20876 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20877 Access foreground_pixel and background_pixel directly from the frame.
20878 (tty_display): Delete.
20879 (struct frame): Add buried_buffer_list, foreground_pixel,
20880 background_pixel and terminal. Delete kboard.
20881 (union output_data): Add tty.
20882 (FRAME_KBOARD): Get the kboard from the terminal.
20883 (FRAME_INITIAL_P): New macro.
20884 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20885 (Qterm_environment_variable, Qdisplay_environment_variable)
20886 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20887 New declarations.
20888
20889 * termchar.h (tty_output, tty_display_info): New structures.
20890 (tty_list): Declare.
20891 (FRAME_TTY, CURTTY): New macros.
20892 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20893 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20894 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20895 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20896
20897 * callproc.c: Include frame.h and termhooks.h, for terminal
20898 parameters.
20899 (add_env): New function.
20900 (child_setup): Use it.
20901 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20902 (getenv_internal): Fix get_terminal_param call.
20903 (Fgetenv_internal, egetenv): Update doc.
20904 (syms_of_callproc): Initialize Vprocess_environment to nil.
20905 Register and initialize them. Remove obsolete defvars. Update doc
20906 strings.
20907 (child_setup): Handle Vlocal_environment_variables.
20908 (getenv_internal): Add terminal parameter.
20909 Handle Vlocal_environment_variables.
20910 (Fgetenv_internal): Add terminal parameter.
20911 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20912 environment in a frame (not terminal) parameter. Update doc strings.
20913 (set_initial_environment): Rename from set_global_environment.
20914 Store Emacs environment in initial frame parameter.
20915
20916 * xdisp.c (redisplay_internal): Update references to
20917 `previous_terminal_frame'.
20918 (display_mode_line, Fformat_mode_line): Replace calls to
20919 `push_frame_kboard' with `push_kboard'.
20920 (get_glyph_string_clip_rects): Add extra parentheses and
20921 braces to prevent compiler warnings.
20922 (calc_pixel_width_or_height): Add xassert to check that the
20923 frame is alive. Don't call `lookup_image' on a termcap frame.
20924 (message2_nolog, message3_nolog, redisplay_internal)
20925 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20926 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20927 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20928 (Fx_display_pixel_width, Fx_display_pixel_height)
20929 (Fx_display_planes, Fx_display_color_cells)
20930 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20931 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20932 (Fx_display_backing_store, Fx_display_visual_class)
20933 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20934 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20935
20936 * xfns.c (x_set_foreground_color x_set_background_color)
20937 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20938 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20939 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20940 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20941 terminal that is being deleted.
20942 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20943 frame parameter, and make sure it overrides any user-supplied setting.
20944 (Fx_close_connection, Fx_synchronize): Unify argument names with
20945 the rest of the DEFUNs.
20946
20947 * dispnew.c (Fsend_string_to_terminal): Update call to
20948 `get_tty_terminal'.
20949 (Fredraw_frame, Fsend_string_to_terminal)
20950 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20951 FRAME_TERMCAP_P and FRAME_TTY.
20952 (window_change_signal): Don't believe width/height values that are
20953 impossibly small.
20954 (Vinitial_window_system): Rename from Vwindow_system.
20955 (termscript, Wcm, rif): Delete.
20956
20957 * termhooks.h (struct terminal): New struct containing the
20958 previously global text display hooks and new members NAME,
20959 DELETED and PARAM_ALIST.
20960 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20961 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20962 (FRAME_RIF): New macros.
20963 (get_terminal_param, get_device): New declarations.
20964 (termscript): Delete declaration.
20965
20966 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20967 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20968 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20969 FRAME_FOREGROUND_PIXEL.
20970 (x_fully_uncatch_errors): Disable definition.
20971 (x_scroll_bar_expose): Fix reference to foreground pixel.
20972 (XTread_socket): Disable loop on all X displays.
20973 (x_delete_terminal): Don't set terminal->deleted and let
20974 delete_terminal delete the frames on the terminal.
20975 (x_delete_display): Doc update to reflect changes in
20976 delete_terminal.
20977 (x_display_info) <terminal>: Move member earlier in the struct.
20978 (deleting_tty): Remove old variable.
20979 (Fsuspend_tty): Call clear_tty_hooks.
20980 (Fresume_tty, init_tty): Call set_tty_hooks.
20981 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20982 errors on X frames.
20983 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20984 (handle_one_xevent): Initialize `f' to NULL.
20985 (x_delete_terminal, x_create_terminal): New functions.
20986 (XTset_terminal_modes, XTreset_terminal_modes)
20987 (XTread_socket, x_connection_closed, x_term_init)
20988 (x_term_init, x_delete_display): Add terminal parameter.
20989 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20990 X connections.
20991
20992 * frame.c: Include termchar.h.
20993 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20994 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20995 (Qdisplay_environment_variable): New vars.
20996 (Fframep): Deal with output_initial.
20997 (Fframe-live-p): Doc fix.
20998 (Fwindow-system): New function.
20999 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21000 (make_terminal_frame): Don't create frames on a terminal that is
21001 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21002 (store_frame_param): Check for found_for_frame before calling XFRAME.
21003 (Fmake_terminal_frame): Handle NULL tty names correctly.
21004 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21005 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21006 frames to refer to a deleted frame in their 'environment parameter.
21007 (Fframe_with_environment): New function.
21008 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21009 (get_future_frame_param): New function.
21010 (Fmake_terminal_frame): Use it.
21011 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21012
21013 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21014 * sysdep.c (reset_sys_modes): Update for renames.
21015
21016 * keyboard.c (tty_read_avail_input): New function.
21017 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21018 (syms_of_keyboard): Defsubr them.
21019 (Fset_input_meta_mode, Fset_quit_char): New functions.
21020 (Fset_input_mode): Split to above functions.
21021 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21022 parameter. Use it in call to `read_char'.
21023 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21024 Set wrong_kboard_jmpbuf correctly in recursive calls.
21025 Use current_kboard to access Vkeyboard_translate_table.
21026 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21027 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21028 Update longjmp invocations. Remember the original current_kboard,
21029 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21030 changes it. Comment out unnecessary calls to
21031 `record_single_kboard_state' and `any_kboard_state'.
21032 Update recursive calls.
21033 (wrong_kboard_jmpbuf): Remove global variable.
21034 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21035 Handle deleted interrupted_kboards correctly; that is a legal
21036 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21037 and read_char calls. Abort if interrupted_kboard died in read_char.
21038 (any_kboard_state, single_kboard_state)
21039 (push_frame_kboard): Remove function.
21040 (pop_kboard): Switch out of single_kboard mode if the kboard has
21041 been deleted. Remove unused variable. Help debugging by not
21042 changing current_kboard unnecessarily. Set current_kboard to the
21043 kboard of the selected frame when the stored kboard object has
21044 been deleted before pop_kboard.
21045 (temporarily_switch_to_single_kboard): Change first parameter to a
21046 frame pointer. Throw an error when caller wants to change kboards
21047 while in single_kboard mode. Don't push_kboard if we weren't in
21048 single kboard state. Don't pop_kboard if we popped into any
21049 kboard state.
21050 (restore_kboard_configuration): Abort if pop_kboard changed the
21051 kboard in single_kboard mode. Call pop_kboard only after setting
21052 up single_kboard mode.
21053 (Frecursive_edit): Switch to single_kboard mode only in nested
21054 command loops.
21055 (cmd_error, command_loop, command_loop_1, timer_check):
21056 Comment out unnecessary call to `any_kboard_state' and
21057 `record_single_kboard_state'.
21058 (delete_kboard): Exit single_kboard mode if we have just deleted
21059 that kboard. Use FRAME_KBOARD.
21060 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21061 `fatal_error_signal'.
21062 (record_single_kboard_state): Don't push_kboard if we weren't in
21063 single kboard state. Don't pop_kboard if we popped into any
21064 kboard state.
21065 (push_frame_kboard): Rename to push_kboard.
21066 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21067 (read_avail_input): Read input from all terminals.
21068 (mark_kboards): Also mark Vkeyboard_translate_table.
21069 (kbd_buffer_store_event_hold): Simplify condition.
21070 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21071 (Vkeyboard_translate_table): Move to struct kboard.
21072 (init_kboard): Initialize Vkeyboard_translate_table.
21073 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21074 Vkeyboard_translate_table. Update doc strings. Update docs of
21075 local-function-key-map and function-key-map.
21076
21077 * terminal.c: New file.
21078
21079 * term.c: Include errno.h.
21080 (Vring_bell_function, device_list, initial_device)
21081 (next_device_id, ring_bell, update_begin, update_end)
21082 (set_terminal_window, cursor_to, raw_cursor_to)
21083 (clear_to_end, clear_frame, clear_end_of_line)
21084 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21085 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21086 (syms_of_term): Move their initialization to terminal.c.
21087 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21088 (Ftty_display_color_cells)
21089 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21090 (clear_tty_hooks, set_tty_hooks)
21091 (init_tty, maybe_fatal): New functions.
21092 (Ftty_type): Return nil if terminal is not on a tty instead of
21093 throwing an error. Doc update.
21094 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21095 Doc update. Initialize new subrs and variables.
21096 (delete_tty): Use terminal->deleted.
21097 (tty_set_terminal_modes): Rename from set_terminal_modes.
21098 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21099 (set_scroll_region): Rename to `tty_set_scroll_region'.
21100 (turn_on_insert): Rename to `tty_turn_on_insert'.
21101 (turn_off_insert): Rename to `tty_turn_off_insert'.
21102 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21103 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21104 (toggle_highligh): Rename to `tty_toggle_highlight'.
21105 (background_highlight): Rename to `tty_background_highlight'.
21106 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21107 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21108 (tty_set_scroll_region, tty_background_highlight)
21109 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21110 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21111 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21112 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21113 Add static modifier.
21114 (tty_reset_terminal_modes, tty_set_terminal_window)
21115 (tty_set_scroll_region, tty_background_highlight)
21116 (tty_highlight_if_desired, tty_cursor_to)
21117 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21118 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21119 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21120 renames.
21121
211222007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21123
21124 * keyboard.c: Qrtl is new.
21125 (parse_tool_bar_item): Handle :rtl keyword.
21126 (syms_of_keyboard): Intern :rtl keyword.
21127
21128 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21129
21130 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21131 so no Lisp code is executed.
21132 (file_for_image, find_rtl_image): New functions.
21133 (xg_get_image_for_pixmap): Use file_for_image.
21134 (update_frame_tool_bar): If direction is RTL, use RTL image if
21135 defined. Use Gtk stock images if defined.
21136
211372007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21138
21139 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21140 for nonexistent or zero-width glyph in composition glyph.
21141
211422007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21143
21144 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21145
21146 * xdisp.c (Finvisible_p): New function.
21147 (syms_of_xdisp): defsubr it.
21148
211492007-08-24 Juanma Barranquero <lekktu@gmail.com>
21150
21151 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21152 Doc fixes.
21153
211542007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21155
21156 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21157
211582007-08-24 Martin Rudalics <rudalics@gmx.at>
21159
21160 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21161 whether decoding has modified buffer contents.
21162
211632007-08-24 Jason Rumney <jasonr@gnu.org>
21164
21165 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21166 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21167 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21168 (init_svg_functions) [HAVE_NTGUI]: New function.
21169 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21170 (svg_load_image): Use them.
21171 (svg_load_image) [HAVE_NTGUI]: Implement background.
21172
211732007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21174
21175 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21176 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21177 (LIBX): Remove @RSVG_LIBS@.
21178 (LIBES): Add $(RSVG_LIBS).
21179
21180 * image.c (svg_load_image): Blend with specified background if exists.
21181 Use IMAGE_BACKGROUND. Add Mac OS Support.
21182
21183 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21184 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21185 Remove macros.
21186 [MAC_OSX] (socket_callback): Do nothing.
21187 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21188 ReceiveNextEvent.
21189 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21190 socket_callback.
21191 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21192
211932007-08-22 Glenn Morris <rgm@gnu.org>
21194
21195 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21196
211972007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21198
21199 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21200
21201 * image.c: Add support for SVG images. Some additional comments
21202 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21203 (svg_image_p): New function to test for SVG image.
21204 (svg_load): New function to load SVG image.
21205 (svg_load_image): New function, helper for svg_load.
21206 (Qsvg): New Lisp_object.
21207 (svg_keyword_index): New enum.
21208 (svg_format): New static `image_keyword' struct.
21209 (svg_type): New static `image_type' struct.
21210 (librsvg/rsvg.h): Include it.
21211
212122007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21213
21214 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21215
212162007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21217
21218 * lread.c (Qold_style_backquotes): New var.
21219 (syms_of_lread): Init and staticpro it.
21220 (load_warn_old_style_backquotes): New fun.
21221 (Fload): Use them to warn about old style backquotes.
21222 (end_of_file_error, Fload): Remove unused vars.
21223
21224 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21225
21226 * lread.c (Vold_style_backquotes): New var.
21227 (syms_of_lread): Init and export it to Elisp.
21228 (read1): Set it when we find an old-style (back)quote.
21229
212302007-08-22 Jason Rumney <jasonr@gnu.org>
21231
21232 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21233
212342007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21235
21236 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21237
212382007-08-19 Richard Stallman <rms@gnu.org>
21239
21240 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21241
212422007-08-19 Andreas Schwab <schwab@suse.de>
21243
21244 * alloc.c (pure): Round PURESIZE up.
21245
212462007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21247
21248 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21249 active frame.
21250
212512007-08-16 Richard Stallman <rms@gnu.org>
21252
21253 * eval.c (Fcommandp): Add parens to clarify.
21254
21255 * minibuf.c (Fall_completions): Use enum for type of table.
21256
21257 * emacs.c (USAGE2): Improve text.
21258
212592007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21260
21261 * term.c (tty_default_color_capabilities): Declare static
21262 variables in file scope, to avoid HPUX compiler problem.
21263
212642007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21265
21266 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21267 to gtk_toolbar_insert.
21268
212692007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21272
21273 * insdel.c (reset_var_on_error): New fun.
21274 (signal_before_change, signal_after_change):
21275 Use it to reset (after|before)-change-functions to nil in case of error.
21276 Bind inhibit-modification-hooks to t.
21277 Don't bind (after|before)-change-functions to nil while they run.
21278
212792007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21280
21281 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21282 filling pixmap with stippled background.
21283
212842007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21285
21286 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21287 Don't use invisible frame as parent window for repositioning.
21288
212892007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21290
21291 * print.c (new_backquote_output): Rename from old_backquote_output.
21292 (print): Inverse its logic (according to its name) so as to match the
21293 behavior of new_backquote_flag in lread.c.
21294
212952007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21296
21297 * gmalloc.c (posix_memalign): New function.
21298
21299 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21300 ActivateControl/DeactivateControl here.
21301 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21302 frame-notice-user-settings is non-nil.
21303 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21304 for kEventParamFMFontStyle.
21305 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21306 mac_pass_command_to_system and mac_pass_control_to_system here.
21307 (XTread_socket): Call ActivateControl/DeactivateControl here.
21308 (XTread_socket) [TARGET_API_MAC_CARBON]:
21309 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21310 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21311 for window repositioning.
21312
213132007-08-08 Glenn Morris <rgm@gnu.org>
21314
21315 * Replace `iff' in doc-strings and comments.
21316
213172007-08-07 Chong Yidong <cyd@stupidchicken.com>
21318
21319 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21320
213212007-08-07 Martin Rudalics <rudalics@gmx.at>
21322
21323 * fileio.c (Finsert_file_contents): Run format-decode and
21324 after_insert_file_functions on entire buffer when REPLACE is
21325 non-nil and inhibit modification_hooks and point_motion_hooks.
21326 For consistency, run after_insert_file_functions iff something
21327 got inserted. Move signal_after_change and update_compositions
21328 after code running after_insert_file_functions. Make sure that
21329 undo_list doesn't record intermediate steps of the decoding process.
21330
213312007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21332
21333 * emacs.c (main)
21334 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21335 Call malloc_enable_thread on interactive startup.
21336
21337 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21338 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21339 [USE_PTHREAD]: Conditionalize with it.
21340 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21341 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21342 New functions.
21343
213442007-08-06 Chong Yidong <cyd@stupidchicken.com>
21345
21346 * xdisp.c (redisplay_window): When restoring original buffer
21347 position, make sure it is still valid.
21348
21349 * image.c (png_load): Ignore png-supplied background color.
21350
213512007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21352
21353 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21354 Use kCFAbsoluteTimeIntervalSince1970.
21355
21356 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21357 New variable.
21358 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21359 event loop should be quit.
21360 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21361 Quit dialog event loop if quit_dialog_event_loop is set.
21362
21363 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21364 (Selection): New typedef. Use instead of ScrapRef.
21365 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21366 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21367 (mac_clear_selection): Rename from clear_scrap.
21368 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21369 scrap_has_target_type. All uses changed.
21370 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21371 (mac_selection_has_target_p): New functions.
21372 (mac_put_selection_value): Rename from put_scrap_string.
21373 (mac_get_selection_value): Rename from get_scrap_string.
21374 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21375 (put_scrap_private_timestamp, scrap_has_target_type)
21376 (get_scrap_private_timestamp): Remove functions.
21377 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21378 (x_own_selection, x_get_local_selection):
21379 Use mac_valid_selection_value_p.
21380 (x_own_selection): Don't use put_scrap_private_timestamp.
21381 Record OWNERSHIP-INFO into Vselection_alist instead.
21382 (x_get_local_selection): Don't check type if request is local.
21383 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21384 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21385
213862007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21387
21388 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21389 add comment explaining why.
21390
213912007-08-03 Richard Stallman <rms@gnu.org>
21392
21393 * fileio.c (Fvisited_file_modtime): Use make_time.
21394
213952007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21396
21397 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21398 build.
21399
214002007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21401
21402 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21403
214042007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21405
21406 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21407
214082007-07-30 Richard Stallman <rms@gnu.org>
21409
21410 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21411
214122007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21413
21414 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21415
214162007-07-28 Nick Roberts <nickrob@snap.net.nz>
21417
21418 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21419 remote default-directory.
21420
21421 * buffer.c (mode-line-format): Update doc string.
21422
214232007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21424
21425 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21426 scroll bar gap.
21427 (x_scroll_bar_create): Set bar->fringe_extended_p.
21428 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21429 on frame edge. Check fringe background extension. Don't clear
21430 extended fringe background area.
21431
21432 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21433 (w32_fill_area): Enclose multiple statements with do ... while (0).
21434
21435 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21436 Extend fringe background to scroll bar gap.
21437 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21438 Set bar->fringe_extended_p.
21439 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21440 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21441 background extension. Don't clear extended fringe background area.
21442
21443 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21444 New member fringe_extended_p.
21445
214462007-07-25 Glenn Morris <rgm@gnu.org>
21447
21448 * Relicense all FSF files to GPLv3 or later.
21449
21450 * COPYING: Switch to GPLv3.
21451
214522007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21455
21456 * data.c (Finteractive_form): Check for the presence of an
21457 `interactive-form' symbol property more thoroughly.
21458
21459 * data.c (Finteractive_form): Use an `interactive-form' property if
21460 present, analogous to the function-documentation property.
21461
214622007-07-24 Jason Rumney <jasonr@gnu.org>
21463
21464 * w32fns.c (x_real_positions): Get real position from OS instead of
21465 calculating it.
21466
214672007-07-23 Jason Rumney <jasonr@gnu.org>
21468
21469 * filelock.c (current_lock_owner): Allow for @ sign in username.
21470
214712007-07-22 Nick Roberts <nickrob@snap.net.nz>
21472
21473 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21474 remote default-directory.
21475
21476 * buffer.c (mode-line-format): Describe above case in doc string.
21477
214782007-07-20 Eli Zaretskii <eliz@gnu.org>
21479
21480 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21481 Define if not defined.
21482
214832007-07-18 Jason Rumney <jasonr@gnu.org>
21484
21485 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21486
214872007-07-18 Richard Stallman <rms@gnu.org>
21488
21489 * data.c (Fsetq_default): Doc fix.
21490
21491 * eval.c (Fsetq): Doc fix.
21492
214932007-07-18 Juanma Barranquero <lekktu@gmail.com>
21494
21495 * coding.c (Ffind_operation_coding_system):
21496 * eval.c (For, Fand): Doc fixes.
21497 Reported by Johan Bockgård.
21498
214992007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21500
21501 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21502
21503 * xterm.h: Declare x_ewmh_activate_frame.
21504
21505 * xterm.c (x_ewmh_activate_frame): New function.
21506 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21507
215082007-07-17 Martin Rudalics <rudalics@gmx.at>
21509
21510 * window.c (Fdisplay_buffer): If largest or LRU window is the
21511 only window, split it even if it is not eligible for splitting.
21512 This restores the original behavior broken by the 2007-07-15
21513 change.
21514
215152007-07-17 Glenn Morris <rgm@gnu.org>
21516
21517 * abbrev.c (abbrev_check_chars): New function.
21518 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21519 Call abbrev_check_chars to check abbrev characters are word
21520 constituents. Doc fix.
21521
215222007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21523
21524 * process.c (Fstart_process, Fmake_network_process)
21525 (read_process_output): Fix up last changes.
21526
215272007-07-16 Eli Zaretskii <eliz@gnu.org>
21528
21529 * makefile.w32-in (clean): Don't delete *~.
21530
215312007-07-16 Andreas Schwab <schwab@suse.de>
21532
21533 * window.c (Fdisplay_buffer): Use NILP.
21534 (Fset_window_scroll_bars): Likewise.
21535
215362007-07-15 Martin Rudalics <rudalics@gmx.at>
21537
21538 * window.c (window_min_size_2): New function.
21539 (window_min_size_1, size_window, Fdisplay_buffer)
21540 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21541 windows without mode- or header-lines when window-min-height is
21542 too small.
21543 (size_window): Reset nodelete_p after testing it, following an
21544 earlier note by Kim F. Storm.
21545 (display_buffer): Do not set split_height_threshold to twice the
21546 value of window_min_height to avoid changing the value of a
21547 customizable variable. Rather explicitly check whether the
21548 height of the window that shall be splitted is at least as large
21549 as split_height_threshold.
21550 (Fwindow_full_width_p): New defun.
21551 (syms_of_window): Defsubr it.
21552
21553 * window.h: Add EXFUN for Fwindow_full_width_p.
21554
215552007-07-14 Jason Rumney <jasonr@gnu.org>
21556
21557 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21558
215592007-07-14 Richard Stallman <rms@gnu.org>
21560
21561 * eval.c (maybe_call_debugger): New function.
21562 (find_handler_clause): Use maybe_call_debugger.
21563 Call it when the handler says `debug'.
21564 Eliminate DEBUGGER_VALUE_PTR.
21565 (Fsignal): Eliminate debugger_value.
21566 (Qdebug): New variable.
21567 (syms_of_eval): Initialize it.
21568
215692007-07-14 Juanma Barranquero <lekktu@gmail.com>
21570
21571 * eval.c (Fprogn):
21572 * keyboard.c (Ftrack_mouse):
21573 * print.c (Fwith_output_to_temp_buffer):
21574 * window.c (Fsave_window_excursion): Doc fix.
21575
215762007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21577
21578 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21579
215802007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21581
21582 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21583 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21584 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21585 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21586 Remove unused encoding_carryover.
21587 * process.c: Adjust all functions accordingly.
21588
215892007-07-12 Richard Stallman <rms@gnu.org>
21590
21591 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21592
215932007-07-11 Jason Rumney <jasonr@gnu.org>
21594
21595 * makefile.w32-in (LIBS): Include OLE32.
21596
21597 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21598 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21599
216002007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21601
21602 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21603 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21604 from a Lisp_Object into a bare pointer.
21605 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21606 Adjust the code correspondingly.
21607
21608 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21609
21610 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21611 (term_show_mouse_face): Remove unused var `j'.
21612 (handle_one_term_event): Remove unused vars `i' and `j'.
21613 Don't cast return value of ttyname since it's not necessary.
21614
216152007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21616
21617 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21618 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21619
21620 * fns.c (map_char_table): Use an array of int for `indices' rather than
21621 an array of Lisp_Objects (which are only ever integers anyway).
21622 (Fmap_char_table): Update caller.
21623 * lisp.h: Update prototype.
21624 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21625 * fontset.c (Ffontset_info):
21626 * casetab.c (set_case_table): Update callers.
21627
21628 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21629
21630 * keymap.c (struct accessible_keymaps_data)
21631 (struct where_is_internal_data): New structures.
21632 (accessible_keymaps_1, where_is_internal_1): Use them to change
21633 interface to adhere to the one used by map_keymap.
21634 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21635 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21636
21637 * keymap.h (map_keymap_function_t): More informative prototype.
21638
216392007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21640
21641 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21642 (looking_at_1): Don't change search_regs and last_thing_searched
21643 if `inhibit-changing-match-data' is non-nil.
21644 (string_match_1, search_buffer, set_search_regs): Likewise.
21645 (syms_of_search): Add Lisp level definition for
21646 `inhibit-changing-match-data' and set it to nil.
21647 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21648 start and end of the match, instead of using values in search_regs.
21649
216502007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21651
21652 * minibuf.c (Fcompleting_read): New value `confirm-only'
21653 for `require-match'.
21654
216552007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21656
21657 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21658 part of the 2007-06-27 change to syms_of_fileio.
21659
216602007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21661
21662 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21663 Check WINDOWP before using XWINDOW. Consolidate return statements.
21664
216652007-06-27 Richard Stallman <rms@gnu.org>
21666
21667 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21668
216692007-06-27 Juanma Barranquero <lekktu@gmail.com>
21670
21671 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21672
216732007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21674
21675 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21676 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21677 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21678 (_free_internal, memalign): Use them.
21679 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21680 Initialize to PTHREAD_MUTEX_INITIALIZER.
21681 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21682 (morecore_nolock): Rename from morecore. All uses changed.
21683 Use only nolock versions of internal allocation functions.
21684 (_malloc_internal_nolock, _realloc_internal_nolock)
21685 (_free_internal_nolock): New functions created from
21686 _malloc_internal, _realloc_internal, and _free_internal.
21687 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21688 Copy hook value to automatic variable before its use.
21689 (memalign): Copy hook value to automatic variable before its use.
21690
216912007-06-26 Kenichi Handa <handa@m17n.org>
21692
21693 * coding.c (Ffind_operation_coding_system): Docstring improved.
21694 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21695
216962007-06-25 David Kastrup <dak@gnu.org>
21697
21698 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21699 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21700 cater for additional parameter.
21701
21702 * keymap.h: Adjust number of parameters to `current-active-maps'.
21703
21704 * doc.c (Fsubstitute_command_keys): Adjust call of
21705 `current-active-maps'.
21706
217072007-06-25 David Kastrup <dak@gnu.org>
21708
21709 * callint.c (Fcall_interactively): Make the parsing of interactive
21710 specs somewhat more readable.
21711
217122007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21713
21714 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21715 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21716 if extended background has already been filled.
21717
217182007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21719
21720 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21721 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21722
21723 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21724 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21725 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21726 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21727 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21728 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21729 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21730 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21731 Run timers during dialog popup.
21732 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21733
217342007-06-21 Jason Rumney <jasonr@gnu.org>
21735
21736 * image.c (convert_mono_to_color_image): Swap fore and background.
21737
217382007-06-20 Jason Rumney <jasonr@gnu.org>
21739
21740 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21741 (w32_free_bdf_font): Unmap memory not handle.
21742
217432007-06-20 Sam Steingold <sds@gnu.org>
21744
21745 * gmalloc.c (__morecore): Fix the declaration to comply with the
21746 definition.
21747
217482007-06-20 Juanma Barranquero <lekktu@gmail.com>
21749
21750 * w32term.c (w32_delete_display): Remove leftover declaration.
21751 (w32_define_cursor, w32_initialize): Make static.
21752
21753 * w32.c (_wsa_errlist): Fix typo in error message.
21754 (init_environment): Ignore any environment variable from the
21755 registry having a null value.
21756
217572007-06-20 Glenn Morris <rgm@gnu.org>
21758
21759 * Makefile.in (LIBGIF): Default to -lgif.
21760
217612007-06-17 Jason Rumney <jasonr@gnu.org>
21762
21763 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21764 unicode strings.
21765
217662007-06-16 Juanma Barranquero <lekktu@gmail.com>
21767
21768 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21769 Fix typo in docstring.
21770
217712007-06-16 Eli Zaretskii <eliz@gnu.org>
21772
21773 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21774 and their keybindings.
21775
217762007-06-15 Chong Yidong <cyd@stupidchicken.com>
21777
21778 * composite.c (update_compositions): Fix last fix.
21779
217802007-06-14 Jason Rumney <jasonr@gnu.org>
21781
21782 * w32.c (get_process_times_fn): New function pointer.
21783 (globals_of_w32): Intialize it if present in kernel32.dll.
21784 (w32_get_internal_run_time): New function.
21785
21786 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21787
217882007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21789
21790 * composite.c (update_compositions): Check the validness of
21791 compositions.
21792
217932007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21794
21795 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21796 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21797
21798 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21799 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21800
21801 * macgui.h (USE_MAC_TOOLBAR): New define.
21802
21803 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21804 Return immediately unless popup is activated.
21805
21806 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21807 background to scroll bar gap.
21808 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21809 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21810 scroll bars on frame edge. Check fringe background extension.
21811 Don't clear extended fringe background area.
21812 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21813 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21814 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21815 [USE_MAC_TOOLBAR]: New macros.
21816 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21817 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21818 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21819 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21820 [USE_MAC_TOOLBAR]: New functions.
21821 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21822 manually if previous repositioning has failed.
21823 (mac_handle_keyboard_event): Use precomputed event kind.
21824 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21825 as tool bar item click. Handle mouse movement over tool bar items.
21826
21827 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21828 toolbar_win_gravity.
21829 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21830 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21831 Add externs.
21832
21833 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21834 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21835
218362007-06-14 Chong Yidong <cyd@stupidchicken.com>
21837
21838 * image.c (search_image_cache): Remove unused variable.
21839
218402007-06-13 Chong Yidong <cyd@stupidchicken.com>
21841
21842 * xfns.c, xmenu.c: Link to xaw3d if available.
21843
218442007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21845
21846 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21847 frame_foreground and frame_background.
21848
21849 * image.c (lookup_image): Save frame foreground and background colors.
21850 (search_image_cache): Check if saved and current frame colors match.
21851
218522007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21853
21854 * regex.c (regex_compile): Remove the `regnum' counter.
21855 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21856
218572007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21858
21859 * term.c: Include intervals.h to declare Fget_text_property.
21860
218612007-06-10 Jason Rumney <jasonr@gnu.org>
21862
21863 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21864
218652007-06-08 Juanma Barranquero <lekktu@gmail.com>
21866
21867 * callint.c (Fcall_interactively):
21868 * editfns.c (Fdelete_and_extract_region):
21869 * fileio.c (Fread_file_name):
21870 * fns.c (Fmapconcat):
21871 * keyboard.c (cmd_error_internal):
21872 * keymap.c (Fkey_description):
21873 * lread.c (openp):
21874 * minibuf.c (read_minibuf):
21875 * search.c (wordify):
21876 * sunfns.c (sel_read):
21877 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21878 * xfns.c (x_default_scroll_bar_color_parameter):
21879 * xmenu.c (menu_help_callback):
21880 * xselect.c (Fx_get_atom_name):
21881 * xterm.c (x_term_init): Use empty_unibyte_string.
21882
218832007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21884
21885 * alloc.c (init_strings): Initialize canonical empty strings.
21886 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21887 canonical empty string when the requested size is 0.
21888
21889 * emacs.c (empty_unibyte_string): Rename from empty_string.
21890 (empty_multibyte_string): New canonical empty string.
21891 (syms_of_emacs): Don't initialize empty_string.
21892
21893 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21894 string, if appropriate.
21895 (empty_unibyte_string, empty_multibyte_string): New externs.
21896 (empty_string): Remove extern.
21897
21898 * lread.c (syms_of_lread): Use empty_unibyte_string.
21899
219002007-06-07 Jason Rumney <jasonr@gnu.org>
21901
21902 * s/ms-w32.h: Don't define HAVE_TZNAME.
21903
21904 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21905
219062007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21907
21908 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21909
21910 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21911 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21912
21913 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21914 Don't call next handler.
21915 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21916 Remove argument. Install handler to application.
21917 (set_frame_menubar): Don't change deep_p.
21918 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21919 FRAME_OUTER_TO_INNER_DIFF_Y.
21920 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21921 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21922 [HAVE_DIALOGS]: New macros.
21923 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21924 Use them.
21925 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21926
21927 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21928 init_service_handler. All callers changed. Return OSStatus value.
21929
21930 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21931 All callers changed so as not to call SetPortWindowPort.
21932 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21933 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21934 mac_draw_string_common.
21935 (mac_draw_image_string_qd): Likewise.
21936 (mac_draw_string_common): Use them. Add INLINE.
21937 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21938 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21939 GetGlobalMouse.
21940 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21941 and FRAME_OUTER_TO_INNER_DIFF_Y.
21942 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21943 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21944 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21945 repositioning window to mac_handle_window_event.
21946 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21947 saving window location to mac_handle_window_event
21948 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21949 (install_menu_target_item_handler): Remove argument in extern.
21950 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21951 Also accept command events.
21952 (do_keystroke): New function created from XTread_socket.
21953 (init_command_handler): Remove functions.
21954 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21955 and save window location by kEventWindowShowing and kEventWindowHiding
21956 handlers here. Don't call next handler for window state change and
21957 focus events.
21958 (mac_handle_application_event, mac_handle_keyboard_event)
21959 [TARGET_API_MAC_CARBON]: New functions.
21960 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21961 kEventWindowShowing and kEventWindowHiding events. Move installation
21962 of mouse, font, text input and menu target item handlers to
21963 install_application_handler.
21964 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21965 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21966 New function.
21967 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21968 Register it.
21969 (XTread_socket) [TARGET_API_MAC_CARBON]:
21970 Consolidate SendEventToEventTarget calls.
21971 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21972 Move application activation handler to mac_handle_application_event.
21973 Move keyboard handler to mac_handle_keyboard_event.
21974 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21975 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21976 init_command_handler. Call install_application_handler.
21977
21978 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21979 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21980
219812007-06-07 Glenn Morris <rgm@gnu.org>
21982
21983 * emacs.c (main): Use `emacs-copyright' in --version output.
21984
219852007-06-06 Chong Yidong <cyd@stupidchicken.com>
21986
21987 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21988
219892007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21990
21991 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21992
21993 * macgui.h: Replace WindowPtr with WindowRef.
21994
21995 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21996 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21997 Replace ControlHandle with ControlRef.
21998 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21999
22000 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22001 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22002 Replace ControlHandle with ControlRef.
22003 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22004 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22005
22006 * macterm.h (struct scroll_bar): Rename member control_handle_low
22007 and control_handle_high to control_ref_low and control_ref_high.
22008 All uses changed.
22009 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22010 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22011 respectively. All uses changed.
22012 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22013 (install_window_handler, remove_window_handler): Replace WindowPtr
22014 with WindowRef in externs.
22015
220162007-06-05 Juanma Barranquero <lekktu@gmail.com>
22017
22018 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22019
220202007-06-03 Nick Roberts <nickrob@snap.net.nz>
22021
22022 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22023
22024 * frame.c (Fmouse_position, Fmouse_pixel_position):
22025 Condition on HAVE_GPM too.
22026
22027 * term.c (term_mouse_highlight): Remove unused variables.
22028 (Fterm_open_connection): Set gpm_zerobased to 1.
22029 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22030 Use zero based co-ordinates.
22031 (handle_one_term_event): Report a drag as mouse movement too.
22032
22033 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22034
220352007-06-03 Chong Yidong <cyd@stupidchicken.com>
22036
22037 * image.c (search_image_cache): New function. Require background
22038 color match if background color is unspecified in the image spec.
22039 (uncache_image, lookup_image): Use it.
22040
220412007-06-01 Juanma Barranquero <lekktu@gmail.com>
22042
22043 * window.c (Fshrink_window): Reflow docstring.
22044
220452007-06-02 Chong Yidong <cyd@stupidchicken.com>
22046
22047 * Version 22.1 released.
22048
220492007-06-01 Richard Stallman <rms@gnu.org>
22050
22051 * xfns.c (x_encode_text): Add GCPRO.
22052
220532007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22054
22055 * xfns.c (x_set_name_internal): Save encoded name before
22056 x_encode_text in case string data is relocated.
22057
220582007-05-31 Richard Stallman <rms@gnu.org>
22059
22060 * buffer.c (syms_of_buffer): Doc fix.
22061
220622007-05-30 Nick Roberts <nickrob@snap.net.nz>
22063
22064 * sysdep.c (init_sys_modes): Add rather than replace with
22065 O_NONBLOCK.
22066
22067 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22068 term_mouse_moveto.
22069
22070 * termhooks.h (term_mouse_moveto): New extern.
22071
22072 * term.c (mouse_face_window): Rename...
22073 (Qmouse_face_window): ...to this.
22074 (term_show_mouse_face, term_clear_mouse_face)
22075 (term_mouse_highlight): Use Qmouse_face_window.
22076 (term_mouse_moveto): New function.
22077 (term_mouse_position): Make it work.
22078 (syms_of_term): Uncomment assignment to mouse_position_hook.
22079 Staticpro Qmouse_face_window.
22080
220812007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22082
22083 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22084 around current_column call.
22085
220862007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22087
22088 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22089 * xdisp.c (next_element_from_buffer):
22090 * window.c (delete_window):
22091 * term.c (term_mouse_highlight):
22092 * msdos.c (getdefdir):
22093 * macterm.c (mac_create_bitmap_from_bitmap_data)
22094 (init_font_name_table):
22095 * fns.c (Fsxhash):
22096 * data.c (Fmake_local_variable):
22097 * ccl.c (ccl_driver): Likewise.
22098
220992007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22100
22101 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22102 Call mac_wakeup_from_rne on window size change.
22103
221042007-05-25 Chong Yidong <cyd@stupidchicken.com>
22105
22106 * image.c (uncache_image): Fix typo.
22107
221082007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22109
22110 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22111
221122007-05-22 Richard Stallman <rms@gnu.org>
22113
22114 * xterm.c (x_connection_closed): Remove NO_RETURN.
22115
221162007-05-22 Martin Rudalics <rudalics@gmx.at>
22117
22118 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22119
221202007-05-21 Chong Yidong <cyd@stupidchicken.com>
22121
22122 * image.c (uncache_image): New function.
22123 (Fimage_refresh): New function.
22124
221252007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22126
22127 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22128
221292007-05-20 Nick Roberts <nickrob@snap.net.nz>
22130
22131 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22132 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22133
221342007-05-20 Nick Roberts <nickrob@snap.net.nz>
22135
22136 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22137 conditional on [HAVE_GPM_H].
22138
221392007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22140
22141 * syntax.c (skip_chars): Update syntax-table only after we checked that
22142 the new location is valid.
22143
221442007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22145
22146 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22147 mac_get_window_bounds.
22148
221492007-05-20 Nick Roberts <nickrob@snap.net.nz>
22150
22151 * Makefile.in (LIBGPM): Allow it to be set from configure.
22152 If set then link Emacs with it.
22153
22154 * config.in: Regenerate.
22155
22156 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22157 New externs.
22158
22159 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22160 Include gpm.h.
22161 (handle_one_term_event, term_gpm): New externs.
22162
22163 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22164 and allow it to be interrupted by SIGIO.
22165
22166 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22167 (wait_reading_process_output): Wait on gpm_fd too.
22168 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22169 (add_gpm_wait_descriptor_called_flag): New variable.
22170 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22171
22172 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22173 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22174 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22175 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22176 (make_lispy_event): Add case GPM_CLICK_EVENT.
22177 (read_avail_input): Handle mouse input.
22178
22179 * term.c (write_glyphs_with_face): New function.
22180 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22181 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22182 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22183 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22184 (last_mouse_x, last_mouse_y): New variables.
22185 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22186 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22187 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22188 (Fterm_close_connection): New functions.
22189 (term_init): Initialise mouse_face_window.
22190
221912007-05-19 Chong Yidong <cyd@stupidchicken.com>
22192
22193 * xdisp.c (redisplay_window): If first window line is a
22194 continuation line, recompute the new window start instead of
22195 recentering.
22196
221972007-05-18 Glenn Morris <rgm@gnu.org>
22198
22199 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22200 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22201
222022007-05-17 Glenn Morris <rgm@gnu.org>
22203
22204 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22205
222062007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22207
22208 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22209 dead key repeat and up events.
22210
222112007-05-14 Chong Yidong <cyd@stupidchicken.com>
22212
22213 * image.c (pbm_load): Check image size for monochrome pbm.
22214
222152007-05-13 Chong Yidong <cyd@stupidchicken.com>
22216
22217 * xterm.c (XTread_socket): Revert last change.
22218
222192007-05-12 Chong Yidong <cyd@stupidchicken.com>
22220
22221 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22222
22223 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22224
222252007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22226
22227 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22228 mixup (YAILOM).
22229
222302007-05-07 Andreas Schwab <schwab@suse.de>
22231
22232 * keymap.c (Flookup_key): Fix typo in last change.
22233
222342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22235
22236 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22237 mapping for unibyte strings.
22238
222392007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22240
22241 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22242 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22243
222442007-04-29 Richard Stallman <rms@gnu.org>
22245
22246 * insdel.c (replace_range): For undo, record insertion first.
22247
222482007-04-29 Andreas Schwab <schwab@suse.de>
22249
22250 * lisp.h (VECSIZE): Use OFFSETOF.
22251
222522007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22253
22254 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22255 disabled lines.
22256
222572007-04-28 Richard Stallman <rms@gnu.org>
22258
22259 * lread.c (read_escape): In a string, \s is always space.
22260
222612007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22262
22263 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22264
22265 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22266 submenu for menu bar items.
22267
22268See ChangeLog.10 for earlier changes.
22269
22270;; Local Variables:
22271;; coding: utf-8
22272;; add-log-time-zone-rule: t
aac0c6e3
MR
22273;; End:
22274
e3eb1dae 22275 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22276
22277 This file is part of GNU Emacs.
22278
22279 GNU Emacs is free software: you can redistribute it and/or modify
22280 it under the terms of the GNU General Public License as published by
22281 the Free Software Foundation, either version 3 of the License, or
22282 (at your option) any later version.
22283
22284 GNU Emacs is distributed in the hope that it will be useful,
22285 but WITHOUT ANY WARRANTY; without even the implied warranty of
22286 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22287 GNU General Public License for more details.
22288
22289 You should have received a copy of the GNU General Public License
22290 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22291
22292;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40