* org-export-latex.el (org-export-as-latex): Call
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8612b71a
AR
12009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 Changes to remove Feval calls from GUI under NS.
4
d8038940
JB
5 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8
9 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
12 instead of NON_ASCII_KEYSTROKE_EVENT.
13 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14 (EmacsApp-applicationShouldTerminate:): Query user.
15 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
16 instead of Feval.
17
18 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
19
20 * keyboard.c (kbd_buffer_get_event): Check for it.
21 (keys_of_keyboard): Define lispy keys for
22 ns-put/unput-working-text.
23
24 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
25 versions.
26 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
27
6288ae55
CY
282009-01-25 Chong Yidong <cyd@stupidchicken.com>
29
30 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 31 setting current_buffer directly. (Bug#2044)
6288ae55 32
289e7f8f
CY
332009-01-24 Chong Yidong <cyd@stupidchicken.com>
34
5ce87308 35 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 36 any work. (Bug#1952, bug#1990).
5ce87308 37
64cc3cf6 38 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 39
b3243e6f
AR
402009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
41
42 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
43 (ns_no_defaults): New declaration.
44 (main): Use it.
e0d2e69a 45
d900b2af 46 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 47
d900b2af 48 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 49
d900b2af
AR
50 * nsterm.m (ns_no_defaults): New variable.
51 (ns_initialize): Don't read defaults when ns_no_defaults.
52 (EmacsView-readSelectionFromPasteboard:)
53 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 54 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
55 (ns_dumpglyphs_stretch): New function.
56 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 57 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 58
e0d2e69a
AR
59 * nsimage.m (setPixmapData:): Set to ignore image DPI.
60
3ac71f5d
CY
612009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
62
63 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
64 call for Sparc64.
65
3fe53a83
AR
662009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
67
68 * nsfns.m:
69 * nsgui.h:
70 * nsmenu.m:
71 * nsselect.m:
72 * nsterm.h:
73 * nsterm.m: Remove '23' comments that indicated code added during
74 update from emacs-20 -> emacs-23.
75
10f87c6f 762009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
77
78 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 79 ns_alternate_modifier. (Bug#1217)
a3b53a85 80
c7cef62d
AR
81 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
82 Display all shortcuts, including those w/o super modifier.
83
575fb8bd
AR
84 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
85
918b848b
CY
862009-01-22 Chong Yidong <cyd@stupidchicken.com>
87
88 * fileio.c (Vwrite_region_post_annotation_function)
89 (Vwrite_region_annotation_buffers): New vars.
90 (build_annotations_unwind): Just reset
91 Vwrite_region_annotation_buffers.
92 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
93 Call write-region-post-annotation-function.
94 (build_annotations): Add to Vwrite_region_annotation_buffers if
95 buffer changes.
96
a39e2539
AR
972009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
98
99 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
100 Tiger.
101 * nsfns.m (ns_do_applescript): Conditionalize
102 typeUTF16ExternalRepresentation on Tiger.
103
35ed44db
AR
1042009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
105
106 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
107
cbe0b5bf
AR
1082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
109
110 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 111
6049d3a0
AR
112 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
113
114 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
115 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
116 handle Ctrl-tab. (Bug#1841)
117 (ns_get_color): Use unsigned long long for scanned hex string value.
118 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 119 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 120 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 121 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 122 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 123 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 124 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 125
d3810c21 126 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 127 DPI. (Bug#1316)
d3810c21
AR
128 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
129 values in onTiger section.
4c7077c3 130
e301e634
CY
1312009-01-19 Chong Yidong <cyd@stupidchicken.com>
132
7f82490b
CY
133 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
134 Check return value of font_spec_from_name.
64cc3cf6 135 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
136
137 * font.c (font_spec_from_name): Return Qnil if font name could not
138 be parsed.
139 (font_parse_name): Treat a `?' character as part of an XLFD.
140
e301e634
CY
141 * fns.c (Fsubstring): Doc fix.
142
1c0db158
KH
1432009-01-19 Kenichi Handa <handa@m17n.org>
144
145 * ftfont.c (ftfont_lookup_cache): Check the return value of
146 FcFontList.
147 (ftfont_list): Likewise.
148
acf20901
JB
1492009-01-18 Juanma Barranquero <lekktu@gmail.com>
150
fff4e459
JB
151 * dbusbind.c (Fdbus_register_signal):
152 * process.c (conv_sockaddr_to_lisp):
153 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
154
acf20901
JB
155 * callproc.c (Fgetenv_internal): Doc fix.
156
e7abcdfb
CY
1572009-01-16 Chong Yidong <cyd@stupidchicken.com>
158
159 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
160 it is not even used.
161
b60861e6
GM
1622009-01-16 Glenn Morris <rgm@gnu.org>
163
164 * font.c (Ffont_variation_glyphs): Silence compiler.
165
8db52afe
JB
1662009-01-15 Juanma Barranquero <lekktu@gmail.com>
167
168 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
169 Reported by David Robinow <drobinow@gmail.com>.
170
4cddb209
KH
1712009-01-15 Kenichi Handa <handa@m17n.org>
172
173 * coding.c (detect_coding_system): Fix handling of
174 null_byte_found.
175
f247f67b
JR
1762009-01-14 Jason Rumney <jasonr@gnu.org>
177
178 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 179 never a fontset. (Bug#1562)
f247f67b 180
f56a4450
KH
1812009-01-14 Kenichi Handa <handa@m17n.org>
182
183 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 184 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 185
4e99855e
CY
1862009-01-13 Chong Yidong <cyd@stupidchicken.com>
187
188 * font.c (font_clear_prop): If clearing the family, clear the font
189 width index too.
190
fff4e459 191 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 192
24f01470
JB
1932009-01-12 Juanma Barranquero <lekktu@gmail.com>
194
195 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
196 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
197 functions, use sizeof.
198
a41240a3
MR
1992009-01-12 Martin Rudalics <rudalics@gmx.at>
200
201 * keyboard.c (read_char): Fix case where last_nonmenu_event
202 returned a bad value with submenus. (Bug#447)
203
944636b8
CY
2042009-01-12 Chong Yidong <cyd@stupidchicken.com>
205
206 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
207 family, clear the font width index too.
208
0dad7c6f
JR
2092009-01-11 Jason Rumney <jasonr@gnu.org>
210
211 * keyboard.c (cmd_error_internal): Exit when errors occur before
212 frame creation and not in daemon mode. (Bug#1836)
213
7c2363af
CY
2142009-01-10 Chong Yidong <cyd@stupidchicken.com>
215
216 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
217 of a display vector, backtrack.
218 (try_window_reusing_current_matrix): Check glyph type before
219 referencing charpos member.
220
97b1b294
EZ
2212009-01-10 Eli Zaretskii <eliz@gnu.org>
222
223 Fix Bug #876:
224
225 * coding.c (inhibit_null_byte_detection): New variable.
226 (detect_coding, detect_coding_system): Don't pay attention to null
227 bytes if inhibit_null_byte_detection is non-zero.
228 (syms_of_coding) <inhibit-null-byte-detection>: Declare and
229 document.
230 <inhibit-iso-escape-detection>: Doc fix.
231
4624b6e3
JR
2322009-01-09 Jason Rumney <jasonr@gnu.org>
233
234 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 235 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
236 Only report Unicode Plane 2 fonts as unicode-sip.
237
323b840c
CY
2382009-01-09 Chong Yidong <cyd@stupidchicken.com>
239
240 * xfaces.c (Fx_font_family_list): Function deleted. Compatibility
241 version moved to faces.el.
242
243 * font.c (Ffont_family_list): Return a list of strings, not
244 symbols.
245
eba7400d
MR
2462009-01-09 Martin Rudalics <rudalics@gmx.at>
247
248 * frame.c (x_set_frame_parameters): Remember requested value for
249 fullscreen before it's reset by the parameter handler.
250
4b09796d
GM
2512009-01-09 Glenn Morris <rgm@gnu.org>
252
253 * keyboard.c (last_command_char): For clarity, rename to...
254 (last_command-event): ... and update all users.
255 (last_input_char): For clarity, rename to...
256 (last_input_event): ... and update all users.
257 (last-command-char, last-input-char): Move to subr.el as aliases.
258 * cmds.c, commands.h: Update for last_command_char rename.
259
14ccea62
CY
2602009-01-08 Chong Yidong <cyd@stupidchicken.com>
261
262 * font.c (font_open_for_lface): Handle unspecified height
263 attribute.
264
5f004711
JR
2652009-01-08 Jason Rumney <jasonr@gnu.org>
266
267 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
268 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
269 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
270 Don't declare.
fff4e459 271 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
272 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
273
b71f6f73
KH
2742009-01-07 Kenichi Handa <handa@m17n.org>
275
50b06221 276 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 277 remember the coding system used for decoding in
50b06221
KH
278 coding_system (Bug#1039).
279
b71f6f73 280 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 281 breaking the loop. (Bug#870)
b71f6f73
KH
282 (decode_coding_utf_16, decode_coding_emacs_mule)
283 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
284 (decode_coding_charset): Likewise.
285
56f668f7
MR
2862009-01-05 Martin Rudalics <rudalics@gmx.at>
287
288 * frame.c (x_set_frame_parameters): Make sure height (width) get
289 applied when fullwidth (fullheight) is set. (Bug#1522)
290
5da9424d
JB
2912009-01-04 Juanma Barranquero <lekktu@gmail.com>
292
293 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
294 (utc_base): Declare as ULONGLONG, not long double.
295 (convert_time_raw): Delete.
296 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
297 (initialize_utc_base): New function.
298 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
299 (convert_from_time_t): Use initialize_utc_base; compute result with
300 64-bit arithmetic.
301 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
302
c4605e09
EZ
3032009-01-03 Eli Zaretskii <eliz@gnu.org>
304
9acef61c 305 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
306 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
307 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
308 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
309 [!subprocesses]: Define.
310 (syms_of_process) [!subprocesses]: Intern and staticpro them.
311 (Flist_system_processes, Fsystem_process_attributes)
312 [!subprocesses]: Call list_system_processes and
313 system_process_attributes instead of returning Qnil.
314
9acef61c
JB
315 * dosfns.c (system_process_attributes, list_system_processes):
316 New functions.
c4605e09
EZ
317
318 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
319
320 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
321 Don't use the default (no-op) implementation.
322
8b7d0a16
JR
3232009-01-03 Jason Rumney <jasonr@gnu.org>
324
a6d46bc1
JR
325 * keyboard.c (parse_modifiers_uncached): Wheel events are
326 clicks (bug#687).
327
8b7d0a16
JR
328 * w32term.c (x_query_colors, x_query_color): New functions.
329
330 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
331 (svg_load_image): Cast returned pointers from dynamically loaded
332 functions. Eliminate W32 specific code.
333
bfe11752
DN
3342009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
335
89e2438a
DN
336 * nsfns.m (x_set_foreground_color, x_set_background_color)
337 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
338 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
339 x_ prefix instead of ns_. Update references.
340 (syms_of_nsfns): Add a FIXME comment.
341
342 * nsterm.m (x_set_cursor_type): New prototype.
343 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
344
bfe11752
DN
345 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
346 for Solaris instead of incorrectly providing Qutime and Qcutime.
347
031da700
EZ
3482009-01-02 Eli Zaretskii <eliz@gnu.org>
349
350 * w32.c (process_times): Compute sum of utime and stime.
351 (system_process_attributes): Add Qtime to the alist.
352
353 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
354 and add them to the alist.
355
356 * process.c (top level) <Qtime, Qctime>: New variables.
357 (syms_of_process): staticpro them.
358 (Fsystem_process_attributes): Add their documentation to the doc
359 string.
360
361 * process.h: Declare Qtime and Qctime.
362
df23bf08
JR
3632009-01-02 Jason Rumney <jasonr@gnu.org>
364
9acef61c 365 * image.c (Qgobject): New symbol.
df23bf08
JR
366 (syms_of_image): Initialize it.
367 (init_svg_functions): Load some functions from gobject library.
368
5bbdf7aa
DN
3692009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
370
371 * frame.c (make_terminal_frame): Remove redundant code and useless
372 block.
373
63136da6
AS
3742009-01-01 Andreas Schwab <schwab@suse.de>
375
376 * process.c (conv_sockaddr_to_lisp): Add workaround for
377 getsockname bug on BSD.
378
9ef69046
CY
3792009-01-01 Chong Yidong <cyd@stupidchicken.com>
380
d6fafbe0
CY
381 * xfns.c (x_create_tip_frame): Set border width of the X window.
382
9ef69046
CY
383 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error
384 message.
385
f9c34147
JR
3862009-01-01 Jason Rumney <jasonr@gnu.org>
387
9acef61c 388 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
389 Don't block input, as per earlier xterm.c changes.
390
f5497e45
AR
3912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
392
393 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
394 (ns_appkit_version_int): New function.
395 (x-server-version): Use ns_appkit_version_int and follow 21+
396 convention of returning 3 integers.
397
c19cab20
KH
3982008-12-30 Kenichi Handa <handa@m17n.org>
399
400 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
401 (CHAR_SURROGATE_PAIR_P): New macro.
402
403 * font.h (struct font_driver): New member get_variation_glyphs.
404
9acef61c 405 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
406 (Ffont_variation_glyphs): New function.
407 (syms_of_font): Defsubr it.
408
409 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
410 ftfont_variation_glyphs.
411 (setup_otf_gstring): New function.
412 (ftfont_drive_otf): Use it.
413 (ftfont_shape_by_flt): Handle variation selector.
414 (ftfont_variation_glyphs): New function.
415
28cd591f
MR
4162008-12-30 Martin Rudalics <rudalics@gmx.at>
417
418 * frame.c (Vemacs_iconified): Remove.
419
7f714baf
JR
4202008-12-30 Jason Rumney <jasonr@gnu.org>
421
422 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 423 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 424
9d2d22ab
CY
4252008-12-30 Chong Yidong <cyd@stupidchicken.com>
426
427 * indent.c (Fvertical_motion): Don't advance iterator if we have
428 reseated to the desired position.
429
430 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
431 checking for pos match.
432
545312c2
KH
4332008-12-30 Kenichi Handa <handa@m17n.org>
434
1ede3eb6
KH
435 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
436 just get the low 8-bit of the code.
437
545312c2
KH
438 * font.c (font_intern_prop): Validate str as multibyte.
439
bd7bbf29
DN
4402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
441
31e0750e
DN
442 * dispextern.h (struct face): Move lface and hash from the middle
443 of bitfields.
444
bd7bbf29
DN
445 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
446
b5672e7c
DN
4472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
448
449 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
450 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
451 instead of intervals.h.
452
d704470f
AS
4532008-12-26 Andreas Schwab <schwab@suse.de>
454
455 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
456 cons.
457
54b33868
MR
4582008-12-26 Martin Rudalics <rudalics@gmx.at>
459
460 * textprop.c (Qminibuffer_prompt): New variable.
461 (syms_of_textprop): Initialize it.
462 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
463 in minibuffer-prompt face. (Bug#1662)
464
40b615d6
JR
4652008-12-25 Jason Rumney <jasonr@gnu.org>
466
467 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
468
baae5c2d
JR
4692008-12-24 Jason Rumney <jasonr@gnu.org>
470
471 * ralloc.c (r_alloc_reset_variable): New function.
472
473 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 474 record of what points where. (Bug#716)
baae5c2d 475
a9051c88
DN
4762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
477
478 * minibuf.c (read_minibuf): Follow the non-interactive case when
479 running as a daemon, before detaching.
480
8b146312
AS
4812008-12-22 Andreas Schwab <schwab@suse.de>
482
483 * buffer.c (init_buffer): Use realloc instead of xrealloc.
484 * gtkutil.c (free_widget_value): Use xfree instead of free.
485
56f2de10
MR
4862008-12-22 Martin Rudalics <rudalics@gmx.at>
487
488 * frame.c (delete_frame): New function derived from
489 Fdelete_frame to handle Qnoelisp value for FORCE argument.
490 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
491 (Fdelete_frame): Call delete_frame. Remove line from doc-string
492 saying that FORCE non-nil doesn't run `delete-frame-functions'.
493 * frame.h: Extern delete_frame.
494 * window.c (window_loop):
495 * terminal.c (delete_terminal):
496 * xterm.c (x_connection_closed):
497 * xfns.c (Fx_hide_tip):
9acef61c 498 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 499
1fc200d6
JR
5002008-12-21 Jason Rumney <jasonr@gnu.org>
501
502 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
503 when character maps to .notdef character.
504
5e252df2
SM
5052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
506
507 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
508
99b72cc4
JR
5092008-12-20 Jason Rumney <jasonr@gnu.org>
510
511 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 512 a graphical frame on Windows. (Bug#1325)
99b72cc4 513
acc49a52
JD
5142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
515
516 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
517
6ea15123
CY
5182008-12-20 Chong Yidong <cyd@stupidchicken.com>
519
520 * minibuf.c (Fread_buffer): Doc fix.
521
b2dab6c8
JR
5222008-12-20 Jason Rumney <jasonr@gnu.org>
523
54ea0c87 524 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 525 server name in UNC paths. (Bug#719)
54ea0c87 526
b2dab6c8 527 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 528 charbuf. (Bug#1035)
b2dab6c8 529
6d1921be
DN
5302008-12-19 Daniel Engeler <engeler@gmail.com>
531
532 * sysdep.c (serial_configure): Fix typo.
533
53934c98
DN
5342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
535
536 * sysdep.c: Include alloca.h.
f4f634e8
DN
537 (system_process_attributes): Add implementation for Solaris.
538
539 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 540
06e111a6
DN
5412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
542
543 Reorganize implementation of Flist_system_processes and
544 Fsystem_process_attributes. No functional changes.
545 * process.c: Don't #include pwd.h, grp.h and limits.h.
546 (Flist_system_processes): Just call list_system_processes.
547 (Fsystem_process_attributes): Just call system_process_attributes.
548 (procfs_list_system_processes, time_from_jiffies)
549 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
550 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
551
552 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
553 (list_system_processes): Rename from
554 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
555 Provide a do nothing implementation.
556 (system_process_attributes): Rename from
557 procfs_list_system_processes.
558 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 559 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
560
561 * w32.c (list_system_processes): Rename from
562 w32_list_system_processes.
563 (system_process_attributes): Rename from
564 w32_system_process_attributes.
565
566 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
567
568 * process.h (w32_list_system_processes)
569 (w32_system_process_attributes): Remove.
570 (list_system_processes, system_process_attributes): New
571 prototypes.
572
6a705b23
KH
5732008-12-19 Kenichi Handa <handa@m17n.org>
574
575 * xfont.c (xfont_decode_coding_xlfd): New function.
576 (xfont_encode_coding_xlfd): New function.
577 (xfont_list_pattern): Decode XLFD by iso-8859-1.
578 (xfont_list): Decode and encode XLFD by iso-8859-1.
579 (xfont_match): Likewise.
580 (xfont_list_family): Likewise.
581 (xfont_open): Likewise.
582
d66c0241 583 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
584 names are utf-8.
585
d66c0241 586 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
587 names are utf-8.
588
5a130941
JD
5892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
590
591 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
592 changed.
bfd20325
JD
593 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
594 clicked on a detached tool bar button.
5a130941 595
fd95644b
DN
5962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
597
598 * emacs.c (main): Print and error and exit when no data is read
599 from the pipe.
600
e6eee6ae
JR
6012008-12-17 Jason Rumney <jasonr@gnu.org>
602
603 * w32font.c (w32font_has_char): Always return -1.
604
a35dd56b
KH
6052008-12-16 Kenichi Handa <handa@m17n.org>
606
607 * font.c (font_open_entity): Fix previous change.
608
0e3635c2
DN
6092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
610
611 * process.c: Include <limits.h>.
612
d4835507 6132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
614
615 * font.c (font_update_drivers): Fix mistake in reconstructing the
616 driver list.
617
6182008-12-16 Chong Yidong <cyd@stupidchicken.com>
619
620 * font.c (font_clear_cache): Fix format of font cache data.
621
e2cbc401
CY
6222008-12-15 Chong Yidong <cyd@stupidchicken.com>
623
624 * xftfont.c (xftfont_open): Free Xft font pattern if
625 XftFontOpenPattern fails.
626
627 * xterm.c (x_free_frame_resources): Remove extraneous call to
628 free_frame_faces.
629
b131d535
CY
6302008-12-13 Chong Yidong <cyd@stupidchicken.com>
631
632 * xterm.c (x_delete_display): Move xim_close_dpy call to
633 x_delete_terminal.
634 (x_delete_terminal): Call xim_close_dpy.
635
e6df5336
JR
6362008-12-13 Jason Rumney <jasonr@gnu.org>
637
638 * w32font.c (intern_font_name): New function.
639 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
640 (w32font_open_internal, Fx_select_font): Decode font name.
641 (fill_in_logfont, list_all_matching_fonts): Encode font name.
642
643 * w32font.h (intern_font_name): Declare new function.
644
645 * w32uniscribe.c (add_opentype_font_name_to_list):
646 Use intern_font_name.
647
20d68145
CY
6482008-12-13 Chong Yidong <cyd@stupidchicken.com>
649
9f2554de
CY
650 * frame.c (Fdelete_frame): Call free_font_driver_list.
651
3d9bec9a
CY
652 * font.c (free_font_driver_list): Implement missing function.
653
20d68145
CY
654 * w32term.c (w32_term_init): Don't initialize the image cache
655 here; it will be done in init_frame_faces.
656
657 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
658 (struct x_display_info): Remove unused member null_pixel. New
659 member xim_callback_data.
660
661 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
662 (xim_initialize): Save pointer to callback function data.
663 (xim_close_dpy): Free callback function data. Call XCloseIM,
664 reverting 2008-11-04 change by David Smith.
665 (x_term_init): Don't initialize the image cache here; it will be
666 done in init_frame_faces. Remove ancient "null_pixel" cruft.
667 (x_delete_display): Free x_dnd_atoms member.
668
96f9306b
KH
6692008-12-13 Kenichi Handa <handa@m17n.org>
670
6dec9044
JB
671 * font.c (font_rescale_ratio): Moved from xfaces.c.
672 Argument type changed. Handle a font-spec too.
96f9306b 673 (font_score): Check Vface_font_rescale_alist.
6dec9044 674 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
675
676 * xfaces.c (font_rescale_ratio): Moved to font.c.
677
8d5b4964
CY
6782008-12-13 Chong Yidong <cyd@stupidchicken.com>
679
680 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
681
e6df5336
JR
6822008-12-12 Jason Rumney <jasonr@gnu.org>
683
684 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
685 Vwindow_system_version to the real w32 major version.
686
97c6058a
DN
6872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
688
689 * term.c (init_tty): Move setting the terminal name before the
690 potential user: maybe_fatal.
691
ec4e88d7
CY
6922008-12-11 Chong Yidong <cyd@stupidchicken.com>
693
d4835507
JB
694 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
695 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 696
b4233ec9
JR
6972008-12-11 Jason Rumney <jasonr@gnu.org>
698
8ec71e23 699 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 700 SYMBOL_CHARSET. (Bug#547)
8ec71e23 701
b4233ec9 702 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 703 size for surrogates. (Bug#1096, bug#872)
b4233ec9 704
011a0143
JB
7052008-12-11 Juanma Barranquero <lekktu@gmail.com>
706
707 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
708
3c309f34
JB
7092008-12-11 Juanma Barranquero <lekktu@gmail.com>
710
711 * process.c (Fsystem_process_attributes, syms_of_process):
712 Fix typo in name of Ssystem_process_attributes.
713 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
714
fedc6ab5
JB
7152008-12-11 Juanma Barranquero <lekktu@gmail.com>
716
717 * syntax.c (Fmodify_syntax_entry): Doc fix.
718
ba3de0e8
JB
7192008-12-10 Juanma Barranquero <lekktu@gmail.com>
720
721 * font.c (Ffont_spec): Move usage to end of docstring.
722
174f1c74
JR
7232008-12-10 Jason Rumney <jasonr@gnu.org>
724
725 * w32font.c (Qcham): New symbol.
726 (font_supported_scripts): Add cham, and comments for other new
727 scripts in bitfield from OpenType spec.
9d32f818
JR
728 (add_font_entity_to_list): Limit unicode-sip fonts to those that
729 contain characters beyond the bmp.
174f1c74 730
7b649478
KH
7312008-12-10 Kenichi Handa <handa@m17n.org>
732
733 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 734 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
735 Qunicode_sip.
736
2133e2d1
JB
7372008-12-10 Juanma Barranquero <lekktu@gmail.com>
738
739 * coding.c (QCdefault_char): Rename from QCdefalut_char.
740 (Fcoding_system_put): Use QCdefault_char.
741 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
742
9af886ee
CY
7432008-12-09 Chong Yidong <cyd@stupidchicken.com>
744
74d819eb
CY
745 * xftfont.c (syms_of_xftfont): Fix typo.
746
4ccfa1c0 747 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 748
7c19d3ae
DN
7492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
750
751 * emacs.c (main): Close daemon_pipe on exec.
752
567826bb
CY
7532008-12-08 Chong Yidong <cyd@stupidchicken.com>
754
755 * termchar.h (struct tty): New members termcap_term_buffer and
756 termcap_strings_buffer.
757
758 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 759 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
760 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
761 All callers changed.
762 (init_tty): Store termcap data and string buffers in new struct
763 tty members termcap_term_buffer and termcap_strings_buffer.
764 (delete_tty): Free them.
4ccfa1c0 765 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 766
aa96c42b
SZ
7672008-12-07 Seiji Zenitani <zenitani@mac.com>
768
769 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 770 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 771
b7e1d896
CY
7722008-12-06 Chong Yidong <cyd@stupidchicken.com>
773
774 * coding.c (make_conversion_work_buffer): Disable buffer
775 modification hooks in the work buffer.
776
b5ec91a5
EZ
7772008-12-05 Eli Zaretskii <eliz@gnu.org>
778
779 * process.c (procfs_system_process_attributes): If `nread' has a
780 negative value, assign zero to it.
781
a5d2a52b
CY
7822008-12-05 Chong Yidong <cyd@stupidchicken.com>
783
68c5540b 784 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 785
7bf1bb21
KH
7862008-12-05 Kenichi Handa <handa@m17n.org>
787
788 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
789 second character is a combining character.
790
2fdc7d00
EZ
7912008-12-05 Eli Zaretskii <eliz@gnu.org>
792
793 * process.c (procfs_system_process_attributes): Don't use cmd,
794 cmdsize, and q without initializing them first.
795
bf6bfba8
JR
7962008-12-04 Jason Rumney <jasonr@gnu.org>
797
798 * w32font.c (w32font_draw): Initialize orig_clip before getting
799 it, and delete it when finished.
800
a3b1a468
DN
8012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
802
803 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
804 case when running as a daemon before detaching.
805
8b8be8eb
JB
8062008-12-03 Juanma Barranquero <lekktu@gmail.com>
807
805f2638 808 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 809
b1bde622
KH
8102008-12-03 Kenichi Handa <handa@m17n.org>
811
e500c47d
KH
812 * font.c (font_at): Set `multibyte' at first.
813
ca516334
KH
814 * coding.c (decode_coding_charset): Check type of an element of
815 vector VALIDS.
7bf1bb21 816 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 817
4ccfa1c0 818 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
819 (font_for_char): Likewise.
820
1e5ecd37
CY
8212008-12-03 Chong Yidong <cyd@stupidchicken.com>
822
d5b01609 823 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
824 (font_update_lface): Handle fonts with corrupted size specs,
825 i.e. non-int and non-float.
d5b01609 826
11e3a6e4 827 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 828 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 829 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 830
ab06788b
CY
831 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
832
1e5ecd37 833 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 834 underline_minimum_offset for underline position.
1e5ecd37 835
63c125ab
DN
8362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
837
838 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
839
840 * character.c (c_string_width): Specify the type for LEN.
841
3a8406e1
KH
8422008-12-03 Kenichi Handa <handa@m17n.org>
843
4ccfa1c0 844 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 845 (decode_coding_utf_8): Likewise.
4ccfa1c0 846 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 847 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 848
651df7d9
CY
8492008-12-02 Chong Yidong <cyd@stupidchicken.com>
850
851 * keyboard.c (make_lispy_position): Only use PT if the selected
852 window is current.
853
1f625c6c
AS
8542008-12-02 Andreas Schwab <schwab@suse.de>
855
f7741ce9
AS
856 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
857
1f625c6c
AS
858 * doprnt.c (doprnt1): Fix size of charbuf.
859
92bc2678
CY
8602008-12-02 Chong Yidong <cyd@stupidchicken.com>
861
862 * keyboard.c (timer_check): Revert last change.
863
93b9e8cc
JB
8642008-12-02 Juanma Barranquero <lekktu@gmail.com>
865
866 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
867
fd7a37d5
JB
8682008-12-01 Juanma Barranquero <lekktu@gmail.com>
869
870 * makefile.w32-in: Update dependencies.
871 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
872
c115043b
AS
8732008-12-01 Andreas Schwab <schwab@suse.de>
874
875 * font.c (register_font_driver): Use xmalloc.
876 (font_put_frame_data): Likewise.
877
f5668d2a
CY
8782008-12-01 Chong Yidong <cyd@stupidchicken.com>
879
860d96be
CY
880 * xfaces.c (realize_x_face): Make abort condition clearer.
881
f5668d2a
CY
882 * gtkutil.c (update_frame_tool_bar): Initialize variable.
883
379c17e7
CY
8842008-11-30 Chong Yidong <cyd@stupidchicken.com>
885
886 * keyboard.c (timer_check): After a timer runs, ensure that the
887 selected window's buffer is current.
888
35f36d65
JB
8892008-11-30 Juanma Barranquero <lekktu@gmail.com>
890
f952c61c
JB
891 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
892 It was accidentally restored by the Unicode merge.
893
35f36d65
JB
894 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
895
b23077df
JB
8962008-11-29 Juanma Barranquero <lekktu@gmail.com>
897
898 * w32proc.c: Include "coding.h".
899 (Fw32_short_file_name): Encode filename passed to Windows API.
900 (Fw32_long_file_name): Encode filename passed to Windows API and
901 decode back the result. (Bug#1433)
902
b8ebe9dd
KH
9032008-11-29 Kenichi Handa <handa@m17n.org>
904
8cc53f96
KH
905 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
906 not before accessing it.
907
b8ebe9dd
KH
908 * charset.c (Fdefine_charset_internal): After calculating
909 min_char, max_char, and fastmap, copy the charset structure again.
910 (encode_char): Fix the previous change.
911
59bc82c0
SZ
9122008-11-28 Seiji Zenitani <zenitani@mac.com>
913
914 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
915
916 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
917
918 * nsterm.m (x_set_frame_alpha): New function.
919
32247e3d
EZ
9202008-11-27 Eli Zaretskii <eliz@gnu.org>
921
922 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
923
b003e5ff
JB
9242008-11-27 Juanma Barranquero <lekktu@gmail.com>
925
926 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
927 pointer to check_face_name.
928
708550f5
KH
9292008-11-27 Kenichi Handa <handa@m17n.org>
930
931 * category.h (SET_CATEGORY_SET): Call set_category_set.
932 (set_category_set): Extern it.
933
934 * category.c (hash_get_category_set): New function.
935 (Fmodify_category_entry): Adjusted for the change of
936 char_table_ref_and_range. Call hash_get_category_set to get a
937 category set to store in the table.
938
939 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
940 Funify_charset.
941
2ae37cf0 942 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
943 (DECODE_CHAR): Check if the decoder vector is ready.
944 (ENCODE_CHAR): Check if the encoder char-table is ready.
945 (maybe_unify_char): Extern it.
946
947 * charset.c (Vchar_unified_charset_table): Delete it.
948 (inhibit_load_charset_map): New variable.
949 (temp_charset_work): New variable.
950 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
951 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
952 New macros.
953 (load_charset_map): Meaning of control_flag changed. If
954 inhibit_load_charset_map is nonzero, setup a table in
955 temp_charset_work.
956 (load_charset): New argument control_flag.
957 (map_charset_for_dump): New function.
958 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
959 map_charset_for_dump.
960 (Fdefine_charset_internal): If the charset method is MAP, load
961 mapping tables by calling load_charset.
962 (Funify_charset): Don't load a mapping table but directly set
963 Vchar_unify_table.
964 (maybe_unify_char): New function.
965 (decode_char): Don't handle the deleted method MAP_DEFERRED.
966 Handle the case of inhibit_load_charset_map being nonzero.
967 (encode_char): Don't handle the deleted method MAP_DEFERRED.
968 Handle the case of inhibit_load_charset_map being nonzero.
969 (Fclear_charset_maps): Just free temp_charset_work.
970 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
971 variable.
972
973 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
974 change of char_table_ref_and_range.
975 (char_table_ref_and_range): Change the meaning of argument FROM
976 and TO. Now the caller must provide initial values for *FROM
977 and *TO.
978
979 * fontset.c (fontset_add): Adjusted for the change of
980 char_table_ref_and_range.
981 (fontset_get_font_group): Likewise.
982 (Ffontset_info): Likewise.
983
984 * keymap.c (describe_vector): Adjusted for the change of
985 char_table_ref_and_range. For char-table, put boundary between
986 non-ASCII and 8-bit characters.
987
988 * print.c (print_object): For bool-vector, delete unnecessary
989 check of ASCII_BYTE_P.
990
9196133b
JR
9912008-11-26 Jason Rumney <jasonr@gnu.org>
992
993 * w32font.c (w32font_open_internal): Don't include external
9acef61c 994 leading in font height. (Bug#879)
9196133b 995
9f688acf
GM
9962008-11-26 Glenn Morris <rgm@gnu.org>
997
998 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
999 redefinition with ifdef. (Bug#1383)
1000
90d19aff
AR
10012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1002
1003 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1004
4ccfa1c0 10052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1006
1007 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1008 New EmacsView methods.
1009 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1010 Fixes bug #1048,1357,1414.
1011
10122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1013
1014 Fix bug #1362.
1015 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1016 is not an indexed color.
1017 * nsterm.m (free_indexed_color): Add argument checking.
1018 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1019
e7d5ecb3
CY
10202008-11-24 Chong Yidong <cyd@stupidchicken.com>
1021
1022 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1023 Document confirm-after-completion value for
1024 minibuffer-completion-confirm.
1025
c285743c
JR
10262008-11-24 Jason Rumney <jasonr@gnu.org>
1027
1028 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1029 warning.
1030
b0857706
JR
10312008-11-23 Jason Rumney <jasonr@gnu.org>
1032
1033 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1034 restored before returning.
1035
1036 * w32font.c (check_face_name): New function.
1037 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1038 fonts. (Bug#642)
b0857706 1039
ee50ff07
MR
10402008-11-22 Martin Rudalics <rudalics@gmx.at>
1041
1042 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1043 confirm-nonexistent-file-or-buffer in doc-string.
1044
b8ff72fa
SM
10452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1046
1047 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1048 Fix copy/paste typo. Add checks.
1049
cee53ed4
KH
10502008-11-21 Kenichi Handa <handa@m17n.org>
1051
1052 * coding.c (detect_coding_iso_2022): Reject invalid composition
1053 sequence.
1054 (DECODE_COMPOSITION_START): If the current source is the last
1055 block, and the current composition doesn't end, regard this
1056 sequence as invalid.
1057 (decode_coding_iso_2022): Handle invalid composition sequence.
1058
f6ef1e65
MR
10592008-11-20 Martin Rudalics <rudalics@gmx.at>
1060
1061 * window.c (coordinates_in_window): Don't return
1062 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1063 line when the window is not the rightmost one. (Bug#1372)
1064
e08b1705
MR
10652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1066
1067 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1068
ad98e89f
EZ
10692008-11-15 Eli Zaretskii <eliz@gnu.org>
1070
1071 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1072 and bright_bg if noninteractive is non-zero.
1073
fb098a4b
CY
10742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1075
1076 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1077 x_draw_glyph_string_background.
1078
1079 * w32term.c (x_draw_glyph_string): Likewise.
1080
ce952b6e
CY
10812008-11-15 Chong Yidong <cyd@stupidchicken.com>
1082
1083 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1084 the next glyph string once past the overhang width.
1085
1086 * nsterm.m (ns_draw_glyph_string): Likewise.
1087
1088 * w32term.c (x_draw_glyph_string): Likewise.
1089
26ea7079
CY
10902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1091
1092 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1093 double file close.
1094
1c33c906
MR
10952008-11-14 Martin Rudalics <rudalics@gmx.at>
1096
1097 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
1098 dedicated status of window before attempting to display another
1099 buffer in it.
1100
8fc29035
JB
11012008-11-14 Juanma Barranquero <lekktu@gmail.com>
1102
1103 * msdos.c (Fmsdos_long_file_names):
1104 (syms_of_msdos) <dos-unsupported-char-glyph>:
1105 * dosfns.c (Fint86): Fix typos in docstrings.
1106
55fb4286
EZ
11072008-11-14 Eli Zaretskii <eliz@gnu.org>
1108
1109 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
1110
3fda0315
KY
11112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
1112
1113 * puresize.h (BASE_PURESIZE): Increase to 1260000.
1114
7e849c17
CY
11152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
1116
1117 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
1118
1119 * frame.h: Negative alpha means "don't touch".
1120
1121 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
1122
1123 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
1124
b9fd67bd
DN
11252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
1126
1127 * hftctl.c:
1128 * chpdef.h:
1129 * acldef.h: Remove files used only for systems no longer supported.
1130
1131 * Makefile.in: Fix .o alphabetical ordering.
1132 (hftctl.o): Remove dependency, file removed.
1133 (keymap.o, print.o): Depend on charset.h.
1134
d5998e03
KH
11352008-11-10 Kenichi Handa <handa@m17n.org>
1136
2ae37cf0 1137 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 1138
be70e183
CY
11392008-11-08 Chong Yidong <cyd@stupidchicken.com>
1140
1141 * dired.c (file_name_completion): If completion_ignore_case is
1142 enabled, ignore case when checking completion-regexp-list.
1143
7cf94eac
EZ
11442008-11-08 Eli Zaretskii <eliz@gnu.org>
1145
1146 * vm-limit.c (get_lim_data): Fix last change.
1147
ee107a89
KH
11482008-11-08 Kenichi Handa <handa@m17n.org>
1149
1150 * character.c (Fget_byte): New function.
1151 (syms_of_character): Defsubr Fget_byte.
1152
5fd15622
CY
11532008-11-07 Chong Yidong <cyd@stupidchicken.com>
1154
1155 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
1156 cursor position is valid after scrolling.
1157
13d62fad
JB
11582008-11-06 Juanma Barranquero <lekktu@gmail.com>
1159
1160 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
1161
a1dd2936
GM
11622008-11-06 Glenn Morris <rgm@gnu.org>
1163
1164 * xterm.c (handle_one_xevent): Don't let popup menus cause
1165 mouse-autoselect-window related window switching. (Bug#1261)
1166
860cd236
CY
11672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
1168
1169 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
1170
653a3150
AS
11712008-11-04 Andreas Schwab <schwab@suse.de>
1172
1173 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
1174
870f5cac
CY
11752008-11-03 Chong Yidong <cyd@stupidchicken.com>
1176
1177 * xfns.c (Fx_wm_set_size_hint): New function.
1178
1e02f3cb
MR
11792008-11-03 Martin Rudalics <rudalics@gmx.at>
1180
1181 * textprop.c (Fprevious_single_char_property_change): Return 0
1182 when there's no change in a string. (Bug#1301)
1183
e630dfc6
MR
11842008-11-02 Martin Rudalics <rudalics@gmx.at>
1185
1186 * frame.c (do_switch_frame): New argument NORECORD passed to
1187 Fselect_window.
1188 (Fselect_frame): New argument NORECORD passed to
1189 do_switch_frame.
1190 (Fset_frame_selected_window): New argument NORECORD passed to
1191 Fselect_frame.
1192 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
1193 in call of do_switch_frame.
1194 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
1195 Handle NORECORD argument in call of Fselect_frame.
1196 * lisp.h (do_switch_frame, Fselect_frame)
1197 (Fset_frame_selected_window): Adjust declarations.
1198 * window.c (select_frame_norecord): New function.
1199 (run_window_configuration_change_hook): Use it and call
1200 Fselect_frame with NORECORD set.
1201 (Fselect_window): Pass NORECORD to Fselect_frame.
1202 (Fset_window_configuration): Handle NORECORD argument in call of
1203 do_switch_frame.
1204 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
1205 Fset_frame_selected_window.
1206 * keyboard.c (command_loop_1): Handle NORECORD in call of
1207 Fselect_frame (currently ifdefd).
1208
9020b223
GM
12092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
1210
1211 * emacs.c (USAGE2): Untabify.
1212
793ffee8
SM
12132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1214
1215 * composite.c (fill_gstring_header): Fix copy/paste typo.
1216
ab6d1131
MR
12172008-10-31 Martin Rudalics <rudalics@gmx.at>
1218
1219 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
1220 (Fother_window): Rename argument and rewrite doc-string.
1221 (select_window_norecord): Fix return value. (Bug#1276)
1222
601a9cf1
JB
12232008-10-30 Juanma Barranquero <lekktu@gmail.com>
1224
1225 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
1226 new frames overriding foreground for tooltips. Based on similar patch
1227 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
1228
813b0652
CY
12292008-10-29 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * emacs.c (Fdaemon_initialized): Initialize nfd.
1232
4414f58f
MR
12332008-10-29 Martin Rudalics <rudalics@gmx.at>
1234
1235 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
1236 (Fwindow_text_height): Clarify doc-strings.
1237 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
1238 doc-string of window-scroll-functions.
1239
ecdcaa09
RS
12402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
1241
1242 * category.c (syms_of_category): Fix typo in docstring.
1243
23fe745a
JB
12442008-10-28 Juanma Barranquero <lekktu@gmail.com>
1245
1246 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
1247 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
1248 Fix typos in docstrings.
1249
ff808935
DN
12502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
1251
1252 * emacs.c (daemon_pipe): Make non-static.
1253 (IS_DAEMON): Move definition ...
1254 * lisp.h (IS_DAEMON): ... here.
1255 (daemon_pipe): Declare.
1256 (is_daemon): Remove.
1257 * dispnew.c (init_display): Use IS_DAEMON.
1258
fc012771
SM
12592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1260
1261 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
1262 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
1263
1264 * emacs.c (is_daemon): Remove.
1265 (main): Don't set is_daemon.
1266 (IS_DAEMON): New macro.
1267 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 1268 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
1269 parent exits.
1270 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
1271
d8bdbe6f
CY
12722008-10-27 Chong Yidong <cyd@stupidchicken.com>
1273
d1a072bf
CY
1274 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
1275 over-sized glyph, draw it with the default glyph width.
1276
e2e325aa
CY
1277 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1278 glyph, draw it with the default glyph width.
1279
1280 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1281 glyph, draw it with the default glyph width.
1282
d8bdbe6f
CY
1283 * xdisp.c (try_scrolling): When computing the distance from the
1284 scroll margin to PT, try moving some distance past the window
1285 bottom before giving up.
1286
7bfac547
MR
12872008-10-27 Martin Rudalics <rudalics@gmx.at>
1288
1289 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
1290 (Fset_window_buffer): Explain in doc-string that a window can be
1291 "strongly" dedicated to its buffer.
1292
4ff029f6
DN
12932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
1294
1295 * emacs.c (daemon_name): New variable.
1296 (main): Deal with --daemon=SERVER_NAME.
1297 (Fdaemonp): Return a name if one was passed to --daemon.
1298
5790ef40
DN
12992008-10-26 Romain Francoise <romain@orebokech.com>
1300
f9bd0df9 1301 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
1302 (main): Create a pipe before forking, make the parent exit only after
1303 the child has closed its end of the pipe. Move closing the
1304 descriptors ...
1305 (Fdaemon_initialized): ... here. New function.
1306
f5385255
SM
13072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
1308
4d632321
SM
1309 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
1310 the previous unoptimized table.
1311
f5385255
SM
1312 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
1313 the distinction between non-nil and non-t value of `dedicated'.
1314
6c56a0f3
CY
13152008-10-25 Chong Yidong <cyd@stupidchicken.com>
1316
1317 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 1318 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 1319
fec89261
MR
13202008-10-25 Martin Rudalics <rudalics@gmx.at>
1321
1322 * window.c (Fget_buffer_window, Fdelete_windows_on)
1323 (Freplace_buffer_in_windows): Make buffer argument optional and
1324 rename to buffer_or_name.
1325
34fcddd0
CY
13262008-10-24 Chong Yidong <cyd@stupidchicken.com>
1327
f5385255
SM
1328 * xdisp.c (handle_single_display_spec, handle_display_prop):
1329 Undo 2005-05-16 change.
34fcddd0
CY
1330 (handle_stop): Pop iterator if it's loaded with an empty string.
1331 (get_overlay_strings_1): Don't save iterator if it's loaded with
1332 an empty string (bug#1201).
1333
064766f2
KH
13342008-10-24 Kenichi Handa <handa@m17n.org>
1335
1336 * ftfont.c (ftfont_otf_features): Fix previous change.
1337 (ftfont_otf_capability): Check FeatureList.FeatureCount before
1338 calling ftfont_otf_features.
1339
f9bd0df9 13402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
1341
1342 * font.c (font_match_p): Fix for the case that a vector of
1343 characters is in script-representative-chars.
1344
1dae9197
MA
13452008-10-24 Michael Albinus <michael.albinus@gmx.de>
1346
1347 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 1348 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
1349 (xd_read_queued_messages): Catch Qdbus_error from the macros.
1350 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
1351 macro. (Bug#1186).
1352
f9bd0df9 13532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
1354
1355 * s/sol2-10.h: New file.
1356
878a4584
JB
13572008-10-23 Juanma Barranquero <lekktu@gmail.com>
1358
1359 * xdisp.c (fill_glyph_string): Fix typo in source (though the
1360 poor beast has survived 9+ years and the jump from xterm.c!).
1361
cd265ca6
MR
13622008-10-23 Martin Rudalics <rudalics@gmx.at>
1363
1364 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
1365 Reword doc-string.
f5385255 1366 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 1367
472a4dc9
JB
13682008-10-23 Juanma Barranquero <lekktu@gmail.com>
1369
1370 * character.c (syms_of_character) <script-representative-chars>:
1371 <unicode-category-table>: Doc fixes.
1372
159bd5a2
NF
13732008-10-23 Noah Friedman <friedman@splode.com>
1374
1375 * coding.c (make_conversion_work_buffer): Check that
1376 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
1377 Fget_buffer_create.
1378
49f9c344
KH
13792008-10-23 Kenichi Handa <handa@m17n.org>
1380
1381 * font.c (font_add_log): Check the values of extra properties.
1382
12bb3111
MR
13832008-10-22 Martin Rudalics <rudalics@gmx.at>
1384
1385 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1386 Reword doc-string.
1387 (Fset_window_parameter): Use NILP.
1388 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 1389 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 1390
bbeb4e99
JB
13912008-10-22 Juanma Barranquero <lekktu@gmail.com>
1392
1393 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
1394
13952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
1396
1397 * nsfns.m (ns_appkit_version): New function.
1398 (x-server-version): Use it.
1399 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
1400 (x-server-vendor): Don't check_ns().
1401
1402 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
1403
a9b555d3
JB
14042008-10-22 Juanma Barranquero <lekktu@gmail.com>
1405
1406 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1407 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
1408
4626499f
KH
14092008-10-22 Kenichi Handa <handa@m17n.org>
1410
e3681952
KH
1411 * syntax.c (scan_words): Call word_boundary_p instead of comparing
1412 scripts.
1413
4626499f
KH
1414 * category.c (word_boundary_p): Check scripts instead of charset.
1415 Handle nil value in word-separating-categories and
1416 word-combining-categories.
1417 (syms_of_category): Fix docstrings of word-separating-categories
1418 and word-combining-categories.
1419
1560f91a
EZ
14202008-10-21 Eli Zaretskii <eliz@gnu.org>
1421
1422 * coding.c (Fencode_coding_region, Fdecode_coding_region)
1423 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
1424
f4668441
MR
14252008-10-21 Martin Rudalics <rudalics@gmx.at>
1426
1427 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
1428 Rename arg "buffer" to "buffer_or_name".
1429 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
1430 it optional.
1431 (no_switch_window): Remove since the return value is not used.
a9b555d3 1432 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
1433 Consider window as dedicated when Fwindow_dedicated_p returns a
1434 non-nil value.
1435 * lisp.h: Remove prototype for no_switch_window.
1436
fd75ddb2
JD
14372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
1438
1439 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 1440 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 1441
07295713
KH
14422008-10-21 Kenichi Handa <handa@m17n.org>
1443
1444 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
1445 check Vlatin_extra_code_table.
1446
712adc82
EZ
14472008-10-20 Eli Zaretskii <eliz@gnu.org>
1448
1449 * fileio.c (Fset_file_modes): Doc fix.
1450
f549eb0b
MA
14512008-10-19 Michael Albinus <michael.albinus@gmx.de>
1452
1453 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
1454 in arrays.
1455
aac0c6e3
MR
14562008-10-19 Martin Rudalics <rudalics@gmx.at>
1457
1458 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1459 Mention kill-buffer in doc-string.
1460 (Fset_window_buffer): Reinsert tem check removed in last commit.
1461 (Fenlarge_window, Fshrink_window): Have argument names and
1462 doc-string follow Elisp manual more closely.
1463
14642008-10-18 Eli Zaretskii <eliz@gnu.org>
1465
1466 * fileio.c (Fset_file_modes): Doc fix.
1467
14682008-10-18 Martin Rudalics <rudalics@gmx.at>
1469
1470 * window.c (Fwindow_width, Fset_window_start)
1471 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
1472 (Fdelete_windows_on, Freplace_buffer_in_windows):
1473 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
1474 (Fwindow_dedicated_p): Make window argument optional.
1475 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
1476 (Fset_window_buffer): Respect any non-nil dedicated value for
1477 window. Rename "buffer" argument to "buffer_or_name".
1478
14792008-10-18 Ulrich Mueller <ulm@gentoo.org>
1480
1481 * m/sh3.h: New file, machine description for SuperH.
1482
14832008-10-17 Martin Rudalics <rudalics@gmx.at>
1484
1485 * window.c (Fsplit_window): Rename arg horflag to horizontal.
1486
14872008-10-17 Kenichi Handa <handa@m17n.org>
1488
1489 * ftfont.c (ftfont_otf_features): Fix indexing
1490 gsub_gpos->FeatureList.Feature. Check the validity of indices.
1491
14922008-10-16 Magnus Henoch <mange@freemail.hu>
1493
1494 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
1495 (Fdbus_call_method_asynchronously): Ditto.
1496 This change makes C-h f display the argument list.
1497
14982008-10-16 Chong Yidong <cyd@stupidchicken.com>
1499
1500 * fileio.c (Fexpand_file_name): Doc fix.
1501
1502 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
1503 of :foreground and :background equivalent to unspecified (20.x
1504 compatibility).
1505
15062008-10-15 Eli Zaretskii <eliz@gnu.org>
1507
1508 * buffer.c (syms_of_buffer): Doc fix.
1509
15102008-10-14 Kenichi Handa <handa@m17n.org>
1511
1512 * font.c (font_clear_prop): When clearing font width, clear the
1513 average width field too.
1514
15152008-10-12 Andreas Schwab <schwab@suse.de>
1516
1517 * ftfont.c (ftfont_shape_by_flt): Make static.
1518 * ftfont.h (ftfont_shape_by_flt): Don't declare.
1519
1520 * font.c: Don't include <m17n-flt.h>.
1521
15222008-10-10 Eli Zaretskii <eliz@gnu.org>
1523
1524 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
1525
15262008-10-09 Eli Zaretskii <eliz@gnu.org>
1527
1528 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
1529 away code.
1530
15312008-10-09 Chong Yidong <cyd@stupidchicken.com>
1532
1533 * dispnew.c (update_text_area): Avoid looping due to large glyph
1534 overhangs (bug#1070).
1535
15362008-10-09 Kenichi Handa <handa@m17n.org>
1537
1538 * fontset.c (face_for_char): If face->fontset is negative, just
1539 return ascii_face.
1540
f5385255
SM
1541 * font.c (font_delete_unmatched): Fix previous change.
1542 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
1543
15442008-10-09 Martin Rudalics <rudalics@gmx.at>
1545
1546 * frame.c (Fraise_frame): On text-only terminals select frame in
1547 order to make it visible. (Bug#1061)
1548
15492008-10-08 Chong Yidong <cyd@stupidchicken.com>
1550
1551 * fontset.c (fontset_find_font): Check frame validity.
1552
15532008-10-07 Chong Yidong <cyd@stupidchicken.com>
1554
a9b555d3 1555 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
1556 (xg_display_close): Allow Emacs to close all displays (bug#985).
1557
15582008-10-06 Andreas Schwab <schwab@suse.de>
1559
f5385255 1560 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
1561
15622008-10-06 Chong Yidong <cyd@stupidchicken.com>
1563
f5385255 1564 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 1565
a9b555d3 1566 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
1567
1568 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
1569 during initialization.
1570
15712008-10-04 Eli Zaretskii <eliz@gnu.org>
1572
1573 * xdisp.c (redisplay_internal): If frame switched, redisplay the
1574 whole thing on MSDOS frames as well as on a TTY.
1575
1576 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
1577 well as for TTY.
1578 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
1579 well as on a TTY.
1580
1581 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
1582 as well as for TTY.
1583
1584 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
1585
1586 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
1587 MSDOS frames as well.
1588
15892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1590
1591 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
1592 correct arguments.
1593 * menu.c (find_and_return_menu_selection) Add cast.
1594
15952008-10-03 Glenn Morris <rgm@gnu.org>
1596
1597 * emacs.c (USAGE1): Add --daemon.
1598
15992008-10-02 Eli Zaretskii <eliz@gnu.org>
1600
1601 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
1602 100, so it's in percents as advertised.
1603
16042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1605
1606 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
1607 (ns_output.current_cursor, ns_output.desired_cursor)
1608 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
1609 (FRAME_NEW_CURSOR_COLOR): Remove.
1610
1611 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 1612 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
1613 enumeration (HOLLOW_BOX_CURSOR, etc.).
1614
1615 * nsterm.m (ns_frame_rehighlight): Remove commented code.
1616 (draw_window_cursor): Simplify code.
f5385255
SM
1617 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
1618 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 1619 updates manually.
a9b555d3
JB
1620 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
1621 Use core Emacs cursor types.
aac0c6e3 1622
b8ff72fa 1623 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
1624
16252008-10-02 Martin Rudalics <rudalics@gmx.at>
1626
1627 * process.c (Faccept_process_output): Fix doc-string.
1628
16292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1630
1631 * gmalloc.c (__sbrk): Also define for uClibc.
1632
1633 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
1634 for uClibc.
1635
16362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1637
1638 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
1639 styles.
1640 (nsfont_open): Reenable the cache.
1641
16422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1643
1644 * font.c (font_matching_entity): Reflect ATTRS in font selection.
1645 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
1646
16472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
1650 a suspended terminal.
1651
16522008-09-30 Michael Albinus <michael.albinus@gmx.de>
1653
1654 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
1655
16562008-09-30 Eli Zaretskii <eliz@gnu.org>
1657
1658 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
1659
16602008-09-30 Chong Yidong <cyd@stupidchicken.com>
1661
1662 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
1663 in a continued line coincides with a line beginning.
1664
16652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1666
1667 * nsfont.m (nsfont_trait_distance): Fix bug.
1668 (nsfont_list): Return a list rather than a vector (syncs with Handa
1669 changes of 2008-05-14).
1670 (nsfont_open): Improve logging.
1671
16722008-09-29 Andreas Schwab <schwab@suse.de>
1673
1674 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1675
16762008-09-28 Martin Rudalics <rudalics@gmx.at>
1677
1678 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
1679 name as char-resolve-modifiers.
1680 Reported by: Markus Triska <markus.triska@gmx.at>
1681
16822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * dispnew.c (init_display): Return earlier when running as a daemon.
1685
16862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1687
1688 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
1689
16902008-09-27 Eli Zaretskii <eliz@gnu.org>
1691
1692 * composite.c (Fcomposition_get_gstring)
1693 (Fcompose_region_internal, Fcompose_string_internal)
1694 (Ffind_composition_internal): Doc fix.
1695 (syms_of_composite) <compose-chars-after-function>: Doc fix.
1696 (syms_of_composite) <auto-composition-function>: Doc fix.
1697 (syms_of_composite) <composition-function-table>: Doc fix.
1698
16992008-09-25 Chong Yidong <cyd@stupidchicken.com>
1700
1701 * search.c (wordify): New argument for lax word-ends.
1702 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
1703
17042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
1705
1706 * lisp.h (is_daemon): Declare.
1707 * dispnew.c (init_display): Do not try to initialize the terminal
1708 when running as a daemon.
1709
17102008-09-22 Chong Yidong <cyd@stupidchicken.com>
1711
1712 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
1713 x_display_pixel_height.
1714
17152008-09-22 Martin Rudalics <rudalics@gmx.at>
1716
1717 * undo.c (record_point): Don't call Fundo_boundary for first
1718 change. (Bug#731)
1719
17202008-09-22 Juanma Barranquero <lekktu@gmail.com>
1721
1722 * emacs.c (Fdaemonp): Doc fix.
1723
17242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
1725
1726 * emacs.c (main): Place #ifdef in the proper place.
1727
17282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1729
1730 * emacs.c (standard_args): Add --daemon.
1731 (main): Disconnect from the terminal when --daemon is passed.
1732 (is_daemon): New variable.
1733 (Fdaemonp): New function.
1734 (syms_of_emacs): Defsubr it.
1735
17362008-09-20 Chong Yidong <cyd@stupidchicken.com>
1737
1738 * xdisp.c (get_next_display_element): Handle string display
1739 correctly when checking for the end of a box run.
1740
17412008-09-20 Glenn Morris <rgm@gnu.org>
1742
1743 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
1744 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
1745 (Frename_file): Avoid copying to trash if a rename involves
1746 a delete. (Bug#964).
1747
17482008-09-20 Eli Zaretskii <eliz@gnu.org>
1749
1750 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
1751 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
1752 frames as well as termcap frames.
1753 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
1754 get_named_tty.
1755
17562008-09-19 Eli Zaretskii <eliz@gnu.org>
1757
1758 * process.c (procfs_system_process_attributes): Fix cmdline in
1759 case /proc/PID/cmdline is empty.
1760
1761 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
1762 x_display_pixel_height.
1763
17642008-09-19 Juanma Barranquero <lekktu@gmail.com>
1765
1766 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
1767
1768 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
1769 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
1770
17712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
1772
1773 * dispextern.h (struct it): Move line_wrap away from the middle of
1774 bitfields. Move voffset in struct iterator_stack_entry after the
1775 bitfields. Move tab_width near after another short.
1776
17772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
1778
1779 * frame.h (struct frame): Move alpha from the middle of bitfields.
1780
1781 * window.h (struct window): Move frozen_window_start_p after the
1782 rest of the bitfields to reduce padding.
1783
17842008-09-18 Chong Yidong <cyd@stupidchicken.com>
1785
1786 * xterm.h (x_display_info): Remove `height' and `width' members.
1787
1788 * nsterm.h (ns_display_info): Remove `height' and `width' members.
1789
1790 * w32term.h (w32_display_info): Remove `height', `width',
1791 `height_in', and `width_in' members.
1792
b8ff72fa
SM
1793 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1794 New functions.
aac0c6e3
MR
1795 (x_calc_absolute_position): Use them.
1796 (x_term_init): Omit removed `height' and `width' members.
1797
b8ff72fa
SM
1798 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1799 New functions.
aac0c6e3
MR
1800 (w32_read_socket, x_calc_absolute_position): Use them.
1801 (w32_initialize_display_info, w32_term_init): Omit removed members
1802 of w32_display_info.
1803
b8ff72fa
SM
1804 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
1805 New functions.
1806 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 1807
b8ff72fa
SM
1808 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1809 New functions.
aac0c6e3
MR
1810 (x_calc_absolute_position): Use them.
1811 (x_term_init): Omit removed `height' and `width' members.
1812
1813 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
1814 (compute_tip_xy):
1815 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
1816 * xmenu.c (menu_position_func): Use x_display_pixel_height and
1817 x_display_pixel_width.
1818
18192008-09-18 Kenichi Handa <handa@m17n.org>
1820
1821 * composite.c (fill_gstring_header): Don't check FROM and TO here.
1822 (composition_compute_stop_pos): Fix handling of static composition.
1823 (Fcomposition_get_gstring): Check FROM and TO at first.
1824
18252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1826
1827 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
1828 mixup (YAILOM).
1829
18302008-09-17 Chong Yidong <cyd@stupidchicken.com>
1831
1832 * indent.c (Fvertical_motion): Use position reported by iterator
1833 instead of PT for determining screen motion (bug#943).
1834
18352008-09-17 Romain Francoise <romain@orebokech.com>
1836
1837 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
1838
18392008-09-17 Kenichi Handa <handa@m17n.org>
1840
1841 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
1842
1843 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
1844 if necessary.
1845
18462008-09-16 Kenichi Handa <handa@m17n.org>
1847
1848 * coding.c (make_conversion_work_buffer): Avoid calling
1849 Fget_buffer_create if it is not necessary.
1850
18512008-09-15 Martin Rudalics <rudalics@gmx.at>
1852
1853 * window.c (Fselect_window): Don't update window_select_count and
1854 use_time when norecord is not nil.
1855
18562008-09-14 Kenichi Handa <handa@m17n.org>
1857
1858 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
1859 specpdl_ptr.
1860
18612008-09-12 Kenichi Handa <handa@m17n.org>
1862
1863 * indent.c (scan_for_column): Don't handle automatic composition
1864 if the current buffer is not associated with a window.
1865
1866 * composite.c (composition_reseat_it): If the current buffer is
1867 not associated with a window, ignore the automatic composition.
1868 (find_automatic_composition): Likewise.
1869
18702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1871
1872 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
1873 (Fgpm_mouse_stop): Use it.
1874 * termhooks.h (close_gpm): Declare.
1875 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
1876 connection if Gpm_GetEvent fails.
1877
1878 * window.c (set_window_buffer): Always preserve current-buffer.
1879
18802008-09-12 Glenn Morris <rgm@gnu.org>
1881
1882 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
1883
18842008-09-11 Glenn Morris <rgm@gnu.org>
1885
1886 * charset.c (charset-map-path): Doc fix.
1887
18882008-09-10 Kenichi Handa <handa@m17n.org>
1889
1890 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
1891
1892 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
1893 compose a grapheme cluster with the preceding base glyph.
1894
1895 * composite.c (composition_compute_stop_pos): Fix previous change.
1896 Reset cmp_it->id to -1 at first.
1897
18982008-09-10 Glenn Morris <rgm@gnu.org>
1899
1900 * Makefile.in (character.o, chartab.o): Fix config.h typo.
1901
19022008-09-09 Chong Yidong <cyd@stupidchicken.com>
1903
1904 * keyboard.c (read_key_sequence): Reapply translation maps when
1905 switching keyboards.
1906
19072008-09-09 Kenichi Handa <handa@m17n.org>
1908
1909 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
1910 characters.
1911
1912 * composite.c (FORWARD_CHAR): Fix calculation
1913 of (POSITION).pos_byte.
1914 (composition_compute_stop_pos): Limit the search of composition to
1915 at most 500 characters ahead. If we reach the limit or find a
1916 newline, set cmp_it->ch to -2 and return 0.
1917 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
1918
19192008-09-08 Kenichi Handa <handa@m17n.org>
1920
1921 * indent.c (Fvertical_motion): Be sure to set
1922 it_overshoot_expected if it.cmp_it.id is non-negative.
1923
19242008-09-07 Andreas Schwab <schwab@suse.de>
1925
1926 * callproc.c (Fcall_process): Don't hold references to string data
1927 across garbage collection. Move initialisation of new_argv down
1928 to avoid compiler bug.
1929
19302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1931
1932 * process.c (Fsystem_process_attributes): Doc fix.
1933
19342008-09-07 Chong Yidong <cyd@stupidchicken.com>
1935
1936 * callproc.c (Fcall_process): Canonicalize current directory name.
1937
1938 * xdisp.c (move_it_to): When moving by vpos, ensure that the
1939 iterator advances to the next line if the current line ends in a
1940 continued tab.
1941
19422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
1943
1944 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
1945 member to point to cmp_from.
1946
1947 * xdisp.c: Doc fix for references to gidx data member.
1948
19492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1950
1951 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
1952
19532008-09-07 Kenichi Handa <handa@m17n.org>
1954
1955 * composite.c (FORWARD_CHAR): Check STOP after
1956 incrementing (POSITION).pos.
1957
19582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1959
1960 * process.c (Fsystem_process_attributes): Doc fix.
1961
19622008-09-06 Chong Yidong <cyd@stupidchicken.com>
1963
1964 * keyboard.c (Ftop_level): Doc fix.
1965
19662008-09-06 Eli Zaretskii <eliz@gnu.org>
1967
1968 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
1969 minibuffer, don't let lower part of menu invade the echo area.
1970
1971 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
1972 "char *q" to access menu text and advance through it. Revert the
1973 change that displayed ">" instead of ASCII character 0x10.
1974
19752008-09-05 Eli Zaretskii <eliz@gnu.org>
1976
1977 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
1978 toggle boxes and radio buttons on MS-DOS as well.
1979
19802008-09-05 Kenichi Handa <handa@m17n.org>
1981
1982 * composite.c (autocmp_chars): Check lookback count.
1983 (composition_compute_stop_pos): Set cmp_it->lookback.
1984 (composition_reseat_it): Check lookback count.
1985 (struct position_record): New struct.
1986 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
1987 (find_automatic_composition): New function.
1988 (composition_adjust_point): Use find_automatic_composition.
1989
1990 * dispextern.h (struct composition_it): New member lookback.
1991
19922008-09-02 Chong Yidong <cyd@stupidchicken.com>
1993
1994 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
1995 if moving by a single line.
1996
19972008-09-02 Andreas Schwab <schwab@suse.de>
1998
1999 * xterm.c (x_delete_display): Fix merge error.
2000
2001 * fileio.c (Fexpand_file_name): Remove unused variables.
2002
20032008-09-02 Eli Zaretskii <eliz@gnu.org>
2004
2005 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2006 storage on all platforms, not just on DOS_NT.
2007
20082008-09-02 Jason Rumney <jasonr@gnu.org>
2009
b8ff72fa
SM
2010 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2011 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2012
20132008-09-01 Chong Yidong <cyd@stupidchicken.com>
2014
2015 * xfaces.c (Finternal_set_alternative_font_family_alist)
2016 (Finternal_set_alternative_font_registry_alist): Properly copy
2017 entire alist structure.
2018
20192008-09-01 Kenichi Handa <handa@m17n.org>
2020
d66c0241 2021 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2022 representative chars of the script is a vector.
d66c0241
JB
2023 (ftfont_list): Handle the case where the representative chars of
2024 the script is a vector.
aac0c6e3
MR
2025
2026 * character.c (syms_of_character): Docstring of
2027 script-representative-chars fixed.
2028
20292008-08-31 Eli Zaretskii <eliz@gnu.org>
2030
2031 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2032 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2033 the menu. Allocate larger buffer for `text', to account for
2034 possible ^C characters.
2035
20362008-08-31 Martin Rudalics <rudalics@gmx.at>
2037
2038 * xdisp.c (prepare_menu_bars): Don't call
2039 Vwindow_size_change_functions with arg Qt.
2040
20412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2042
2043 * font.h (font_range):
2044 * fileio.c (report_file_error):
2045 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
2046
20472008-08-30 Glenn Morris <rgm@gnu.org>
2048
2049 * data.c (Fmake_variable_frame_local): Doc fix.
2050
2051 * frame.c (Fmodify_frame_parameters): Doc fix.
2052
20532008-08-30 Eli Zaretskii <eliz@gnu.org>
2054
2055 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2056 needed by GetTokenInformation.
2057 (w32_system_process_attributes): Check return values of all system
2058 APIs.
2059
2060 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2061 only when the state changes.
2062 (IT_update_begin, IT_update_end): Add termscript trace.
2063
2064 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2065 clipboard is unavailable. Set dst to NULL if it doesn't point to
2066 malloc'ed data.
2067 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2068 passing random values to xfree.
2069
2070 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2071 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2072
20732008-08-29 Jason Rumney <jasonr@gnu.org>
2074
2075 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2076
20772008-08-29 Eli Zaretskii <eliz@gnu.org>
2078
2079 * composite.c (fill_gstring_body): Avoid compiler warnings.
2080
2081 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2082 LGLYPH_SET_CODE to avoid compiler warnings.
2083
2ae37cf0 2084 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2085
2086 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2087
2088 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2089 LGLYPH_SET_CODE.
2090
20912008-08-29 Kenichi Handa <handa@m17n.org>
2092
2093 * fileio.c (report_file_error): Don't downcase the first character
2094 of errstring if it is still unibyte.
2095
20962008-08-29 Kenichi Handa <handa@m17n.org>
2097
2098 These changes are to re-implement the automatic composition so
2099 that it doesn't use text properties.
2100
2101 * Makefile.in (ftfont.o): Depend on composite.h.
2102 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
2103
2104 * character.h (Vunicode_category_table): Extern it.
2105
2106 * character.c (Vunicode_category_table): New variable.
2107 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
2108
2109 * chartab.c (optimize_sub_char_table): Perform more greedy
2110 optimization.
2111
b8ff72fa
SM
2112 * composite.h (enum composition_method):
2113 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
2114 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
2115 (Vcomposition_function_table): Extern it.
2116 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
2117 (composition_gstring_put_cache, composition_gstring_from_id)
2118 (composition_gstring_p, composition_gstring_width)
2119 (composition_compute_stop_pos, composition_reseat_it)
2120 (composition_update_it, composition_adjust_point): Extern them.
2121 (Fcomposition_get_gstring): EXFUN it.
2122
d66c0241 2123 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
2124 (Vcomposition_function_table)
2125 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
2126 (gstring_hash_table, gstring_work, gstring_work_headers):
2127 New variables.
aac0c6e3
MR
2128 (gstring_lookup_cache, composition_gstring_put_cache)
2129 (composition_gstring_from_id, composition_gstring_p)
2130 (composition_gstring_width, fill_gstring_header)
2131 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
2132 (composition_reseat_it, composition_update_it)
b8ff72fa 2133 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
2134 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
2135 and gstring_work_headers. DEFVAR_LISP composition-function-table.
2136 Defsubr compostion_get_gstring.
2137
2138 * dispextern.h (struct glyph): New union u.cmp. Delete the member
2139 cmp_id.
2140 (struct glyph_string): Delete the member gidx. New members
2141 cmp_id, cmp_from, and cmp_to.
2142 (enum it_method): Delete GET_FROM_COMPOSITION.
2143 (struct composition_it): New struct.
2144 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
2145 Delete c, len, cmp_id, cmp_len in u.comp.
2146
2147 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 2148 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 2149 (enum lglyph_indices): Likewise.
b8ff72fa 2150 (font_range): Adjust extern.
aac0c6e3
MR
2151 (font_fill_lglyph_metrics): Extern it.
2152
2153 * font.c (QCf): New variable.
2154 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2155 (font_prepare_composition): Delete this function.
2156 (font_range): Type and arguments changed.
2157 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
2158 (font_fill_lglyph_metrics): New function.
b8ff72fa 2159 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 2160 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
2161 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
2162 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
2163
2164 * fontset.h (font_for_char): Extern it.
2165
2166 * fontset.c (font_for_char): New function.
2167
2168 * ftfont.c: Include composite.h.
2169 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 2170 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
2171
2172 * indent.c: Include composite.h and dispextern.h.
2173 (check_composition): Delete this function.
2174 (scan_for_column): Handle composition by
2175 composition_compute_stop_pos, composition_reseat_it, and
2176 composition_update_it.
2177 (compute_motion): Likewise.
2178 (Fvertical_motion): Fix checking of composition.
2179
2180 * keyboard.c (adjust_point_for_property): Check composition by
2181 composition_adjust_point.
2182
b8ff72fa 2183 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
2184 struct glyph_string.
2185
b8ff72fa
SM
2186 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
2187 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
2188 struct glyph.
2189 (produce_composite_glyph): Likewise.
2190
b8ff72fa
SM
2191 * w32term.c (x_draw_composite_glyph_string_foreground):
2192 Adjust for the change of struct glyph_string.
aac0c6e3
MR
2193 (x_draw_glyph_string): Likewise.
2194
2195 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
2196 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2197
2198 * xdisp.c: Include font.h.
2199 (it_props): Delete the entry for Qauto_composed.
2200 (init_iterator): Initialize it->cmp_it.id to -1.
2201 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 2202 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
2203 (handle_auto_composed_prop): Delete it.
2204 (handle_composition_prop): Handle only static composition.
2205 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
2206 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 2207 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
2208 (pop_it): Likewise.
2209 (get_next_element): Delete next_element_from_composition.
2210 (CHAR_COMPOSED_P): New macro.
2211 (get_next_display_element): For automatic composition, get a face
2212 from the font in the glyph-string.
2213 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 2214 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
2215 (next_element_from_string): Check if the character at the current
2216 position is composed by CHAR_COMPOSED_P.
2217 (next_element_from_buffer): Likewise.
d66c0241
JB
2218 (next_element_from_composition): Adjust for the change of struct it.
2219 Update it->cmp_it.
b8ff72fa
SM
2220 (dump_glyph): Adjust for the change of struct glyph.
2221 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
2222 it and struct glyph. Don't handle automatic composition here.
2223 (fill_gstring_glyph_string): New function.
2224 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 2225 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
2226 (BUILD_GSTRING_GLYPH_STRING): New macro.
2227 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
2228 automatic composition.
b8ff72fa 2229 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 2230 struct glyph.
b8ff72fa 2231 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 2232
b8ff72fa 2233 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
2234 the change of struct glyph_string.
2235 (x_draw_glyph_string): Likewise.
2236
22372008-08-29 Glenn Morris <rgm@gnu.org>
2238
2239 * buffer.c (word-wrap): Doc fix.
2240 * xdisp.c (truncate-partial-width-windows): Doc fix.
2241 Increase default to 50.
2242
22432008-08-29 Chong Yidong <cyd@stupidchicken.com>
2244
2245 * xdisp.c (update_tool_bar_unwind): New function.
2246 (update_tool_bar): Temporarily set selected frame before building
2247 tool-bar items.
2248
22492008-08-28 Michael Albinus <michael.albinus@gmx.de>
2250
2251 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
2252 snprintf, respectively.
2253 (xd_append_arg): Convert strings with Fstring_make_unibyte.
2254
22552008-08-28 Chong Yidong <cyd@stupidchicken.com>
2256
2257 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
2258 LDFLAGS to GNUstep CC invocation.
2259
22602008-08-27 Chong Yidong <cyd@stupidchicken.com>
2261
2262 * indent.c (Fvertical_motion): Revert last change. Handle the
2263 general case where we are moving forward, and PT spans multiple
2264 screen lines.
2265
2266 * eval.c (find_handler_clause): Temporarily increase
2267 max-lisp-eval-depth while printing the backtrace buffer, to
2268 guarantee that help-mode code can run.
2269
22702008-08-27 Eli Zaretskii <eliz@gnu.org>
2271
2272 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
2273 colors under -rv.
2274 (IT_set_frame_parameters): Don't swap foreground and background
2275 colors if `(reverse . t)' is present in the frame properties.
2276 (internal_terminal_init): Call init_frame_faces only for the
2277 initial frame.
2278
22792008-08-27 Andreas Schwab <schwab@suse.de>
2280
2281 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
2282
22832008-08-27 Andreas Schwab <schwab@suse.de>
2284
2285 * search.c (search_buffer): Set char_base to zero only at the end.
2286
22872008-08-27 Kenichi Handa <handa@m17n.org>
2288
b8ff72fa 2289 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
2290
22912008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
2292
2293 * xterm.c (x_term_init): Temporarily hide the partially
2294 initialized terminal while calling vendor-specific-keysyms.
2295
22962008-08-26 Eli Zaretskii <eliz@gnu.org>
2297
2298 * msdos.c (internal_terminal_init): Most initializations done only
2299 once, especially initial_screen_colors[] and termscript open.
2300
23012008-08-26 Chong Yidong <cyd@stupidchicken.com>
2302
2303 * eval.c (Fcondition_case): Doc fix.
2304
2305 * widgetprv.h (EmacsFramePart): Change font member to the new font
2306 struct.
2307
2308 * widget.c: Include character.h and font.h for XSETFONT.
2309 (setup_frame_gcs): Compute X font id from font struct, just once.
2310
23112008-08-26 Eli Zaretskii <eliz@gnu.org>
2312
2313 * term.c (get_named_tty): Fix last change.
2314
23152008-08-26 Chong Yidong <cyd@stupidchicken.com>
2316
2317 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 2318 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
2319
23202008-08-25 Eli Zaretskii <eliz@gnu.org>
2321
2322 * frame.c (do_switch_frame): Mark previously displayed frame as
2323 obscured for FRAME_MSDOS_P frames as well.
2324
23252008-08-24 Eli Zaretskii <eliz@gnu.org>
2326
2327 * frame.c (make_terminal_frame): Initialize f->terminal,
2328 f->terminal->reference_count, and scroll bars on MS-DOS as well.
2329 Set the top frame to newly created frame.
2330 (Fmake_terminal_frame): Reuse the_only_display_info.
2331
2332 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
2333 estimating available memory.
2334
b97439ce 23352008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
2336
2337 * nsterm.m (ns_draw_window_cursor): Don't call
2338 NSDisableScreenUpdates and NSEnableScreenUpdates on
2339 non-NS_IMPL_COCOA systems.
2340
23412008-08-23 Andreas Schwab <schwab@suse.de>
2342
2343 * process.c (procfs_system_process_attributes): Fix use of
2344 uninitialized variables.
2345
23462008-08-23 Eli Zaretskii <eliz@gnu.org>
2347
2348 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
2349
2350 * dispnew.c (init_display): Remove MS-DOS specific conditions for
2351 calling tty-set-up-initial-frame-faces.
2352
b8ff72fa
SM
2353 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
2354 Allow MSDOS frames along with X frames.
aac0c6e3
MR
2355
2356 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
2357 addition to output_termcap.
2358
2359 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
2360
2361 * termchar.h (FRAME_TTY): Support output_msdos_raw.
2362 (struct tty_display_info) [MSDOS]: Add fields related to mouse
2363 highlight.
2364
2365 * process.c [!subprocesses]: Define QCname.
2366 (syms_of_process): Intern and staticpro it.
2367
2368 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
2369 Adjust for changes in encoding/decoding routines.
2370 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
2371 encode_coding and decode_coding.
2372
b8ff72fa 2373 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
2374
2375 * dosfns.c: Include frame.h before termhooks.h.
2376 (dos_cleanup): Use CURTTY ()->termscript instead of a global
2377 variable termscript.
2378
2379 * s/msdos.h (USER_FULL_NAME): Define.
2380 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
2381
2382 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
2383 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
2384 pw->pw_gecos.
2385
2386 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
2387 SELECTED_FRAME as additional (1st) argument.
2388 (tty_read_avail_input): Handle output_msdos_raw in
2389 addition to output_termcap.
2390
2391 * msdos.c: Include frame.h before termhooks.h.
2392 (mouse_on, mouse_off, mouse_moveto, mouse_init)
2393 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
2394 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
2395 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
2396 (IT_set_terminal_modes, IT_reset_terminal_modes)
2397 (IT_set_frame_parameters): Use tty->termscript instead of a global
2398 variable termscript.
2399 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
2400 global variable terminal_coding. Don't refer to
2401 Vnonascii_translation_table.
2402 (internal_terminal_init): Set Vwindow_system in current_kboard.
2403 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
2404 Announce date and time of session start, if termscript is open.
2405 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
2406 term.c:init_tty). Open termscript only of not already open.
2407 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
2408 here instead of dos_ttraw. Don't initialize display if this is an
2409 initial tty. Don't set FRAME_FONT.
2410 (Vwindow_system_version): Bump to 23.
2411 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
2412 is available, set up mouse_position_hook.
2413 (dos_ttraw, IT_set_terminal_modes): If called with initial
2414 terminal, do nothing.
2415 (IT_set_frame_parameters): Handle the Qtty_type frame
2416 parameter by calling internal_terminal_init.
2417 (dos_set_window_size, show_mouse_face)
2418 (clear_mouse_face, IT_note_mode_line_highlight)
2419 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
2420 (dos_rawgetc): Use tty_display_info instead of x_display_info.
2421 (initialize_msdos_display): New function.
2422 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
2423 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
2424 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
2425 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 2426 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
2427 (request_sigio, unrequest_sigio): Don't define, now defined on
2428 sysdep.c.
2429 (IT_write_glyphs): Rewrite to use encode_terminal_code.
2430
2431 * term.c [MSDOS]: Include msdos.h.
2432 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
2433 conditional to DOS_NT. Allow only one call to this function in a
2434 session. Don't allocate a new struct tty_display_info; instead,
2435 reuse the_only_display_info. Call get_tty_size to get screen
2436 dimensions. Call init_baud_rate to set bad_rate.
2437 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
2438 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 2439 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
2440 (get_tty_terminal, get_named_tty, Ftty_type)
2441 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
2442 output_termcap.
b8ff72fa
SM
2443 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
2444 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 2445 only when subprocesses are supported.
aac0c6e3
MR
2446
2447 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
2448 f->output_data.x.
2449 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
2450 terminal devices.
2451
5582fbc7 2452 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
2453 x_output.
2454 (FRAME_FONT): Use output_data.tty.
2455 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
2456 (struct x_display_info): Rename from display_info. Update all users in
2457 msdos.c.
aac0c6e3 2458 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 2459 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
2460 (dos_ttraw): Update prototype.
2461
2462 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
2463 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
2464
24652008-08-23 Jason Rumney <jasonr@gnu.org>
2466
2467 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
2468 (fn_TIFFSetDirectory): New library function used.
2469 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
2470 (tiff_load): Use :index to select among multiple images. Set count
2471 property when multiple images exist.
2472 (gif_format): Use :index, not :image.
2473
24742008-08-23 Chong Yidong <cyd@stupidchicken.com>
2475
2476 * xdisp.c (try_scrolling): Check INT_MAX instead of
2477 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
2478 to obtain INT_MAX.
2479
24802008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
2481
2482 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
2483
24842008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
2485
2486 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
2487 GNUstep library location.
2488
24892008-08-21 Chong Yidong <cyd@stupidchicken.com>
2490
2491 * xfaces.c (x_update_menu_appearance): Check validity of menu font
2492 before using it.
2493
2494 * puresize.h (BASE_PURESIZE): Increase to 1250000.
2495
24962008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2497
2498 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
2499 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
2500 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
2501 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
2502 (EmacsApp-cursor_blink_handler): Remove declaration.
2503 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
2504 match 01 Feb 2008 changes in xterm.c.
2505 (ns_read_socket): Add cast to avoid warning.
2506 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
2507 GNUstep.
2508
25092008-08-20 Chong Yidong <cyd@stupidchicken.com>
2510
2511 * xselect.c (x_get_foreign_selection): Return nil if desired
2512 selection could not be obtained, instead of signalling an error.
2513
25142008-08-20 David Reitter <david.reitter@gmail.com>
2515
2516 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
2517 * nsterm.m: Remove ns-specific code for cursor blinking.
2518 (ns_draw_window_cursor): Clear cursor properly rather than
2519 redrawing the area. Respect width of bar cursors.
2520 These changes enable the use of generic blink-cursor-mode and
2521 generic cursor types in NS and support smooth cursor movements (do
2522 not blink off after command).
2523 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
2524 Nextstep, too.
2525
25262008-08-19 Kenichi Handa <handa@m17n.org>
2527
2528 * font.c (Vfont_log_deferred): New variable.
2529 (font_add_log): Check Vfont_log_deferred.
2530 (font_deferred_log): New function.
2531
2532 * font.h (font_deferred_log): Extern it.
2533
2534 * fontset.c (reorder_font_vector): Use encoding charset of fonts
2535 for sorting.
2536 (face_for_char): Use deferred log.
2537
25382008-08-18 Kenichi Handa <handa@m17n.org>
2539
2540 * fontset.c (face_for_char): Add font log.
2541
2542 * font.c (font_add_log): Add the font properties :script, :lang,
2543 and :otf in the log.
2544
25452008-08-17 Chong Yidong <cyd@stupidchicken.com>
2546
2547 * xdisp.c: Remove dead code.
2548 (handle_invisible_prop, next_overlay_string): Defer call to
2549 setup_for_ellipsis.
2550 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
2551
25522008-08-15 Chong Yidong <cyd@stupidchicken.com>
2553
2554 * xfaces.c (lookup_derived_face): Properly handle possible zero
2555 return value of get_lface_attributes.
2556 (merge_faces): Don't tell lookup_derived_face to signal an error
2557 if face is not found.
2558
2559 * dired.c (Fdirectory_files): Doc fix.
2560
2561 * process.c (make_process): Initialize kill_without_query struct
2562 member.
2563
25642008-08-15 Eli Zaretskii <eliz@gnu.org>
2565
2566 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
2567 Alternative calculation of totphys for Visual Studio 6.
2568
2569 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
2570
2571 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
2572 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
2573 All users changed.
2574 (stat): Only root directory passed to GetDriveType. Allow RAM
2575 disk as well as local fixed disk when w32-get-true-file-attributes
2576 is set to `local'.
2577 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
2578 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
2579 (w32_cached_id, w32_add_to_cache): New functions.
2580 (get_name_and_id): Look account names in the cache before calling
2581 lookup_account_sid.
2582 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
2583 New initialization flags.
2584 (globals_of_w32): Initialize them to zero.
2585 (w32_system_process_attributes): Use w32_cached_id and
2586 w32_add_to_cache.
2587
25882008-08-14 Lawrence Mitchell <wence@gmx.li>
2589
2590 * lread.c (Fread_char, Fread_char_exclusive): If no character
2591 event is read before timeout is reached, return nil, rather than
2592 converting to a number.
2593
25942008-08-14 Chong Yidong <cyd@stupidchicken.com>
2595
2596 * fns.c (use_dialog_box): Doc fix.
2597
2598 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
2599 on OS X.
2600
26012008-08-13 Chong Yidong <cyd@stupidchicken.com>
2602
2603 * frame.c (Qns_parse_geometry): New var.
2604 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
2605
26062008-08-11 Chong Yidong <cyd@stupidchicken.com>
2607
2608 * xdisp.c (x_produce_glyphs): Handle the case when font has no
2609 space character in calculating tabs.
2610
26112008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
2612
2613 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
2614
26152008-08-10 Glenn Morris <rgm@gnu.org>
2616
2617 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
2618 silence gcc "limited range of data type" warnings in some
2619 make_fixnum_or_float calls.
2620
26212008-08-09 Eli Zaretskii <eliz@gnu.org>
2622
2623 * w32.c (w32_system_process_attributes): If the process does not
2624 exist, return nil.
2625
2626 * w32.c: Include thelp32.h, psapi.h and coding.h.
2627 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
2628 declarations.
2629 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
2630 (Process32Next_Proc): New typedefs.
2631 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
2632 (g_b_init_process32_next, g_b_init_open_thread_token)
2633 (g_b_init_impersonate_self, g_b_init_revert_to_self)
2634 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
2635 (g_b_init_get_process_working_set_size)
2636 (g_b_init_global_memory_status_ex): New static variables.
2637 (globals_of_w32): Initialize them.
2638 (create_toolhelp32_snapshot, process32_first, process32_next)
2639 (open_thread_token, impersonate_self, revert_to_self)
2640 (get_process_memory_info, get_process_working_set_size)
2641 (global_memory_status, global_memory_status_ex): New wrapper
2642 functions.
2643 (w32_list_system_processes, w32_system_process_attributes)
2644 (enable_privilege, restore_privilege, ltime, process_times):
2645 New functions.
2646 (convert_time_raw): New function.
2647 (convert_time): Remove conversion of FILETIME into time in 100
2648 nsec units, call convert_time_raw instead.
2649
2650 * process.h (w32_list_system_processes, w32_system_process_attributes):
2651 Add prototypes.
2652 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
2653 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
2654 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
2655 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
2656
2657 * process.c (Fsystem_process_attributes): Doc fix.
2658
26592008-08-08 Chong Yidong <cyd@stupidchicken.com>
2660
2661 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
2662 a continued multi-char glyph; if so, advance to the actual glyph.
2663
26642008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2665
2666 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
2667
2668 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
2669 (.m.o): Use it.
2670 * config.in: Regenerate.
2671
26722008-08-07 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * xdisp.c (redisplay_window): Revert last change.
2675 (try_window): Check bottom scroll margin too.
2676
26772008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2678
2679 * config.in: Regenerate.
2680
2681 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
2682 -list-load-path-shadows'.
2683 (nsgui.h): Reduce number of things depending on it.
2684
26852008-08-06 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
2688 instead of window-end which does the wrong thing at eob.
2689 (try_cursor_movement): Minor optimization.
2690 (redisplay_window): If scroll margin is defined, don't assume
2691 window doesn't need scrolling.
2692
26932008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2694
2695 * config.in: Regenerate.
2696
2697 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
2698 (mostlyclean): Don't delete *.d under NS.
2699
2700 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
2701
27022008-08-06 Kenichi Handa <handa@m17n.org>
2703
2704 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
2705
27062008-08-06 Andreas Schwab <schwab@suse.de>
2707
2708 * config.in: Regenerate.
2709
27102008-08-05 Chong Yidong <cyd@stupidchicken.com>
2711
2712 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
2713 forcing a window start.
2714
2715 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
2716 (auto_save_1): Update modtime when auto-save-list-file-name is on.
2717
27182008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2719
2720 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
2721 argument.
2722
27232008-08-05 Juanma Barranquero <lekktu@gmail.com>
2724
2725 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
2726 <scroll-down-aggressively, before-change-functions>:
2727 <after-change-functions>: Reflow docstrings.
2728
27292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2730 Ken Raeburn <raeburn@gnu.org>
2731
2732 Dock menu customization, based on a patch by Ken Raeburn, plus some
2733 other fixes.
2734 * nsmenu.m (dockMenu): New variable.
2735 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
2736
2737 * nsterm.h (dockMenu): Declare.
2738
2739 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
2740 (ns_term_init): Initialize dockMenu.
2741 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
2742 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
2743 left.
2744
2745 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
2746
27472008-08-04 Chong Yidong <cyd@stupidchicken.com>
2748
2749 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
2750
2751 * config.in: Regenerate.
2752
27532008-08-04 Seiji Zenitani <zenitani@mac.com>
2754
2755 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
2756
27572008-08-04 Chong Yidong <cyd@stupidchicken.com>
2758
2759 * nsterm.h (find_and_call_menu_selection): Fix prototype.
2760
27612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2762
2763 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
2764
2765 * keyboard.h: Comment an #endif.
2766
2767 * lisp.h (have_menus_p): Adjust comment.
2768
2769 * menu.c (find_and_return_menu_selection): Fix comparison with
2770 client_data.
2771
2772 * nsmenu.m (popup_activated_flag): New variable.
2773 (popup_activated): New function.
2774 (menu-or-popup-active-p): New exported lisp definition.
2775 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
2776 when popup done.
2777 (ns_popup_dialog): Set popup_activated_flag.
2778
2779 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
2780 version for GNUstep (handled by conditional typedef in nsterm.m).
2781 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
2782 in rgb.txt).
2783
2784 * process.c (init_process): Use DARWIN_OS, not DARWIN.
2785
2786 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
2787
2788 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
2789
2790 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
2791 shortcircuit if popup_activated like GTK and X toolkit.
2792
2793 * m/inter386.h: Change DARWIN to DARWIN_OS.
2794
2795 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
2796 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
2797 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
2798 comment on NO_SOCK_SIGIO.
2799
28002008-08-03 Chong Yidong <cyd@stupidchicken.com>
2801
2802 * nsterm.m (windowDidResize): Remove stopModal call.
2803
28042008-08-03 Andreas Schwab <schwab@suse.de>
2805
2806 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
2807 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
2808
28092008-08-02 Chong Yidong <cyd@stupidchicken.com>
2810
2811 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
2812 Don't use uninitialized pointer variable when using getrlimit.
2813
28142008-08-02 Jason Rumney <jasonr@gnu.org>
2815
2816 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
2817
28182008-08-02 Eli Zaretskii <eliz@gnu.org>
2819
2820 * alloc.c (NSTATICS): Bump to 0x640.
2821
2822 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
2823
2824 * lisp.h: Add prototype for directory_files_internal.
2825
2826 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
2827 New functions.
2828 (syms_of_process): Defsubr them. Add initializations for various
2829 Q* symbols used in procfs_system_process_attributes.
2830 (procfs_list_system_processes, procfs_system_process_attributes)
2831 [HAVE_PROCFS]: New functions.
2832 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
2833 (procfs_get_total_memory): New functions.
2834
28352008-08-01 Juanma Barranquero <lekktu@gmail.com>
2836
2837 * xfaces.c (Fx_load_color_file): Fix previous change;
2838 it is #ifdef WINDOWSNT, not WINDOWS_NT.
2839
28402008-08-01 Michael Albinus <michael.albinus@gmx.de>
2841
2842 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
2843
28442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2845
2846 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
2847
28482008-08-01 Chong Yidong <cyd@stupidchicken.com>
2849
2850 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
2851
2852 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
2853 define NSApplicationDelegateReplySuccess.
2854 (EmacsView -converstationIdentifier): Use long instead of
2855 NSInteger for GNUstep, since it doesn't have NSInteger.
2856
2857 * xmenu.c: Revert last change.
2858
2859 * keyboard.h: Fix last change.
2860
28612008-08-01 Juanma Barranquero <lekktu@gmail.com>
2862
2863 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
2864 on Windows.
2865
28662008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2867
2868 Warning clearing and clean-up in NS port.
2869 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
2870 Add prototypes.
2871 * nsgui.h (FACE_DEFAULT): Remove, unused.
2872 (XGCValues): Change colors to unsigned long.
2873 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
2874 nsterm.m.
2875 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
2876 (ns_list_fonts): Remove, unused.
2877 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
2878 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
2879 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
2880 (nsfont_draw): Compare face colors to 0, not nil.
2881 * nsmenu.m (struct widget_value): Drop unneeded declaration.
2882 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
2883 (-addSubmenuWithTitle:): Use NSMenuItem class.
2884 (ns_popup_menu): Use NO, not NULL, for enabled setting.
2885 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
2886 (ns_clip_to_row): Make gc arg a BOOL.
2887 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
2888 ns_clip_to_row() call.
2889 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
2890 used). Cast FRAME_FONT assignments.
2891 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
2892 (ns_string_to_lispmod): Change arg to const char.
2893 (ns_term_init): Use NSMenuItem class.
2894 (EmacsApp -openFile:): Move to different section of file.
2895 (EmacsApp -application:openFiles:): Don't return a value, call
2896 -replyToOpenOrPrint:.
2897 (EmacsView -keyDown:): Fix up cast.
2898 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
2899 (EmacsView -menuDown:): Cast tag in call to
2900 find_and_call_menu_selection().
2901 (ns_list_fonts): Remove, unused.
2902 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
2903 (ns_fontname_to_xlfd): Make static.
2904 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
2905 Remove prototypes (now in keyboard.h).
2906 (next_menubar_widget_id): Remove, unused.
2907 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
2908 Remove prototypes (now in keyboard.h).
2909 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
2910
29112008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
2912
2913 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
2914 (floatfns.o): Depend on syssignal.h.
2915 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
2916
2917 * systty.h: Fix previous change that removed BSD_TERMIOS.
2918 Add comments to #ifdefs.
2919
29202008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2921
2922 * w32fns.c (w32-load-color-file): Remove.
2923 (x-open-connection): Use renamed Fx_load_color_file.
2924 * xfaces.c (x-load-color-file): Add.
2925 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
2926 Emacs.clr.
2927 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
2928
29292008-07-31 Michael Albinus <michael.albinus@gmx.de>
2930
2931 * dbusbind.c (Fdbus_call_method_asynchronously)
2932 (Fdbus_method_error_internal): New defuns.
2933 (xd_read_message): Handle also reply messages.
2934 (Vdbus_registered_functions_table): Extend docstring.
2935
29362008-07-31 Juanma Barranquero <lekktu@gmail.com>
2937
2938 * keyboard.c (gobble_input): Fix previous change.
2939
29402008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2941
2942 * bitmaps/README:
2943 * xfns.c:
2944 * termcap.c:
2945 * term.c:
2946 * syswait.h:
2947 * systty.h:
2948 * systime.h:
2949 * syssignal.h:
2950 * sysdep.c:
2951 * process.h:
2952 * process.c:
2953 * print.c:
2954 * ndir.h:
2955 * lread.c:
2956 * keyboard.c:
2957 * getpagesize.h:
2958 * floatfns.c:
2959 * fileio.c:
2960 * emacs.c:
2961 * doc.c:
2962 * dispnew.c:
2963 * dired.c:
2964 * data.c:
2965 * callproc.c:
2966 * buffer.c:
2967 * README:
2968 * Makefile.in:
2969 * s/template.h:
2970 * s/msdos.h:
2971 * m/vax.h: Remove VMS support.
2972 * s/vms.h:
2973 * vlimit.h:
2974 * uaf.h:
2975 * temacs.opt:
2976 * param.h:
2977 * ioctl.h: Remove file.
2978
29792008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2980
2981 * s/ms-w32.h (MULTI_KBOARD): Remove.
2982 * xterm.c:
2983 * xselect.c:
2984 * xfns.c:
2985 * window.c:
2986 * w32term.c:
2987 * w32fns.c:
2988 * terminal.c:
2989 * termhooks.h:
2990 * term.c:
2991 * sysdep.c:
2992 * keyboard.h:
2993 * keyboard.c:
2994 * frame.h:
2995 * frame.c:
2996 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
2997 * config.in: Regenerate.
2998
29992008-07-30 Jason Rumney <jasonr@gnu.org>
3000
3001 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3002
3003 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3004 (w32font_open_internal): Get unicode version of textmetrics.
3005 Don't enable or disable glyph indices here.
3006 (w32font_open): Disable use of glyph indices.
3007
3008 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3009
30102008-07-30 Chong Yidong <cyd@stupidchicken.com>
3011
3012 * minibuf.c (Vread_buffer_function): Doc fix.
3013
30142008-07-30 John Paul Wallington <jpw@pobox.com>
3015
3016 * minibuf.c (read_buffer_completion_ignore_case): New var.
3017 (Fread_buffer): Use it.
3018
30192008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3020
3021 * systty.h (sensemode): Remove empty #if. Remove reference to
3022 BSD_TERMIOS, unused.
3023
3024 * sysdep.c: Remove reference to DGUX.
3025 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3026
3027 * config.in: Regenerate.
3028
30292008-07-30 Jason Rumney <jasonr@gnu.org>
3030
3031 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3032
30332008-07-29 Jason Rumney <jasonr@gnu.org>
3034
3035 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3036 is populated.
3037 (uniscribe_encode_char): Always use uniscribe.
3038 Avoid using context if cache is populated.
3039
30402008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3041
3042 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3043 open menu.
3044
3045 * gtkutil.c (menu_nav_ended): Remove.
3046 (create_menus): Remove signal connect for menu_nav_ended.
3047
30482008-07-28 Chong Yidong <cyd@stupidchicken.com>
3049
3050 * xdisp.c (redisplay_window): Check return value of
3051 compute_window_start_on_continuation_line before forcing a window
3052 start.
3053
30542008-07-28 Jason Rumney <jasonr@gnu.org>
3055
3056 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3057
3058 * w32term.c (w32_enable_unicode_output, cleartype_active):
3059 Remove obsolete display options.
3060 (x_draw_glyph_string_background): Don't use old cleartype_active
3061 workaround.
3062 (w32_initialize): Remove cleartype_active initialization.
3063 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3064
30652008-07-28 Andreas Schwab <schwab@suse.de>
3066
3067 * lisp.h (init_weak_hash_tables, syms_of_font)
3068 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3069 (remove_hash_entry): Don't declare.
3070 * eval.c (maybe_call_debugger): Make static and move before use.
3071 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3072 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3073 * xterm.h (x_set_frame_alpha): Declare.
3074
30752008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3076
3077 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3078 (create_menus): Connect selection-done to menu_nav_ended.
3079
30802008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3081
3082 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3083 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3084 parameter with read of 'alpha' one.
3085 (Qns_frame_parameter): Remove.
5582fbc7 3086 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3087 (next-selection-coding-system, Vselection_coding_system)
3088 (Vnext_selection_coding_system): Drop.
3089
30902008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3091
3092 * nsfns.m (do-applescript, do_applescript): Rename to
3093 ns-do-applescript, ns_do_applescript, and move within file.
3094
30952008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3096
3097 Remove support for Mac Carbon.
3098 * mactoolbox.c:
3099 * macterm.h:
3100 * macterm.c:
3101 * macselect.c:
3102 * macmenu.c:
3103 * macgui.h:
3104 * macfns.c:
3105 * mac.c: Remove file.
3106 * s/darwin.h:
3107 * m/intel386.h:
3108 * xfaces.c:
3109 * xdisp.c:
3110 * window.c:
3111 * tparam.c:
3112 * termhooks.h:
3113 * termcap.c:
3114 * term.c:
3115 * syssignal.h:
3116 * sysselect.h:
3117 * sysdep.c:
3118 * process.c:
3119 * lread.c:
3120 * lisp.h:
3121 * keyboard.c:
3122 * image.c:
3123 * fringe.c:
3124 * frame.h:
3125 * frame.c:
3126 * fontset.c:
3127 * font.h:
3128 * font.c:
3129 * fns.c:
3130 * fileio.c:
3131 * emacs.c:
3132 * dispnew.c:
3133 * dispextern.h:
3134 * config.in:
3135 * atimer.c:
2ae37cf0 3136 * Makefile.in: Remove code for Carbon.
aac0c6e3 3137
f0131492 31382008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
3139
3140 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
3141
31422008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3143
3144 * macterm.h (kCGBitmapByteOrder32Host): New define for
3145 non-universal SDKs.
3146
3147 * image.c (mac_create_cg_image_from_image, image_load_image_io)
3148 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3149
3150 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
3151 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3152
31532008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
3154
3155 * w32inevt.c: Include dispextern.h.
3156
31572008-07-26 Andreas Schwab <schwab@suse.de>
3158
3159 * print.c (print_object): Fix off-by-one in last change.
3160
31612008-07-25 Juanma Barranquero <lekktu@gmail.com>
3162
3163 * term.c (syms_of_term): Don't initialize default_orig_pair,
3164 default_set_foreground and default_set_background on Windows.
3165
31662008-07-25 Jason Rumney <jasonr@gnu.org>
3167
3168 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
3169 ScriptItemize. Clean up return value checking. Remove unused
3170 variables.
3171 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
3172 shaping engine.
3173
3174 * w32font.c (w32font_has_char): Handle the case where we can't
3175 determine the script for a character.
3176
31772008-07-25 Chong Yidong <cyd@stupidchicken.com>
3178
3179 * term.c (syms_of_term): Initialize default_orig_pair,
3180 default_set_foreground, and default_set_background.
3181
3182 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3183 clash (bug#86).
3184 (getloadavg): Callers changed.
3185
3186 * image.c (svg_load_image): Fix last change.
3187 (svg_load_image): Use rsvg_handle_get_dimensions to check that
3188 image size is valid. Use g_object_unref instead of deprecated
3189 rsvg_handle_free to free rsvg handle.
3190 (x_from_xcolors): Don't initialize pixmap (silence compiler).
3191
31922008-07-25 Jason Rumney <jasonr@gnu.org>
3193
3194 * w32font.c (w32font_encode_char): Encode characters outside BMP as
3195 surrogates before looking up glyph index.
3196 (w32font_text_extents): Encode as surrogates if falling back to
3197 functions that need UTF-16 wide chars.
3198
3199 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
3200 BMP as surrogates before looking up glyph index.
3201
32022008-07-25 Chong Yidong <cyd@stupidchicken.com>
3203
3204 * image.c (svg_load_image): Check for failure in return value of
3205 rsvg_handle_get_pixbuf. Free rsvg handle when done.
3206
32072008-07-25 Jason Rumney <jasonr@gnu.org>
3208
3209 * w32font.c (Fx_select_font): Reverse sense of second arg.
3210
32112008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
3212
3213 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
3214 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
3215
3216 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
3217 (PURESIZE): Use it.
3218
32192008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3220
3221 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
3222 * m/alpha.h (TEXT_END):
3223 * m/ibmrs6000.h (TEXT_END):
3224 * m/macppc.h (TEXT_END):
3225 * s/darwin.h (TEXT_END):
3226 * s/msdos.h (TEXT_END): Remove, unused.
3227 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
3228 * s/cygwin.h: Remove comment.
3229
3230 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
3231 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
3232 * m/intel386.h (DOT_GLOBAL_START):
3233 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
3234 (USG): Remove, file not used on USG platforms.
3235
3236 * Makefile.in (HAVE_X11): Remove empty #else.
3237
32382008-07-24 Andreas Schwab <schwab@suse.de>
3239
3240 * fileio.c (Finsert_file_contents): Properly adjust undo list
3241 after format conversion.
3242
32432008-07-24 Jan Djärv <jan.h.d@swipnet.se>
3244
3245 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
3246 (menu_nav_ended): Remove.
3247 (create_menus): Remove signal connect for menu_nav_ended.
3248 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
3249 create_menus.
3250 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
3251
32522008-07-23 Jason Rumney <jasonr@gnu.org>
3253
3254 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
3255 with opened font.
3256 (w32font_open): Set font type to gdi.
3257
3258 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
3259
32602008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
3261
3262 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
3263 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
3264 defines it.
3265 * unexec.c (ADDR_CORRECT): Define unconditionally.
3266
3267 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
3268
3269 * unexec.c: Remove code depending on !COFF and USG, the file is
3270 not used for such systems.
3271
3272 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
3273 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
3274 (LD_SWITCH_SYSTEM_1): Remove, update users.
3275
3276 * s/darwin.h (DATA_END):
3277 * m/intel386.h (DATA_END):
3278 * m/ibmrs6000.h (DATA_END):
3279 * m/alpha.h (DATA_END): Remove, unused.
3280
3281 * config.in: Regenerate.
3282 * s/ms-w32.h (subprocesses): Define unconditionally.
3283 * s/template.h (subprocesses): Update comment.
3284 * s/vms.h (subprocesses):
3285 * s/usg5-4.h (subprocesses):
3286 * s/hpux10-20.h (subprocesses):
3287 * s/gnu-linux.h (subprocesses):
3288 * s/cygwin.h (subprocesses):
3289 * s/bsd-common.h (subprocesses):
3290 * s/aix4-2.h (subprocesses):
3291 * s/darwin.h (subprocesses): Do not define, defined by default now.
3292
3293 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
3294 Remove all references.
3295 (temacs): Add GNUstep specific ld flags.
3296
3297 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
3298 similarly to what X does.
3299
33002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3301
3302 * nsfns.m (x-list-fonts): Remove.
3303 (syms_of_nsfns): Drop the x-list-fonts declaration.
3304 * nsterm.m: Get rid of remaining "//" comments.
3305
33062008-07-22 Chong Yidong <cyd@stupidchicken.com>
3307
3308 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
3309
3310 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
3311 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
3312 (Fns_own_selection_internal, Fx_disown_selection_internal)
3313 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
3314
3315 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
3316 ... */' style of docstrings. Doc fixes.
3317
33182008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3319
3320 * terminfo.c (UP, BC, PC): Undo previous change.
3321
3322 * nsfns.m: Rename ns prefixed functions/variables to the
3323 corresponding x versions. Update references.
3324
33252008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3326
3327 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
3328
33292008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3330
3331 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
3332 Remove forwarding functions.
3333 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
3334 non-static.
3335 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
3336 non-static.
3337 (ns_frame_parm_handlers): Use the new names.
3338 (syms_of_nsfns): Move to the end of file.
3339
3340 * nsterm.m (syms_of_nsterm): Move to the end of file.
3341
3342 * dispnew.c (init_display): Remove code for X10.
3343
33442008-07-22 Jason Rumney <jasonr@gnu.org>
3345
3346 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
3347 bare drive.
3348
33492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3350
3351 * nsterm.m (syms_of_nsterm): Remove debugging println.
3352
33532008-07-22 David Reitter <david.reitter@gmail.com>
3354
3355 * nsfns.m (do_applescript, F_do_applescript): NS version of the
3356 Carbon implementation of the same functionality: execute arbitrary
3357 AppleScript code.
3358
33592008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3360
3361 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
3362 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
3363 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3364 (Fx_display_mm_height, Fx_display_mm_width)
3365 (Fx_display_backing_store, Fx_display_visual_class)
3366 (Fx_display_save_under, Fx_open_connection)
3367 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
3368 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
3369 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3370 (Fx_display_pixel_width, Fx_display_pixel_height)
3371 (Fx_display_usable_bounds, Fx_display_planes)
3372 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
3373 ... */' style of docstrings.
3374
33752008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
3376
3377 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
3378 on this platform.
3379 (mips):
3380 * m/iris4d.h (mips): Do not define.
3381 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
3382
3383 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
3384
3385 * image.c:
3386 * nsfns.m:
3387 * nsselect.m:
3388 * nsterm.h:
3389 * nsterm.m: Rename ns prefixed functions/variables to the
3390 corresponding x versions. Update references.
3391
3392 * m/ibms390x.h (NO_REMAP): Do not undefine.
3393
3394 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
3395
33962008-07-21 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
3399 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
3400 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
3401 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
3402 (Fns_display_mm_height, Fns_display_mm_width)
3403 (Fns_display_backing_store, Fns_display_visual_class)
3404 (Fns_display_save_under, Fns_open_connection)
3405 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
3406 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
3407 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3408 (Fns_display_pixel_width, Fns_display_pixel_height)
3409 (Fns_display_usable_bounds, Fx_display_planes)
3410 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
3411
34122008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3413
3414 * print.c (print_object): Check print_depth before searching for
3415 circularities.
3416
34172008-07-21 Michael Albinus <michael.albinus@gmx.de>
3418
3419 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
3420 only sprintf.
3421
34222008-07-21 Kenichi Handa <handa@m17n.org>
3423
3424 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
3425
34262008-07-20 Andreas Schwab <schwab@suse.de>
3427
3428 * syntax.c (find_start_pos, find_start_value)
3429 (find_start_value_byte, find_start_begv, find_defun_start)
3430 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
3431
34322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3433
3434 * s/sol2-3.h: Insert contents of s/sol2.h.
3435 (LD_SWITCH_SYSTEM): Remove redundant definition.
3436 * s/sol2.h: Remove, unused.
3437
34382008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3439
3440 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
3441
34422008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3443
3444 * Makefile.in (ns_appdir): Fix typo in find command.
3445
34462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3447
3448 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
3449
3450 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
3451 added not supported anymore.
3452
3453 * s/usg5-4-2.h (LIBS_SYSTEM):
3454 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
3455
3456 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3457 * s/lynxos.h (GETPGRP_NO_ARG):
3458 * s/hpux10-20.h (NO_SIOCTL_H):
3459 * s/gnu.h (GETPGRP_NO_ARG):
3460 * s/gnu-linux.h (NO_SIOCTL_H):
3461 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3462 * s/cygwin.h (GETPGRP_NO_ARG):
3463 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
3464 (C_DEBUG_SWITCH): Remove duplicate definition.
3465
3466 * m/ibms390.h: Remove boilerplate comments.
3467
3468 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
3469
3470 * process.c (HAVE_SERIAL): Consolidate ifdefs.
3471 (wait_reading_process_output): Remove code for SunOS, platform not
3472 supported anymore. Use SOLARIS2 instead of sun.
3473
34742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3475
3476 * font.c (font_open_by_name): Under NS, default lface height to zero.
3477 (font_open_for_lface): Under NS, set size based on frame fontsize.
3478 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
3479 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
3480
34812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3482
3483 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
3484 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
3485 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
3486 YES/NO.
3487 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
3488 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
3489 * Makefile.in (clean): Clear out build destination dir.
3490
34912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3492
3493 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
3494 xterm, xselect.
3495 * lisp.h: Remove declaration of hash_remove.
3496 * nsgui.h: Remove redefinitions of hash_remove.
3497 * fns.c (hash_remove): Rename to hash_remove_from_table.
3498
34992008-07-19 Seiji Zenitani <zenitani@mac.com>
3500
3501 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
3502 strdup() the family UTF8String before modifying it.
3503
35042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3505
3506 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
3507 NS_FACE_BACKGROUND with 0 instead of nil.
3508 * nsfont.m (nsfont_draw): Same.
3509
35102008-07-19 Chong Yidong <cyd@stupidchicken.com>
3511
3512 * nsfns.m (ns_set_background_color): Fix crash.
3513
35142008-07-18 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
3517
35182008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3519
3520 * puresize.h (BASE_PURESIZE): Increase to 1240000.
3521
35222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3523
3524 * gtkutil.c: Include <config.h> instead of "config.h".
3525
3526 * lisp.h (Foverlay_buffer): Add EXFUN.
3527
3528 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
3529 child process to complete child_setup. Undo 2005-09-21 change.
3530
3531 * s/darwin.h: Mention setsid after vfork.
3532
35332008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3534
3535 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
3536 Depend on macgui.h.
3537
3538 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
3539 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
3540
3541 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
3542 and f19.
3543 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
3544
3545 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3546 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3547 Remove enumerators.
3548
3549 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
3550 Check if FACE_FROM_ID returns NULL.
3551
35522008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
3553
3554 * w32inevt.c (change_frame_size): Remove extern declaration.
3555 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
3556 change_frame_size.
3557
35582008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3559
3560 * getloadavg.c: Revert last change (2008-07-15).
3561
35622008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3563
3564 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
3565 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
3566 from configure.
3567
35682008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
3569
3570 * s/sol2.h:
3571 * s/sol2-4.h: Reorganize conditionals.
3572
3573 * ecrt0.c: Remove code depending on m68000, not used anymore.
3574
3575 * fns.c (hash_remove): Make static.
3576 * lisp.h (hash_remove): Don't prototype.
3577
3578 * m/ibmrs6000.h:
3579 * m/ibms390x.h:
3580 * m/macppc.h: Remove boilerplate comments.
3581
3582 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
3583 Solaris, which does not need them.
3584
3585 * m/vax.h: Remove comments about unsupported systems.
3586
3587 * s/darwin.h: Reorganize ifdefs.
3588
35892008-07-17 Andreas Schwab <schwab@suse.de>
3590
3591 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
3592
35932008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 Use SDATA. Follow coding convention of placing operators at
3596 beginning of next line rather than end of previous line, and placing
3597 spaces around infix operators.
3598
3599 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
3600 in case it was defined already.
3601 USE @GNUSTEP_MAKEFILES@ rather than envvars.
3602 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
3603 ns_default.
3604 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
3605 Lisp_Objects.
3606 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
3607 (ns_defined_color, ns_color_to_lisp): Declare.
3608 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
3609 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
3610 it's accepted even with USE_LISP_UNION_TYPE.
3611 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
3612 (update_frame_tool_bar): Remove apparently obsolete tests for
3613 non-integerness of f->tool_bar_lines.
3614 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
3615 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
3616 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
3617 (nsfont_open): Don't confuse NULL for Qnil.
3618 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
3619 * menu.h (find_and_call_menu_selection):
3620 * menu.c (find_and_call_menu_selection): Use just int for vector size.
3621 (find_and_return_menu_selection): Always return something.
3622 * frame.h: Include dispextern.h for Display_Info.
3623 (display_x_get_resource): Declare.
3624
36252008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
3626
3627 * syntax.c: Remove stdio.h include accidentally introduced in
3628 Emacs.app commit.
3629 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
3630 NS_IMPL_COCOA.
3631 * keyboard.c (handle_async_input, input_available_signal): Remove
3632 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
3633
36342008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3635
3636 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
3637 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
3638 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
3639 Use SDATA.
3640
3641 * keymap.c: Remove all NS-specific code.
3642 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
3643 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
3644 where_is_preferred_modifier, return a different value depending on how
3645 preferred is the binding.
3646 (where_is_internal): Adjust accordingly.
3647 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
3648 Adjust to new preferred_sequence_p.
3649 (syms_of_keymap): Declare `where-is-preferred-modifier'.
3650 * keyboard.c (parse_solitary_modifier): Not static any more.
3651 * keyboard.h (parse_solitary_modifier): Declare.
3652
36532008-07-16 Andreas Schwab <schwab@suse.de>
3654
3655 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
3656 of easymenu.
3657
36582008-07-16 Chong Yidong <cyd@stupidchicken.com>
3659
3660 * xdisp.c (move_it_in_display_line): Account for word wrap, so
3661 that we don't move off the line.
3662
36632008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3664
3665 * keyboard.c (Qsuper): Remove.
3666 (parse_menu_item): Don't call where_is_internal specially for NS.
3667
36682008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3669
3670 * s/gnu-linux.h: Remove boilerplate comments.
3671
3672 * m/alpha.h (__ELF__): Consolidate conditions.
3673
3674 * m/m68k.h (linux): Use GNU_LINUX instead.
3675 Remove boilerplate comments.
3676
3677 * m/intel386.h: Undo refactoring from previous change.
3678 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
3679 too, remove dead code.
3680 (linux): Use GNU_LINUX instead.
3681
36822008-07-16 Jason Rumney <jasonr@gnu.org>
3683
3684 * w32gui.h: Repeat 26 June changes lost by last change.
3685
36862008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3687
3688 * systty.h: Remove code for Aix on 386, unsupported platform.
3689
3690 * s/ms-w32.h: Remove boilerplate comments.
3691 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
3692
3693 * s/gnu-linux.h (TERM): Remove support.
3694 (HAVE_SYSVIPC): Remove, unused.
3695 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
3696 for this system.
3697
3698 * process.c: Remove support for IRIS, unused.
3699 Remove support for TERM, not relevant anymore.
3700
3701 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
3702 used with the definition.
3703
3704 * s/aix4-2.h (static): Do not undef.
3705
3706 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
3707 only used on Aix.
3708 (HAVE_SYSVIPC): Remove, unused.
3709
3710 * m/hp800.h (CANNOT_DUMP): Do not undef.
3711
3712 * m/alpha.h: Fix comment.
3713
3714 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
3715 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
3716 used by this configuration.
3717 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
3718 * unexec.c: Remove code depending on HPUX and
3719 USG_SHARED_LIBRARIES, not used with this file. Remove code
3720 depending on IRIS, unused. Remove if 0-ed code.
3721
3722 * s/template.h: Remove comments about static.
3723
3724 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
3725 Remove if 0-ed code.
3726 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
3727 were the same as the default.
3728 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
3729 Remove boilerplate comments.
3730 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
3731 (HAVE_SYSVIPC): Remove, unused.
3732 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
3733
3734 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3735 Remove boilerplate comments.
3736 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3737 Remove boilerplate comments.
3738 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3739 Remove boilerplate comments.
3740 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
3741
3742 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
3743 USG systems which do not use DATA_SEG_BITS.
3744 Refactor code. Remove boilerplate comments.
3745
3746 * m/ibms390.h:
3747 * m/m68k.h:
3748 * s/bsd-common.h:
3749 * s/cygwin.h:
3750 * s/darwin.h:
3751 * s/freebsd.h:
3752 * s/gnu.h:
3753 * s/msdos.h: Remove boilerplate comments.
3754
3755 * m/iris4d.h: Remove boilerplate comments and code for systems that
3756 do not use this file.
3757 (IRIS_4D): Remove, unused.
3758
3759 * m/mips.h: Remove boilerplate comments and code for systems that
3760 do not use this file.
3761 (SIGN_EXTEND_CHAR):
3762 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
3763 * unexmips.c: Remove file, unused.
3764
3765 * editfns.c (Fuser_full_name): Replace the only use of
3766 USER_FULL_NAME with its value.
3767 * config.in: Regenerate.
3768
37692008-07-16 David Reitter <david.reitter@gmail.com>
3770
3771 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
3772 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
3773
37742008-07-16 Glenn Morris <rgm@gnu.org>
3775
3776 * emacs.c (system-type): Doc fix.
3777
37782008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
3781 If the cache doesn't work, let's fix it, rather than work around it.
3782
37832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3784
3785 * Makefile.in: Correct additions for nsfont.o in last commit.
3786 * nsfont.m: New file (forgot last commit).
3787
37882008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3789
3790 * callproc.c (set_initial_environment): Initialize
3791 Vprocess_environment under CANNOT_DUMP (fixes crash when
3792 batch-compiling for bootstrap).
3793
37942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3795 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3796
3797 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
3798 fix crash due to different init order.
3799
38002008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3801
3802 Changes and additions for NeXTstep windowing system (Cocoa and
3803 GNUstep) support.
3804
3805 * Makefile.in:
3806 * config.in: Support defines and build commands for NS port.
3807 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
3808 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
3809 * dispextern.h: Include nsgui.h and add needed typedefs under NS
3810 windowing.
3811 (struct face): Add synth_ital field.
3812 * dispnew.c: Include nsterm.h when compiling under NS windowing.
3813 (init_display): Initialize Vinitial_window_system to "ns" when so
3814 compiled.
3815 * emacs.c: Include GSConfig.h when compiling under GNUstep.
3816 (display_arg): Use under NS.
3817 (main): Under NS, allocate autorelease pool and handle command line
3818 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
3819 (standard_args): Add NS-specific args.
3820 (shut_down_emacs): Shut down NS terminal if compiled under NS.
3821 * font.c (DEFAULT_ENCODING): New variable.
3822 (font_find_for_lface): Use it.
3823 (syms_of_font): Load syms_of_nsfont under NS.
3824 * font.h: Declare nsfont_driver when compiled under NS.
3825 * fontset.c: When compiling under NS, include nsterm.h.
3826 (fontset_from_font): Autoconstruct fontset under NS.
3827 * frame.c (various): Under NS, include nsterm.h, add Qns window system
3828 symbol, document and use it.
3829 (do_switch_frame): When for_deletion under Cocoa, add
3830 Fraise_frame(Qnil).
3831 (x_set_frame_parameters): Ensure font attribute changes are picked up.
3832 (x_get_arg): Allow "yes" and "no" as boolean values.
3833 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
3834 Qright under Cocoa.
3835 (focus-follows-mouse): Default to 0 under NS.
3836 * frame.h (enum output_method): Add output_ns.
3837 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
3838 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
3839 (FRAME_WINDOW_P): NS-specific definition.
3840 * fringe.c (max_used_fringe_bitmap): Make public.
3841 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
3842 (getloadavg): Use NeXT code under descendant OS's.
3843 * image.c (includes and header section, x_create_bitmap_from_data)
3844 (x_create_bitmap_from_file, free_bitmap_record, image_background)
3845 (image_background_transparent, x_clear_image_1)
3846 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
3847 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
3848 (x_to_xcolors, x_from_xcolors, x_disable_image)
3849 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
3850 other GUIs, including XPM support using code originally written for
3851 Carbon GUI.
3852 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
3853 using NS API.
3854 (image_ascent): Use font metrics macros instead of direct struct field
3855 access.
3856 * keyboard.c (includes): Add nsterm.h when compiling under NS.
3857 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
3858 Also, handle NS as GTK for menu bar purposes.
3859 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
3860 toolkit where they differ.
3861 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
3862 use cachelist, still needed under NS.
3863 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
3864 (struct widget_value): Define it here for menu.c.
3865 * keymap.c (includes): Include modifier internals.
3866 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
3867 NS.
3868 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
3869 support for preferring sequences using certain modifiers, specified by
3870 the FIRSTONLY argument.
3871 * lisp.h (hash_remove): Rename to avoid name clash when compiling
3872 under NS GNUstep implementation.
3873 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
3874 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
3875 * menu.c: Include nsterm.h under NS.
3876 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
3877 (free_menubar_widget_tree_value, update_submenu_strings)
3878 (find_and_call_menu_selection): Treat NS as X and NT.
3879 (find_and_return_menu_selection): New function, used for popup menus.
3880 * nsgui.h:
3881 * nsterm.h:
3882 * nsfns.m:
3883 * nsimage.m:
3884 * nsmenu.m:
3885 * nsselect.m:
3886 * nsterm.m: New files.
3887 * process.c (wait_reading_process_output): Under NS, call ns_select()
3888 instead of plain select().
3889 * syntax.c (char_quoted): Under NS, avoid a crash when called near
3890 beginning of buffer.
3891 * sysselect.h (init_process): Rename when compiling under Cocoa to
3892 avoid name conflict.
3893 * termhooks.h (display_info): Add ns_display_info to union.
3894 * terminal.c (Fterminal_live_p): Add ns to terminal types.
3895 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
3896 COCOA environment.
3897 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
3898 unexec() signature. (Note, this will dump, but the resulting file
3899 crashes; unexosx is used instead; keeping around for reference and
3900 possible aid in getting dump working under GNUstep.)
3901 * w32gui.h (button_type, widget_value): Remove definitions (now in
3902 keyboard.h).
3903 * window.c: Include nsterm.h when compiling under NS.
3904 * xdisp.c (includes): Include nsterm.h when compiling under NS.
3905 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
3906 other GUI windowing systems.
3907 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
3908 GTK.
3909 (x_consider_frame_title): Under NS, set icon type and frame
3910 modified-state indicator; use ns_set_name_as_filename() when using
3911 formatted title.
3912 (update_window_cursor): Make public when compiling under NS.
3913 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
3914 (hourglass_atimer, Vhourglass_delay
3915 * xfaces.c (header section, init_frame_faces, clear_font_table)
3916 (defined_color, unload_color, x_face_list_fonts)
3917 (prepare_face_for_display): Add NS support parallel to other GUIs.
3918 Emulate GCs like other non-X GUIs.
3919 (split_font_name): Don't lowercase font name under NS.
3920 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
3921 under NS.
3922 * s/darwin.h: Add support for compilation under NS.
3923
39242008-07-15 Jason Rumney <jasonr@gnu.org>
3925
3926 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
3927 (w32_show_hourglass): Rename from show_hourglass.
3928 (w32_hide_hourglass): Rename from hide_hourglass.
3929 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
3930 (Vhourglass_delay): Declare extern.
3931 (hourglass_started): Remove.
3932
3933 * xdisp.c (Vhourglass_delay): Remove static.
3934 (hourglass_started, start_hourglass, cancel_hourglass):
3935 Don't include these versions on WINDOWSNT.
3936
39372008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3938
3939 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
3940 variables (formerly in xfns.c).
3941 (show_hourglass, hide_hourglass): New prototypes (same).
3942 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
3943 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
3944 in xfns.c).
3945 (syms_of_xdisp): Declare/initialize display-hourglass,
3946 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
3947 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
3948 formerly in xfns.c.
3949 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3950 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3951 (start_hourglass, cancel_hourglass): Remove.
3952 (show_hourglass, hide_hourglass): Remove prototypes and static
3953 modifiers.
3954 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
3955 hourglass_atimer, hourglass_shown_p declaration/initialization.
3956 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3957 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3958 (start_hourglass, cancel_hourglass): Remove.
3959 (show_hourglass, hide_hourglass): Remove prototypes and static
3960 modifiers.
3961 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
3962 hourglass_atimer, hourglass_shown_p declaration/initialization.
3963 * w32fns.c (display_hourglass_p, Vhourglass_delay)
3964 (DEFAULT_HOURGLASS_DELAY): Remove.
3965 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
3966 hourglass_shown_p declaration/initialization.
3967
39682008-07-14 Jason Rumney <jasonr@gnu.org>
3969
3970 * w32fns.c (w32_get_arg): Remove wrapper function.
3971 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
3972 directly.
3973 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3974
39752008-07-14 Kenichi Handa <handa@m17n.org>
3976
3977 * xfont.c (xfont_open): Add workaround for X's bug.
3978
39792008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3980
3981 * fontset.c: Include <stdio.h> unconditionally.
3982
39832008-07-13 Michael Albinus <michael.albinus@gmx.de>
3984
3985 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
3986 for filtering.
3987
39882008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3989
3990 * s/vms.h: Use __GNUC__ instead of _GNUC_.
3991
3992 * m/macppc.h:
3993 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
3994
3995 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
3996 (SPECIAL_EMACS_INT):
3997 * m/ia64.h (SPECIAL_EMACS_INT):
3998 * m/amdx86-64.h (SPECIAL_EMACS_INT):
3999 * s/gnu.h (NLIST_STRUCT):
4000 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4001 * s/gnu-linux.h (LINUX):
4002 * s/msdos.h (HAVE_FACES):
4003 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4004
4005 * systty.h:
4006 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4007 anymore.
4008
40092008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4010
4011 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4012 always defined as int.
4013
4014 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4015 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4016 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4017 * s/freebsd.h (HAVE_WAIT_HEADER):
4018 * s/bsd-common.h (HAVE_UNION_WAIT):
4019 * s/aix4-2.h (HAVE_WAIT_HEADER):
4020 * m/mips.h (HAVE_UNION_WAIT):
4021 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4022 (COFF, static): Do not define, they are undefined later in the file.
4023
4024 * process.c (update_status): Don't use a union.
4025 (status_convert):
4026 (sigchld_handler): Use int instead of WAITTYPE.
4027
40282008-07-12 Chong Yidong <cyd@stupidchicken.com>
4029
4030 * indent.c (Fvertical_motion): Restore hscroll before moving to
4031 goal column.
4032
40332008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4034
4035 * lisp.h: Remove left over code.
4036
40372008-07-11 Andreas Schwab <schwab@suse.de>
4038
4039 * lisp.h: Fix logic in last change.
4040
4041 * menu.h: New file.
4042 * menu.c: Include it.
4043 * xmenu.c: Likewise.
4044 * Makefile.in: Update dependencies.
4045
40462008-07-11 Kenichi Handa <handa@m17n.org>
4047
4048 * fontset.c (fontset_from_font): Cancel the previous change.
4049
40502008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4051
4052 * lisp.h:
4053 * w32heap.c:
4054 * emacs.c:
4055 * alloc.c: Replace all references of NO_UNION_TYPE with
4056 USE_LISP_UNION_TYPE.
4057
4058 * m/xtensa.h (NO_UNION_TYPE):
4059 * m/vax.h (NO_UNION_TYPE):
4060 * m/template.h (NO_UNION_TYPE):
4061 * m/sparc.h (NO_UNION_TYPE):
4062 * m/mips.h (NO_UNION_TYPE):
4063 * m/macppc.h (NO_UNION_TYPE):
4064 * m/m68k.h (NO_UNION_TYPE):
4065 * m/iris4d.h (NO_UNION_TYPE):
4066 * m/intel386.h (NO_UNION_TYPE):
4067 * m/ibms390x.h (NO_UNION_TYPE):
4068 * m/ibms390.h (NO_UNION_TYPE):
4069 * m/ibmrs6000.h (NO_UNION_TYPE):
4070 * m/ia64.h (NO_UNION_TYPE):
4071 * m/hp800.h (NO_UNION_TYPE):
4072 * m/arm.h (NO_UNION_TYPE):
4073 * m/amdx86-64.h (NO_UNION_TYPE):
4074 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4075 defining it the same.
4076
40772008-07-10 Chong Yidong <cyd@stupidchicken.com>
4078
4079 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4080
40812008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4082
4083 * fileio.c:
4084 * sysdep.c
4085 * systty.h:
4086 * m/ibmrs6000.h:
4087 * m/iris4d.h:
4088 * s/aix4-2.h:
4089 * s/freebsd.h:
4090 * s/gnu-linux.h:
4091 * s/hpux10-20.h:
4092 * s/hpux11.h:
4093 * s/netbsd.h:
4094 * s/sol2-3.h:
4095 * s/sol2-4.h:
4096 * s/sol2.h:
4097 * s/usg5-4.h:
4098 * s/vms.h: Remove references to unused variables.
4099
41002008-07-10 Andreas Schwab <schwab@suse.de>
4101
4102 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
4103 pattern before matching the generic family.
4104
41052008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4106
4107 * unexec.c:
4108 * s/vms.h:
4109 * s/usg5-4-2.h:
4110 * s/sol2-5.h:
4111 * s/freebsd.h:
4112 * s/darwin.h: Remove dead code.
4113
4114 * m/template.h:
4115 * m/sparc.h:
4116 * m/mips.h:
4117 * m/m68k.h:
4118 * m/iris4d.h:
4119 * m/intel386.h:
4120 * m/ibms390x.h:
4121 * m/ibms390.h:
4122 * m/ia64.h:
4123 * m/hp800.h:
4124 * m/arm.h:
4125 * m/amdx86-64.h: Remove dead code and references to unused
4126 and compiler defined symbols.
4127
4128 * unexmips.c:
4129 * unexelf.c: Remove references to desupported systems.
4130
4131 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
4132
4133 * m/powermac.h: Remove boilerplate comments.
4134 (NO_REMAP): Remove unused definition.
4135
4136 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
4137 define them.
4138
41392008-07-10 Kenichi Handa <handa@m17n.org>
4140
4141 * xfont.c (xfont_open): Log the reason of failure.
4142
41432008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4144
4145 * fontset.c (fontset_get_font_group):
4146 * font.c (font_check_otf): Specify argument types.
4147
41482008-07-09 Kenichi Handa <handa@m17n.org>
4149
4150 * coding.c (detect_coding_utf_8): Set detect_info->found only when
4151 non-ASCII char is found.
4152
4153 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
4154 (reorder_font_vector): Change the arg preferred_family to font.
4155 Prefer the spec matching with font.
4156 (fontset_get_font_group): New function.
4157 (fontset_find_font): Change the format of an element of a realized
4158 fontset. Use fontset_get_font_group.
4159 (fontset_font): Try the current fontset, the default fontset, the
4160 fallbacks of the current fontset, and the fallbacks of the default
4161 fontset in this order.
4162 (face_for_char): Delete the shortcut to use the current font.
4163 (fontset_from_font): Don't set fonts for Latin in the fontset.
4164
4165 * font.h (font_make_object, font_match_p): Adjust prototypes.
4166
4167 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
4168
4169 * font.c (font_make_object): New arg entity and pixelsize.
4170 (font_check_otf_features, font_check_otf): New functions.
4171 (font_match_p): Check :lang, :script, and :otf properties.
4172
4173 * xfont.c (xfont_open): Adjust it for the change of
4174 font_make_object.
4175 (xfont_text_extents): Fix initial setting of metrics.
4176
4177 * ftfont.c (struct ftfont_info): New member index, delete member
4178 fc_charset_idx. Make the member order compatible with struct
4179 xftfont_info.
4180 (fc_charset_table): Change charset names to registry names.
4181 (ftfont_pattern_entity): Delete the args registry and
4182 fc_charset_idx. Change the value of :font-entity property
4183 to (FONTNAME . INDEX). Always set :registry property to
4184 `iso10646-1'.
4185 (struct ftfont_cache_data): New struct.
4186 (ftfont_lookup_cache): New arg for_face.
4187 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
4188 (ftfont_driver): Set the member otf_capability.
4189 (ftfont_get_charset): Adjust it for the change of
4190 fc_charset_table.
4191 (OTF_TAG_SYM): New macro.
4192 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
4193 for the change of fc_charset_table.
4194 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
4195 ftfont_pattern_entity. Add FC_INDEX to objset.
4196 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
4197 and ftfont_pattern_entity.
4198 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
4199 font_make_object, struct ftfont_info.
4200 (ftfont_has_char): Use ftfont_get_fc_charset.
4201 (ftfont_otf_features, ftfont_otf_capability): New functions.
4202 (ftfont_shape): Use ftfont_get_otf.
4203 (ftfont_text_extents): Fix initial setting of metrics.
4204
4205 * xftfont.c (struct xftfont_info): New member ft_size. Make the
4206 member order compatible with struct ftfont_info.
4207 (xftfont_open): Add FC_CHARSET to the pattern. Set
4208 xftfont_info->ft_size. Don't unlock the face. Check BDF
4209 properties if appropriate.
4210 (xftfont_close): Unlock the face.
4211 (xftfont_anchor_point, xftfont_shape): Deleted.
4212 (syms_of_xftfont): Don't set members anchor_point and shape of
4213 xftfont_driver.
4214
4215 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
4216 font_make_object.
4217
4218 * w32font.c (w32font_open): Adjust it for the change of
4219 font_make_object.
4220 (w32font_open_internal): Don't set properties of font_object here.
4221
42222008-07-08 Chong Yidong <cyd@stupidchicken.com>
4223
4224 * macfns.c (x_create_tip_frame):
4225 * w32fns.c (x_create_tip_frame):
4226 * xfns.c (x_create_tip_frame): Pass parameter argument to
4227 face-set-after-frame-default.
4228
4229 * xfaces.c (Finternal_merge_in_global_face): Save merged
4230 attributes for the default face back into the face vector.
4231
42322008-07-08 Andreas Schwab <schwab@suse.de>
4233
4234 * fontset.h: Declare fontset_from_font. Don't declare
4235 new_fontset_from_font and fontset_from_font_name.
4236 * xterm.c: Include "fontset.h".
4237 * Makefile.in (xterm.o): Update dependencies.
4238
42392008-07-08 Glenn Morris <rgm@gnu.org>
4240
4241 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
4242 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
4243
42442008-07-07 Chong Yidong <cyd@stupidchicken.com>
4245
4246 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
4247 (x_set_frame_parameters): Don't bind it.
4248
42492008-07-07 Juanma Barranquero <lekktu@gmail.com>
4250
4251 * w32fns.c (map_w32_filename): Declare extern.
4252
42532008-07-07 Jason Rumney <jasonr@gnu.org>
4254
4255 * w32term.c (WS_EX_LAYERED): Define if not already.
4256
42572008-07-06 Chong Yidong <cyd@stupidchicken.com>
4258
4259 * xfaces.c (set_font_frame_param): Don't try to set the font
4260 parameter if it is still unspecified in the lface.
4261
42622008-07-05 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
4265 face if it didn't already exist.
4266
4267 * xdisp.c (try_window_id): Give up if word-wrapping is on.
4268
42692008-07-05 Andreas Schwab <schwab@suse.de>
4270
4271 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
4272
42732008-07-05 Chong Yidong <cyd@stupidchicken.com>
4274
4275 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
4276 word-wrapping.
4277 (IT_DISPLAYING_WHITESPACE): New macro.
4278 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
4279 when word-wrapping. Simplify word-wrapping logic. Use correct
4280 pixel positions when saving copies of the iterator.
4281 (display_line): Use proper wrap point if the last character on a
4282 line was preceded by whitespace.
4283
42842008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
4287
42882008-07-04 Kenichi Handa <handa@m17n.org>
4289
4290 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
4291
4292 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
4293
42942008-07-02 Jason Rumney <jasonr@gnu.org>
4295
4296 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 4297 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
4298
4299 * xdisp.c (next_element_from_display_vector): Move assignment out
4300 of if statement.
4301
43022008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
4303
4304 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
4305
4306 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
4307 (syms_of_fileio): Initialize and export them.
4308 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
4309
4310 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
4311 (Fsystem_move_file_to_trash): New function.
4312 (syms_of_w32fns): Export it to lisp.
4313
43142008-07-01 Jason Rumney <jasonr@gnu.org>
4315
4316 * w32font.c (w32font_text_extents): Don't count overhang as part
4317 of width.
4318
43192008-06-30 Miles Bader <miles@gnu.org>
4320
4321 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
4322 Add `avoid_cursor_p' field.
4323
4324 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
4325 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
4326 (append_glyph, append_composite_glyph, produce_image_glyph)
4327 (append_stretch_glyph): Initialize avoid_cursor_p.
4328 (get_it_property): Rename from `get_line_height_property'.
4329 (x_produce_glyphs): Use get_it_property.
4330 (handle_line_prefix, push_display_prop): New functions.
4331 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
4332 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
4333 New variables.
4334 (syms_of_xdisp): Initialize them.
4335
43362008-06-30 Kenichi Handa <handa@m17n.org>
4337
4338 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
4339 XftDefaultSubstitute (they are called in XftFontMatch).
4340 (xftfont_open): Fix args to ftfont_font_format.
4341
4342 * ftfont.c (fc_charset_table): New member lang.
4343 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 4344 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
4345 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
4346 (ftfont_open): Fix args to ftfont_font_format.
4347 (ftfont_font_format): New arg filename.
4348
43492008-06-30 Chong Yidong <cyd@stupidchicken.com>
4350
4351 * xfaces.c (Finternal_merge_in_global_face): If default face was
4352 modified, realize it again. Update the font face attribute.
4353
43542008-06-29 Jason Rumney <jasonr@gnu.org>
4355
4356 * w32term.c (x_set_frame_alpha): Fix logic.
4357
43582008-06-29 Kenichi Handa <handa@m17n.org>
4359
4360 * fontset.c (Finternal_char_font): Return font-object instead of
4361 font-name.
4362
4363 * composite.c (get_composition_id): Fix the width calculation for TAB.
4364
43652008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
4366
4367 * indent.c (Fvertical_motion): Properly handle float column arg.
4368
43692008-06-28 Jason Rumney <jasonr@gnu.org>
4370
4371 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
4372 (pfnSetLayeredWindowAttributes): New function pointer.
4373 (w32_initialize): Initialize it when supported.
4374 (x_set_frame_alpha): New function.
4375
4376 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
4377 (w32_frame_parm_handlers): Set alpha handler.
4378
4379 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
4380
43812008-06-27 Jason Rumney <jasonr@gnu.org>
4382
4383 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
4384 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
4385 (w32_to_x_charset, x_to_w32_charset)
4386 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4387 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4388 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4389 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4390 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4391 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4392 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
4393 (Qw32_charset_unicode): Remove.
4394 (syms_of_w32fns): Update for above changes.
4395
4396 * w32font.c (w32_to_x_charset, x_to_w32_charset)
4397 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4398 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4399 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4400 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4401 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4402 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4403 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
4404 (syms_of_w32font): Update for above changes.
4405
44062008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4407
4408 * s/usg5-4.h: Fix previous change: keep the correct branch of a
4409 removed #if.
4410 (USG_SHARED_LIBRARIES): Remove duplicate definition.
4411
44122008-06-26 Juanma Barranquero <lekktu@gmail.com>
4413 Eli Zaretskii <eliz@gnu.org>
4414
4415 * makefile.w32-in (LOCAL_FLAGS):
4416 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
4417
4418 * sysdep.c (_spawnlp, _getpid):
4419 Declare with explicit _cdecl instead of _CRTAPI1.
4420
4421 * editfns.c (Fget_internal_run_time):
4422 Check for WINDOWSNT with #ifdef, not #if.
4423
44242008-06-26 Jason Rumney <jasonr@gnu.org>
4425
4426 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
4427
4428 * w32term.c (x_draw_glyph_string_foreground)
4429 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
4430 Use FONT_HANDLE macro.
4431 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
4432
4433 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4434 (uniscribe_encode_char): Use FONT_HANDLE macro.
4435
4436 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
4437 (w32font_text_extents): Use precast w32_font.
4438 (w32font_close): Free cached metrics.
4439 (w32font_open_internal): Allocate space for name on stack.
4440
44412008-06-26 Chong Yidong <cyd@stupidchicken.com>
4442
4443 * xdisp.c (extend_face_to_end_of_line): Fix last change.
4444
44452008-06-26 Jason Rumney <jasonr@gnu.org>
4446
4447 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
4448 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
4449
44502008-06-26 Juanma Barranquero <lekktu@gmail.com>
4451
4452 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
4453
44542008-06-26 Jason Rumney <jasonr@gnu.org>
4455
4456 * w32bdf.c, w32bdf.h: Remove obsolete files.
4457
4458 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
4459
4460 * w32gui.h: Don't include w32bdf.h.
4461 (XCharStruct, enum w32_char_font_type, W32FontStruct):
4462 Remove obsolete font support.
4463
4464 * w32font.h (struct w32font_info): Remove compat_w32_font.
4465 Add hfont member.
4466 (FONT_COMPAT): Remove obsolete macro.
4467
4468 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
4469 (w32font_encode_char, w32font_text_extents): Use new hfont member.
4470 (w32font_open_internal): Remove compat code. Set new hfont member.
4471 (Fx_select_font): Use new hfont member.
4472
4473 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4474 (uniscribe_encode_char): Use new hfont member.
4475
4476 * w32term.c (x_draw_glyph_string_foreground)
4477 (x_draw_composite_glyph_string_foreground): Use new hfont member.
4478 (x_draw_glyph_string): Use metrics in w32font_info.
4479
44802008-06-26 Kenichi Handa <handa@m17n.org>
4481
4482 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
4483
44842008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
4485
4486 * unexnext.c:
4487 * m/ews4800.h:
4488 * m/hp9000s300.h:
4489 * m/ibm370aix.h:
4490 * m/mips-siemens.h:
4491 * m/ncr386.h:
4492 * m/next.h:
4493 * m/pmax.h:
4494 * m/powerpcle.h:
4495 * m/tandem-s2.h:
4496 * s/386bsd.h:
4497 * s/bsd386.h:
4498 * s/bsd4-1.h:
4499 * s/bsd4-2.h:
4500 * s/bsdos2-1.h:
4501 * s/bsdos2.h:
4502 * s/bsdos3.h:
4503 * s/bsdos4.h:
4504 * s/nextstep.h:
4505 * s/ultrix4-3.h:
4506 * s/usg5-0.h:
4507 * s/usg5-2-2.h:
4508 * s/usg5-2.h:
4509 * s/usg5-4-3.h:
4510 * s/ux4800.h:
4511 * s/uxpds.h:
4512 * s/uxpv.h: Remove support for obsolete systems.
4513 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 4514 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
4515 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4516 Remove, insert contents in s/aix4-2.h.
4517 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4518 * s/bsd4-3.h: Rename to ...
4519 * s/bsd-common.h: ... this.
4520 * data.c:
4521 * doc.c:
4522 * ecrt0.c:
4523 * emacs.c:
4524 * fileio.c:
4525 * floatfns.c:
4526 * keyboard.c:
4527 * mem-limits.h:
4528 * print.c:
4529 * process.c:
4530 * sysdep.c:
4531 * syssignal.h:
4532 * systty.h:
4533 * syswait.h:
4534 * term.c:
4535 * unexec.c:
4536 * unexelf.c:
4537 * unexhp9k800.c:
4538 * m/hp800.h:
4539 * m/ibmrs6000.h:
4540 * m/mips.h:
4541 * m/vax.h:
4542 * s/darwin.h:
4543 * s/freebsd.h:
4544 * s/gnu.h:
4545 * s/ms-w32.h:
4546 * s/msdos.h:
4547 * s/netbsd.h:
4548 * s/template.h: Remove references to obsolete variables.
4549
4550 * Makefile.in: Add dependencies for all unexec files.
4551 (admindir): Remove unused variable.
4552 (UNEXEC_SRC): Remove references.
4553
45542008-06-25 Chong Yidong <cyd@stupidchicken.com>
4555
4556 * xfns.c (x_default_font_parameter): If Xft is available, first
4557 try Monospace-12 for the default font.
4558
45592008-06-25 Jason Rumney <jasonr@gnu.org>
4560
4561 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
4562
45632008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
4564
4565 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
4566
4567 * buffer.c (syms_of_buffer): Remove default-word-wrap.
4568
45692008-06-25 Juanma Barranquero <lekktu@gmail.com>
4570
4571 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
4572 <scroll-conservatively>: Fix typo in docstring.
4573
4574 * xselect.c (Fx_send_client_event): Doc fix.
4575
45762008-06-25 Kenichi Handa <handa@m17n.org>
4577
4578 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
4579
4580 * font.c (font_parse_fcname): Remove unused variables.
4581 (font_sort_entites): Delete the arg SPEC. Caller changed.
4582 Fix for the case of ! best_only.
4583 (font_delete_unmatched): Check DPI and AVGWIDTH too.
4584
4585 * lisp.h (Fstring_to_unibyte): EXFUN it.
4586
4587 * character.h (str_to_unibyte): Extern it.
4588
4589 * character.c (str_to_unibyte): New function.
4590
4591 * fns.c (Fstring_to_unibyte): New function.
4592 (syms_of_fns): Defsubr it.
4593
45942008-06-24 Kenichi Handa <handa@m17n.org>
4595
4596 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
4597 DPI too.
4598 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
4599
46002008-06-24 Andreas Schwab <schwab@suse.de>
4601
4602 * Makefile.in (${lispsource}loaddefs.el): Rename from
4603 ../lisp/loaddefs.el.
4604 (bootstrap-clean): Do what distclean does but don't remove
4605 Makefile.
4606 (distclean): Depend on bootstrap-clean and remove Makefile.
4607
46082008-06-24 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * buffer.h (struct buffer): New member word_wrap.
4611
4612 * buffer.c (syms_of_buffer): New variables default-word-wrap and
4613 word-wrap.
4614 (init_buffer_once): Initialize them.
4615
4616 * dispextern.h (struct it): Replace bool truncate_lines_p with a
4617 line_wrap enum possessing three possible values.
4618
4619 * termopts.h: Replace truncate_partial_width_windows with
4620 Vtruncate_partial_width_windows.
4621
4622 * dispnew.c (direct_output_for_insert): Avoid direct output when
4623 inserting a space with word wrap on.
4624
4625 * indent.c (compute_motion): Obey integer values of
4626 truncate-partial-width-windows.
4627
4628 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
4629 replacing truncate_partial_width_windows.
4630 (init_iterator): If Vtruncate_partial_width_windows is an integer,
4631 truncate only if the window width is below that integer.
4632 (start_display, resize_mini_window, produce_stretch_glyph)
4633 (display_string, move_it_in_display_line_to): Use line_wrap.
4634 (back_to_previous_visible_line_start, reseat_1): Reset
4635 string_from_display_prop_p.
4636 (display_line): Extend default face to end of line when wrapping.
4637
46382008-06-24 Kim F. Storm <storm@cua.dk>
4639
4640 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
4641 to wrap continued lines at word boundaries.
4642
46432008-06-24 Jason Rumney <jasonr@gnu.org>
4644
4645 * font.c (Ffont_face_attributes): Multiply pixel size before point
4646 conversion to avoid multiplying rounding error.
4647
46482008-06-23 Jason Rumney <jasonr@gnu.org>
4649
4650 * w32term.c (x_draw_glyph_string_background)
4651 (x_draw_glyph_string): Remove old bdf font code.
4652
4653 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
4654
46552008-06-22 Kenichi Handa <handa@m17n.org>
4656
4657 * font.c (font_find_for_lface): Try the adstyle specified in
4658 the property of LFACE_FONT of LFACE (if any).
4659
46602008-06-21 Seiji Zenitani <zenitani@mac.com>
4661 Ryo Yoshitake <ryo@shiftmode.net>
4662
4663 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
4664
46652008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
4666
4667 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
4668 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
4669 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
4670 (witness-emacs): Remove.
4671 (lisp, shortlisp): Move loaddefs.el earlier.
4672 (mostlyclean): Forget about witness-emacs.
4673
46742008-06-22 Glenn Morris <rgm@gnu.org>
4675
4676 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
4677 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
4678
46792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4680
4681 * Makefile.in (PRECOMP): Remove.
4682 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
4683 (witness-emacs): Run `compile-first'.
4684 (.el.elc): Use the new compile-onefile target.
4685
46862008-06-21 Kenichi Handa <handa@m17n.org>
4687
4688 * xftfont.c (xftfont_open): Handle QCembolden only when
4689 FC_EMBOLDEN is defined.
4690
46912008-06-21 Andreas Schwab <schwab@suse.de>
4692
4693 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
4694 (.el.elc): Likewise.
4695
46962008-06-21 Miles Bader <miles@gnu.org>
4697
4698 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
4699 build dir, not the lisp source dir.
4700
47012008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4702
4703 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
4704 (bootstrapclean): Remove.
4705 (.el.elc): New rule.
4706 (PRECOMP): New var.
4707 (../lisp/subdirs.el): Remove.
4708 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
4709 (witness-emacs): New target.
4710 (mostlyclean): Remove witness-emacs as well.
4711 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
4712 Add witness-emacs dependency.
4713
47142008-06-20 Chong Yidong <cyd@stupidchicken.com>
4715
4716 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
4717 defined by the font.
4718
47192008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4720
4721 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
4722 (bootstrap-clean): New target that keeps TAGS around.
4723 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
4724 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
4725
47262008-06-20 Jason Rumney <jasonr@gnu.org>
4727
4728 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
4729 Remove obsolete font code.
4730
4731 * w32font.c (font_matches_spec): Use csb bitfield from font signature
4732 to determine language support.
4733
47342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4735
4736 * sysdep.c (cfsetspeed): New fun extracted from the code.
4737 (cfmakeraw): Move before first use.
4738
47392008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
4740
4741 * sysdep.c (cfmakeraw): Provide fallback implementation.
4742 (serial_configure): Provide fallback implementation of cfsetspeed.
4743
47442008-06-20 Kenichi Handa <handa@m17n.org>
4745
4746 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
4747 the pattern.
4748
4749 * fontset.c (fontset_from_font): Copy font_spec before changing
4750 the elements.
4751
4752 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
4753
47542008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4755
4756 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
4757 for explicit `font' parameters.
4758
4759 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
4760
47612008-06-19 Kenichi Handa <handa@m17n.org>
4762
4763 * frame.c: Include <ctype.h>.
4764 (x_set_font_backend): Allow spacing characters in the X resource
4765 for FontBackend.
4766
47672008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
4768
4769 * w32fns.c, xfns.c (Qfont_param): New var.
4770 (syms_of_w32fns): Initialize it.
4771 (x_default_font_parameter): Record explicit `font' into
4772 `font-parameter'.
4773
47742008-06-18 Kenichi Handa <handa@m17n.org>
4775
4776 * font.c (font_parse_xlfd): Fix previous change.
4777 (font_parse_fcname): Don't use :fc-unknown-spec.
4778 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
4779 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
4780 (font_add_log): Prepend the driver name to the resulting fonts.
4781
4782 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
4783 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
4784 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
4785
4786 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
4787 (QCembolden): New variables.
4788 (syms_of_xftfont): DEFSYM them.
4789 (xftfont_open): Call XftFontMatch. Don't trust the result of
4790 XftTextExtents8 if the pixel_size is less than 5.
4791
47922008-06-18 Andreas Schwab <schwab@suse.de>
4793
4794 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
4795 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
4796
47972008-06-18 Jason Rumney <jasonr@gnu.org>
4798
4799 * w32font.c (w32font_list, w32font_match): Add logging.
4800
4801 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
4802
48032008-06-17 Chong Yidong <cyd@stupidchicken.com>
4804
4805 * font.c (font_parse_fcname): Store divider characters for
4806 unknown-spec list. For known key symbols, intern using correct
4807 symbol name.
4808
48092008-06-17 Kenichi Handa <handa@m17n.org>
4810
4811 * xfaces.c (realize_default_face): If the frame is not on window
4812 system, set the fontset of face to nil.
4813
48142008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4815
4816 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
4817
48182008-06-16 Juanma Barranquero <lekktu@gmail.com>
4819
4820 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
4821 (build_font_name_from_vector): Delete externs.
4822
4823 * xfaces.c (struct font_name): Don't declare.
4824
48252008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4826
4827 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
4828
48292008-06-16 Chong Yidong <cyd@stupidchicken.com>
4830
4831 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
4832
48332008-06-16 Juanma Barranquero <lekktu@gmail.com>
4834
4835 * font.c (Ffont_spec): Fix usage in docstring.
4836 (Ffont_face_attributes): Doc fix.
4837
48382008-06-16 Andreas Schwab <schwab@suse.de>
4839
4840 * font.c (Ffont_face_attributes): Fix definition.
4841
48422008-06-16 Jason Rumney <jasonr@gnu.org>
4843
4844 * font.h (font_style_symbolic_from_value): Remove.
4845
4846 * font.c (font_style_symbolic_from_value): Remove.
4847 (font_style_symbolic): Revert to pre 2008-06-13 version.
4848
4849 * w32font.c (w32_to_fc_weight): New function.
4850 (w32font_full_name, logfont_to_fcname): Use it.
4851
48522008-06-16 Kenichi Handa <handa@m17n.org>
4853
4854 * font.c (font_check_object): Delete it.
4855 (font_clear_cache): Check if a font-object is alive.
4856 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
4857 font-object to nil.
4858 (font_close_object): Don't check FONT_CLOSE_OBJECT.
4859 (font_at): Don't call font_check_object.
4860 (Ffont_get): Return a symbol for :weight, :slant, and :width.
4861
48622008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
4863
4864 * puresize.h (BASE_PURESIZE): Increase to 1230000.
4865
48662008-06-16 Chong Yidong <cyd@stupidchicken.com>
4867
4868 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
4869
48702008-06-15 Chong Yidong <cyd@stupidchicken.com>
4871
4872 * font.c (font_parse_fcname): Only one decimal point.
4873 (font_unparse_fcname): Handle data in family and foundry indices
4874 as symbols, not strings.
4875 (font_unparse_gtkname, Ffont_face_attributes): New functions.
4876
4877 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
4878
4879 * font.h (font_unparse_gtkname): Add prototype.
4880
48812008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4882
4883 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
4884
48852008-06-15 Andreas Schwab <schwab@suse.de>
4886
4887 * font.c (font_update_drivers): Fix crash when no drivers match.
4888
48892008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
4890
4891 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
4892 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
4893
48942008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
4897
48982008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4899
4900 * process.c (Fserial_process_configure, Fprocess_send_eof):
4901 Use EQ to compare Lisp_Objects.
4902
49032008-06-13 Jason Rumney <jasonr@gnu.org>
4904
4905 * w32fns.c (Fw32_select_font): Remove old font API function.
4906
4907 * w32font.c (logfont_to_fcname): New function.
4908 (Fx_select_font): New font dialog function compatible with
4909 GTK/fontconfig version.
4910
4911 * font.c (font_style_symbolic_from_value): New function.
4912 (font_style_symbolic): Use it.
4913
4914 * font.h (font_style_symbolic_from_value): Declare new function.
4915
49162008-06-13 Juanma Barranquero <lekktu@gmail.com>
4917
4918 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
4919 <font-width-table>: Fix typos in docstrings.
4920
49212008-06-13 Daniel Engeler <engeler@gmail.com>
4922
4923 These changes add serial port access.
4924 * process.c: Add HAVE_SERIAL.
4925 (Fdelete_process, Fprocess_status, Fset_process_buffer)
4926 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
4927 (list_processes_1, select_wrapper, Fstop_process)
4928 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
4929 (status_notify): Modify to handle serial processes.
4930 [HAVE_SERIAL] (Fserial_process_configure)
4931 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
4932 New functions.
4933 * process.h (struct Lisp_Process): Add `type'.
4934 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
4935 New functions.
4936 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
4937 serial ports.
4938 (serial_open, serial_configure) New functions.
4939 * w32.h: Add FILE_SERIAL.
4940 (struct _child_process): Add ovl_read, ovl_write.
4941
49422008-06-13 Kenichi Handa <handa@m17n.org>
4943
4944 * dispextern.h (enum lface_attribute_index): New member
4945 LFACE_FOUNDRY_INDEX.
4946
4947 * font.c (font_score): Delete arg alternate_families. Check only
4948 weight, slant, width, and size. Ignore the difference of alias
4949 style symbols.
4950 (font_sort_entites): Adjust for the above change. Reflect the
4951 order of font-driver to scores.
4952 (font_list_entities): Don't check alternate_familes here.
4953 (font_clear_prop): Handle foundry.
4954 (font_update_lface): Don't parse "foundry-family" form here.
4955 Handle FONT_FOUNDRY_INDEX.
4956 (font_find_for_lface): Likewise. Handle alternate families here.
4957 If registry is nil, try iso8859-1 and ascii-0.
4958 (font_open_for_lface): Pay attention to size in ENTITY.
4959 (font_open_by_name): Simplify by calling font_load_for_lface.
4960 (free_font_driver_list): Delete it.
4961 (font_update_drivers): Preserve the order of backends.
4962 (syms_of_font): Setting of sort_shift_bits adjusted for the change
4963 of font_score and font_sort_entites.
4964 (font_update_sort_order): Likewise.
4965
4966 * xfaces.c (LFACE_FOUNDRY): New macro.
4967 (check_lface_attrs): Check foundry.
4968 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
4969 (merge_face_vectors): Check foundry.
4970 (merge_face_ref): Likewise.
4971 (Finternal_set_lisp_face_attribute): Likewise.
4972 (x_update_menu_appearance): Likewise.
4973 (Finternal_get_lisp_face_attribute): Likewise.
4974 (lface_hash): Likewise.
4975 (lface_same_font_attributes_p): Likewise.
4976 (x_supports_face_attributes_p): Likewise.
4977 (tty_supports_face_attributes_p): Likewise.
4978 (Finternal_set_alternative_font_family_alist): Intern strings.
4979 (Finternal_set_alternative_font_registry_alist): Downcase strings.
4980 (realize_default_face): Set LFACE_FOUNDRY (lface).
4981
4982 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
4983 font-driver at first.
4984
4985 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
4986
49872008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4988
4989 * lread.c (Fload): Use xfree, not free on saved_doc_string.
4990
49912008-06-12 Jim Meyering <meyering@redhat.com>
4992
4993 Make unexec_free handle NULL the same way free does.
4994 * unexmacosx.c (unexec_free): Ignore a NULL argument.
4995
49962008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
4997
4998 * character.h (CHAR_TO_BYTE_SAFE): New macro.
4999 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5000 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5001 (WEAK_ALIAS): Simplify.
5002 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5003 when searching a unibyte buffer.
5004
50052008-06-12 Chong Yidong <cyd@stupidchicken.com>
5006
5007 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5008
50092008-06-12 Juanma Barranquero <lekktu@gmail.com>
5010
5011 * w32font.c: Include ctype.h.
5012
50132008-06-11 Jason Rumney <jasonr@gnu.org>
5014
5015 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5016 misreported as space.
5017 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5018 as aliases for registry iso10646-1.
5019
50202008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5021
5022 * buffer.c (clone_per_buffer_values): Skip `name'.
5023
50242008-06-11 Chong Yidong <cyd@stupidchicken.com>
5025
5026 * font.c (font_parse_fcname): Fix last change; accept decimal
5027 points in font size.
5028
50292008-06-10 Jason Rumney <jasonr@gnu.org>
5030
5031 * w32uniscribe.c (add_opentype_font_name_to_list):
5032 Skip non unicode fonts.
5033
50342008-06-10 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * xfns.c (Fx_font_dialog): New function.
5037
5038 * gtkutil.c (xg_dialog_response_cb): Rename from
5039 xg_file_response_callback.
5040 (pop_down_dialog): Rename from pop_down_file_dialog.
5041 (xg_get_file_name): Callers changed.
5042 (xg_get_font_name): New function.
5043
5044 * gtkutil.h (xg_get_font_name): Insert prototype.
5045
50462008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5049 x_underline_minimum_display_offset.
5050 (syms_of_xdisp): Declare it here rather than in xterm.c.
5051 * dispextern.h (underline_minimum_offset): Declare it.
5052 * w32term.c (x_draw_glyph_string): Use it.
5053 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5054 (syms_of_xterm): Don't declare it any more.
5055 (x_draw_glyph_string): Adjust to the new name.
5056
50572008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5058
5059 * xterm.c (x_underline_minimum_display_offset): New var.
5060 (x_draw_glyph_string): Use it.
5061 (syms_of_xterm): Declare it.
5062
50632008-06-10 Chong Yidong <cyd@stupidchicken.com>
5064
5065 * font.c (font_parse_fcname): Accept GTK-style font names too.
5066
50672008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5068
5069 * dired.c (file_name_completion): Don't return t if the match is exact
5070 but with different capitalization.
5071 * minibuf.c (Ftry_completion): Simplify.
5072
5073 * window.c (Vwindow_point_insertion_type): New var.
5074 (set_window_buffer): Use it.
5075 (syms_of_window): Init and export it to Lisp.
5076
50772008-06-10 Kenichi Handa <handa@m17n.org>
5078
5079 * font.h (font_intern_prop): Prototype adjusted.
5080
5081 * font.c (font_intern_prop): New arg force_symbol.
5082 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5083 Adjust for the change of font_intern_prop.
5084
5085 * ftfont.c (ftfont_pattern_entity):
5086 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5087 (w32_registry):
5088 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5089 the change of font_intern_prop.
5090
50912008-06-09 Juanma Barranquero <lekktu@gmail.com>
5092
5093 * w32menu.c (digest_single_submenu): Declare extern.
5094
50952008-06-09 Jason Rumney <jasonr@gnu.org>
5096
5097 * w32term.c (x_make_frame_visible): Use alternate restore flags.
5098
5099 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
5100 (parse_single_submenu): Remove.
5101 (digest_single_submenu): Remove.
5102 (syms_of_w32menu): Don't initialise variables that have moved
5103 to menu.c.
5104 (set_frame_menubar): Sync with version in xmenu.c.
5105 (w32_menu_show): Sync with xmenu_show in xmenu.c.
5106
5107 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
5108 Make static again.
5109
51102008-06-09 Jason Rumney <jasonr@gnu.org>
5111
5112 Changes to w32 files related to the move of common menu code
5113 to menu.c on 2008-06-08 by Chong Yidong.
5114
5115 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
5116 defs to w32gui.h.
5117 (single_keymap_panes, push_menu_item, push_menu_pane):
5118 Make globally visible.
5119
5120 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
5121 (local_free, malloc_widget_value, free_widget_value)
5122 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
5123 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
5124 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
5125 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
5126 (menu_items, menu_items_allocated, menu_items_used)
5127 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
5128 (init_menu_items, finish_menu_items, discard_menu_items)
5129 (grow_menu_items, push_submenu_start, push_submenu_end)
5130 (push_left_right_boundary, push_menu_pane, push_menu_item)
5131 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
5132 (free_menubar_widget_tree_value, parse_single_submenu)
5133 (update_submenu_strings): Remove functions.
5134 (xmalloc_widget_value): Remove and declare extern.
5135
5136 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
5137 (OBJ1): Build it.
5138
5139 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
5140 (local_heap, local_alloc, local_free, malloc_widget_value)
5141 (free_widget_value): Define here.
5142
51432008-06-09 Kenichi Handa <handa@m17n.org>
5144
5145 * font.h (Qascii_0): Extern it.
5146
5147 * font.c (Qascii_0): New variable.
5148 (syms_of_font): DEFSYM it.
5149 (font_open_by_name): If the registry "iso8859-1" fails, try also
5150 "ascii-0".
5151
5152 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
5153
51542008-06-08 Kenichi Handa <handa@m17n.org>
5155
5156 * .gdbinit (xfont): New command.
5157
51582008-06-08 Andreas Schwab <schwab@suse.de>
5159
5160 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
5161 * Makefile.in (menu.o): Update dependencies.
5162
5163 * Makefile.in (obj): Always add menu.o.
5164 * emacs.c (main): Always call syms_of_menu.
5165 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
5166
51672008-06-08 Chong Yidong <cyd@stupidchicken.com>
5168
5169 * Makefile.in: Compile menu.c.
5170
5171 * lisp.h: Declare syms_of_menu.
5172
5173 * emacs.c (main): Call syms_of_menu.
5174
5175 * keyboard.h: Relocate platform-independent menu definitions from
5176 xmenu.c.
5177
5178 * menu.c: New file. Relocate platform-independent menu
5179 definitions from xmenu.c. Suggested by Adrian Robert.
5180
5181 * xmenu.c: Remove platform-independent menu definitions.
5182 (menu_items menu_items_inuse, menu_items_allocated)
5183 (menu_items_used, menu_items_n_panes)
5184 (menu_items_submenu_depth): Move to keyboard.h.
5185 (init_menu_items, finish_menu_items, unuse_menu_items)
5186 (discard_menu_items, restore_menu_items, save_menu_items)
5187 (grow_menu_items, push_submenu_start, push_submenu_end)
5188 (push_left_right_boundary, push_menu_pane, push_menu_item)
5189 (keymap_panes, single_keymap_panes, single_menu_item)
5190 (list_of_panes, list_of_items, find_and_call_menu_selection)
5191 (xmalloc_widget_value, free_menubar_widget_value_tree)
5192 (parse_single_submenu, digest_single_submenu)
5193 (update_submenu_strings): Move to menu.c.
5194
51952008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
5196
5197 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
5198
51992008-06-06 Miles Bader <miles@gnu.org>
5200
5201 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
5202 face, not frame default.
5203
52042008-06-05 Martin Rudalics <rudalics@gmx.at>
5205
5206 * window.c (pop_up_windows, pop_up_frames)
5207 (display_buffer_reuse_frames, Vpop_up_frame_function)
5208 (Vdisplay_buffer_function, Veven_window_heights)
5209 (Vspecial_display_buffer_names, Vspecial_display_regexps)
5210 (Vspecial_display_function, Vsame_window_buffer_names)
5211 (Vsame_window_regexps, split_height_threshold)
5212 (Vsplit_window_preferred_function): Move those vars to window.el.
5213 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
5214 (Fdisplay_buffer): Move those functions to window.el.
5215 (syms_of_window): Remove corresponding declarations.
5216 (display_buffer): New function.
5217 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
5218 * dispnew.c (Flast_nonminibuf_frame): New function.
5219 * buffer.c (Fpop_to_buffer): Move to window.el.
5220
52212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5222
5223 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
5224
52252008-06-05 Kenichi Handa <handa@m17n.org>
5226
5227 * coding.c (detect_coding): Fix previous change.
5228 (detect_coding_system): Likewise.
5229
52302008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5231
5232 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
5233
5234 * keymap.c (Vminibuffer_local_filename_must_match_map):
5235 Rename from Vminibuffer_local_must_match_filename_map.
5236 (syms_of_keymap):
5237 * minibuf.c (Fcompleting_read): Adjust accordingly.
5238 * commands.h: Rename declaration as well.
5239
52402008-06-05 Kenichi Handa <handa@m17n.org>
5241
5242 * font.c (Ffont_spec): Don't use font_parse_family_registry for
5243 family name.
5244 (Ffont_put): Likewise.
5245
5246 * fontset.c (fontset_find_font): Call font_open_for_lface with the
5247 current font-spec.
5248
5249 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
5250 is unspecified.
5251
5252 * xfaces.c (realize_x_face): If the font-related face attributes
5253 are the same as those of default face, realize a new fontset from
5254 default->fontset.
5255 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
5256
52572008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
5260 (move_it_in_display_line): New wrapper.
5261
5262 * window.c (window_scroll_pixel_based_preserve_x)
5263 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
5264 (window_scroll_pixel_based, window_scroll_line_based):
5265 Use them to preserve column positions.
5266 (syms_of_window): Initialize them.
5267
5268 * indent.c (Fvertical_motion): Extend first arg to allow passing an
5269 (HPOS . VPOS) pair.
5270
5271 * dispextern.h (move_it_in_display_line): Declare.
5272
52732008-06-05 Juanma Barranquero <lekktu@gmail.com>
5274
5275 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
5276 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
5277 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
5278
52792008-06-04 Juanma Barranquero <lekktu@gmail.com>
5280
5281 * window.c (Fset_window_parameter): Doc fix.
5282 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
5283
52842008-06-04 Joakim Verona <joakim@verona.se>
5285
5286 * window.h (struct window): Add new member window_parameters.
5287
5288 * window.c (Fwindow_parameters, Fwindow_parameter)
5289 (Fset_window_parameter): New defuns.
5290 (syms_of_window): Defsubr the new defuns.
5291 (make_window): Initialize window_parameters to nil.
5292
52932008-06-04 John Paul Wallington <jpw@pobox.com>
5294
5295 * eval.c (Fdefmacro): Doc fix.
5296
52972008-06-04 Kenichi Handa <handa@m17n.org>
5298
5299 * coding.c (detect_coding): Fix handling of coding->head_ascii.
5300 Be sure to call setup_coding_system when we find a proper coding system.
5301 (detect_coding_system): Fix handling of coding->head_ascii.
5302
53032008-06-03 Andreas Schwab <schwab@suse.de>
5304
5305 * font.c (font_prop_validate_spacing): Fix last change.
5306
53072008-06-03 Kenichi Handa <handa@m17n.org>
5308
5309 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
5310 (font_parse_fcname): Fix handling of unknown key.
5311
5312 * xfont.c (xfont_list): Try an alias.
5313
5314 * charset.c (char_charset): Return NULL if the arg charset_list is
5315 specified and C doesn't belong to any of them.
5316
53172008-06-02 Chip Coldwell <coldwell@redhat.com>
5318
5319 * font.c (font_pixel_size): Don't take cdr of an integer.
5320
53212008-06-02 Jim Meyering <meyering@redhat.com>
5322
5323 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
5324 * alloc.c (xfree): Return right away for a NULL arg.
5325 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
5326 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
5327 * mac.c (create_apple_event_from_event_ref): Likewise.
5328 (create_apple_event_from_drag_ref, cfstring_create_normalized):
5329 Likewise.
5330 * doprnt.c (doprnt1): Likewise.
5331 * frame.c (frame): Likewise.
5332 * keyboard.c (wipe_kboard): Likewise.
5333 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
5334 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
5335 * term.c (tty_default_color_capabilities, maybe_fatal)
5336 (delete_tty): Likewise.
5337 * w16select.c (string): Likewise.
5338 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
5339 * w32bdf.c (w32_free_bdf_font): Likewise.
5340 * w32fns.c (w32_unload_font): Likewise.
5341 * w32font.c (w32font_close): Likewise.
5342 * window.c (size_window): Likewise.
5343 * xselect.c (receive_incremental_selection): Likewise.
5344 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
5345 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
5346 * w32.c (stat): Likewise.
5347
5348 Remove useless if-before-free tests.
5349 * editfns.c (Fset_time_zone_rule): Likewise.
5350 * lread.c (nosuffix): Likewise.
5351 * ralloc.c (get_bloc): Likewise.
5352 * regex.c (reg_free): Likewise.
5353 * xftfont.c (xftfont_open, xftfont_close): Likewise.
5354 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
5355 * xsmfns.c (smc_save_yourself_CB): Likewise.
5356
53572008-06-02 Kenichi Handa <handa@m17n.org>
5358
5359 * font.c (font_find_for_lface): Handle float font size.
5360 (font_open_for_lface): Likewise.
5361
5362 * xfaces.c (x_supports_face_attributes_p): Check face->font before
5363 comparing the properties.
5364
53652008-06-01 Jason Rumney <jasonr@gnu.org>
5366
5367 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
5368 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
5369 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
5370 Don't add empty script list.
5371 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
5372
53732008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
5374
5375 * Makefile.in (dot, dotdot): Remove, update users.
5376 ".." has been used elsewhere in the file for a long time.
5377 (LIBXT_STATIC): Remove conditional based on unused variable.
5378
53792008-06-01 Miles Bader <miles@gnu.org>
5380
5381 * xfaces.c (Vface_remapping_alist): New variable.
5382 (syms_of_xfaces): Initialize it.
5383 (enum named_merge_point_kind): New type.
5384 (struct named_merge_point): Add `named_merge_point_kind' field.
5385 (push_named_merge_point): Make cycle detection respect different
5386 named-merge-point kinds.
5387 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
5388 Remove face-name alias resolution.
5389 (lface_from_face_name): New definition using
5390 `lface_from_face_name_no_resolve'.
5391 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
5392 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
5393 (get_lface_attributes): New definition that layers face-remapping on
5394 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
5395 (lookup_basic_face): New function.
5396 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
5397 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
5398 `get_lface_attributes'.
5399 (face_at_buffer_position): Use `lookup_basic_face' to lookup
5400 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
5401 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
5402
5403 * xdisp.c (init_iterator): Pass base_face_id through
5404 `lookup_basic_face' when we actually use it as a face-id.
5405 (handle_single_display_prop): Use `lookup_basic_face' to lookup
5406 DEFAULT_FACE_ID.
5407
5408 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
5409 lookup the initial face-id.
5410
5411 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
5412
54132008-06-01 Juanma Barranquero <lekktu@gmail.com>
5414
5415 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
5416 (Fremove_text_properties): Fix typos in docstrings.
5417
54182008-05-31 Kenichi Handa <handa@m17n.org>
5419
5420 * font.c (font_list_entities): Fix the car part of data to be
5421 stored in the cache.
5422
5423 * ftfont.c (ftfont_font_format): Don't use strcasestr.
5424
54252008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5426
5427 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
5428 Add a `test' argument so another predicate than `equal' can be used.
5429 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
5430 (map_char_table): Remove unused vars `c' and `i'.
5431 * lisp.h (Foptimize_char_table): Adjust declaration.
5432 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
5433
54342008-05-30 Kenichi Handa <handa@m17n.org>
5435
5436 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
5437 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
5438 defined.
5439
54402008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5441
5442 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5443 (Fmake_variable_frame_local): Disallow mixing buffer-local and
5444 frame-local settings for the same variable.
5445
54462008-05-30 Kenichi Handa <handa@m17n.org>
5447
5448 * fontset.c (Ffont_info): Move to font.c.
5449 (syms_of_fontset): Delete defsubr of Sfont_info.
5450
5451 * font.c (font_style_to_value, font_score): Delete casting of the
5452 args to xstcasecmp.
5453 (register_font_driver): Increment num_font_drivers only when
5454 registering the driver globally.
5455 (Ffont_info): Move from fontset.c. Handle a font object too.
5456 (syms_of_font): Defsubr Sfont_info.
5457
54582008-05-29 Kenichi Handa <handa@m17n.org>
5459
5460 * coding.h (enum define_coding_utf8_arg_index): New enum.
5461 (enum coding_attr_index): Change coding_attr_utf_16_bom to
5462 coding_attr_utf_bom.
5463 (enum utf_bom_type): Rename from utf_16_bom_type.
5464 (struct utf_16_spec): Adjust for the above change.
5465 (struct coding_system): Add utf_8_bom in `spec' union.
5466
5467 * coding.c (CODING_UTF_8_BOM): New macro.
5468 (enum coding_category): Delete coding_category_utf_8, add
5469 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
5470 coding_category_utf_8_sig.
5471 (CATEGORY_MASK_UTF_8): Delete it.
5472 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
5473 (CATEGORY_MASK_UTF_8_SIG): New macros.
5474 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
5475 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
5476 CATEGORY_MASK_UTF_8_SIG.
5477 (CATEGORY_MASK_UTF_8): New macro.
5478 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
5479 (detect_coding_utf_8): Check BOM.
5480 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
5481 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
5482 (encode_coding_utf_16): Likewise.
5483 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
5484 (detect_coding, detect_coding_system): Handle utf-8-auto.
5485 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
5486 (syms_of_coding): Fix setting up of Vcoding_category_table.
5487
54882008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
5489
5490 * process.c (Faccept_process_output): If `millisec' is non-nil,
5491 `seconds' default to 0.
5492 (wait_reading_process_output): Also return non-nil if we read output
5493 from a non-running process.
5494
54952008-05-29 Jason Rumney <jasonr@gnu.org>
5496
5497 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
5498 `raster' specified.
5499 (add_font_entity_to_list): Allow non-opentype truetype fonts back
5500 in the uniscribe backend, but disallow any font that has no
5501 unicode subrange support.
5502
55032008-05-29 Juanma Barranquero <lekktu@gmail.com>
5504
5505 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
5506 Fix typos in docstrings.
5507
55082008-05-29 Kenichi Handa <handa@m17n.org>
5509
5510 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
5511 (Fx_family_fonts): Set frame correctly.
5512
55132008-05-28 Jason Rumney <jasonr@gnu.org>
5514
5515 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
5516
55172008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
5520 calling build_annotations.
5521
55222008-05-28 Juanma Barranquero <lekktu@gmail.com>
5523
5524 * coding.c (Fdecode_coding_region, Fencode_coding_region)
5525 (Fencode_coding_string):
5526 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
5527 <latin-extra-code-table>: Fix typos in docstrings.
5528 (syms_of_coding) <coding-system-alist>: Doc fix.
5529 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
5530
55312008-05-28 Kenichi Handa <handa@m17n.org>
5532
5533 * fontset.c (Ffont_info): Don't call font_close_object.
5534
5535 * font.c (font_parse_family_registry): Use Ffont_put to validate
5536 foundry and family.
5537 (font_delete_unmatched): Don't check spacing.
5538 (font_list_entities): Add spacing to the spec to list fonts.
5539
5540 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
5541 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
5542
5543 * coding.c (encode_coding_raw_text): Fix previous change.
5544 (encode_coding_object): When the dst_object is a buffer and is
5545 different from src_object, move gap to PT.
5546
55472008-05-27 Chong Yidong <cyd@stupidchicken.com>
5548
5549 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
5550
55512008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * coding.c (encode_coding_raw_text): Set coding->produced_char for
5554 all branches. Compute it differently.
5555
5556 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
5557
55582008-05-27 Juanma Barranquero <lekktu@gmail.com>
5559
5560 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
5561 into "else if () ... else ...".
5562
55632008-05-27 Jason Rumney <jasonr@gnu.org>
5564
5565 * w32font.c (w32font_open_internal): Determine if glyph indices
5566 are likely to work here.
5567
55682008-05-27 Chong Yidong <cyd@stupidchicken.com>
5569
5570 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
5571 draw overlap glyphs with appropriate highlighting.
5572
55732008-05-27 Kenichi Handa <handa@m17n.org>
5574
5575 * xfont.c (xfont_open): Fix calculation of font->average_width.
5576
55772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5578
5579 * casefiddle.c (casify_object): Try to guess better whether the
5580 argument is a byte or a char.
5581
55822008-05-26 Andreas Schwab <schwab@suse.de>
5583
5584 * xselect.c (x_reply_selection_request): Properly handle format == 32.
5585 Always send multiples of format size.
5586
5587 * xterm.c (x_set_frame_alpha): Fix type mismatch.
5588
55892008-05-26 Jason Rumney <jasonr@gnu.org>
5590
5591 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
5592 (compute_metrics): Don't set failure if we just cleared the cache.
5593 (w32_weight_table): Remove unused variable.
5594 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
5595 backwards compatibility.
5596
55972008-05-25 Kenichi Handa <handa@m17n.org>
5598
5599 * w32term.c (x_draw_glyph_string):
5600 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
5601
5602 * xfaces.c: Delete unused function prototypes.
5603 (xstrlwr, font_frame): Delete them.
5604 (clear_face_cache): Delete unused variable.
5605
5606 * xftfont.c (xftfont_open): Delete unused variable.
5607 If underline_thickness is not 1, adjust underline_position.
5608
5609 * ftxfont.c (ftxfont_open): Delete unused variable.
5610
5611 * fontset.c (face_for_char): Optimize for the case of no charset
5612 property.
5613
5614 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
5615 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
5616 (otf_open, font_otf_capability, generate_otf_features)
5617 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5618 Comment out by surrounding "#if 0" and "#endif" for the moment.
5619 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
5620 (syms_of_font): Codes for accessing above commented out.
5621
56222008-05-24 Eli Zaretskii <eliz@gnu.org>
5623
5624 * w32proc.c: Include dispextern.h.
5625
5626 * w32.c: Include dispextern.h.
5627
56282008-05-23 Juanma Barranquero <lekktu@gmail.com>
5629
5630 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
5631 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
5632 Fix typos in docstrings.
5633
56342008-05-23 Jason Rumney <jasonr@gnu.org>
5635
5636 * xsmfns.c: Remove includes that are already included by config.h.
5637
56382008-05-23 Kenichi Handa <handa@m17n.org>
5639
5640 * charset.c (Qemacs, charset_emacs): New variables.
5641 (char_charset): Fix for non-Unicode characters.
5642 (syms_of_charset): Define charset_emacs.
5643
5644 * w32term.c (x_draw_glyph_string): Be sure to update
5645 s->underline_thickness and s->underline_position. Be sure to draw
5646 underline within the current line area.
5647
5648 * xterm.c (x_draw_glyph_string): Be sure to update
5649 s->underline_thickness and s->underline_position. Be sure to draw
5650 underline within the current line area.
5651
5652 * fontset.c: Delete unused variables and add casting for char *
5653 throughout the file.
5654 (fontset_font): Try the fallback fonts of the current fontset
5655 before consulting the default fontset.
5656
5657 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
5658
5659 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
5660
56612008-05-22 Jason Rumney <jasonr@gnu.org>
5662
5663 * font.c: Don't include strings.h.
5664
5665 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
5666
5667 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
5668 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
5669 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
5670 to call xstrcasecmp.
5671
5672 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
5673
5674 * fontset.c (fs_query_fontset): Use xstrcasecmp.
5675
5676 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
5677
5678 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
5679
56802008-05-22 Kenichi Handa <handa@m17n.org>
5681
5682 * puresize.h (BASE_PURESIZE): Increase to 1220000.
5683
5684 * font.c (font_prop_validate_style): Adjust for the format
5685 change of font_style_table.
5686
5687 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
5688 two args.
5689
5690 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
5691 two args.
5692
56932008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
5694
5695 * minibuf.c (keys_of_minibuf): Delete.
5696 * lisp.h (keys_of_minibuf): Delete.
5697 * emacs.c (main): Don't call keys_of_minibuf.
5698
56992008-05-22 Kenichi Handa <handa@m17n.org>
5700
5701 * ftfont.c (ftfont_resolve_generic_family): Rename from
5702 ftfont_list_generic_family. Return a single family for each
5703 generic family.
5704 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
5705 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
5706 Call font_add_log.
5707 (ftfont_match): Call font_add_log.
5708
5709 * font.h (Ffont_xlfd_name): EXFUN adjusted.
5710 (FONT_DEBUG): Define it.
5711 (font_add_log): Extern it.
5712 (font_assert): Rename from xassert.
5713
5714 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
5715 (xfont_list_family): Call font_add_log.
5716 (xfont_match): Likewise.
5717 (memq_no_quit): Delete.
5718
5719 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
5720 call of Ffont_xlfd_name.
5721
5722 * xfaces.c (struct table_entry, slant_table, weight_table)
5723 (swidth_table): Move to font.c.
5724
5725 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
5726 xassert are changed to font_assert. Delete many unused variables.
5727 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
5728 New variables.
5729 (struct table_entry): Move from xfaces.c and modified.
5730 (weight_table, slant_table, width_table): Move from xfaces.c and
5731 contents adjusted for the change of struct table_entry.
5732 (font_style_to_value, font_style_symbolic): Adjust for the
5733 format change of font_style_table.
5734 (font_parse_family_registry): Don't overwrite existing foundry and
5735 family of font_spec.
5736 (font_score): Fix calculation of diff for sizes.
5737 (font_sort_entites): Call font_add_log.
5738 (font_delete_unmatched): Return a newly created list.
5739 (font_list_entities): Fix previous change. Call font_add_log.
5740 (font_matching_entity, font_open_entity, font_close_entity):
5741 Call font_add_log.
5742 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
5743 (Finternal_set_font_style_table): Delete.
5744 (BUILD_STYLE_TABLE): New macro.
5745 (build_style_table): New function.
5746 (Vfont_log, font_log_env_checked): New variables.
5747 (font_add_log): New function.
5748 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
5749 Declare Lisp variables "font-weight-table", "font-slant-table",
5750 "font-width-table", and "font-log". Initialize font_style_table.
5751
57522008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
5753
5754 * xterm.c (x_set_frame_alpha): Move declarations before statements.
5755
57562008-05-21 Seiji Zenitani <zenitani@mac.com>
5757 Ryo Yoshitake <ryo@shiftmode.net>
5758
5759 * frame.c (Qalpha): Add a new frame parameter `alpha'.
5760 (Vframe_alpha_lower_limit): New variable.
5761 (x_set_alpha): New function.
5762
5763 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
5764
5765 * xfns.c (x-create-frame, Qalpha):
5766 Initialize the frame parameter `alpha'.
5767 * xterm.c (OPAQUE, OPACITY): New.
5768 (x_set_frame_alpha): New function.
5769 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
5770
5771 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
5772 * w32fns.c (w32_frame_parm_handlers): Likewise.
5773
57742008-05-20 Jason Rumney <jasonr@gnu.org>
5775
5776 * w32font.c (add_font_entity_to_list): Don't add non-opentype
5777 truetype fonts to opentype list.
5778
57792008-05-20 Juanma Barranquero <lekktu@gmail.com>
5780
5781 * fontset.c (Ffontset_info): Doc fix.
5782 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
5783 <ignore-relative-composition>: Fix typos in docstrings.
5784
5785 * font.c (syms-of-font) <font-encoding-alist>:
5786 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
5787 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
5788 (Ffont_otf_alternates): Doc fixes.
5789
57902008-05-20 Kenichi Handa <handa@m17n.org>
5791
5792 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
5793 font.h through out the file.
5794 (FONT_DRIVERS): Rename from FONTOBJ.
5795 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
5796 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
5797
5798 * emacs.c (main): Call syms_of_font unconditionally.
5799
5800 * font.h (find_font_encoding): Extern it.
5801
5802 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
5803 fontset.c.
5804 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
5805 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
5806 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
5807 only when HAVE_WINDOW_SYSTEM is defined.
5808 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
5809 when HAVE_WINDOW_SYSTEM is defined.
5810
5811 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
5812 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
5813
5814 * xfaces.c: Include font.h unconditionally.
5815 (merge_face_ref, merge_face_vectors)
5816 (Finternal_set_lisp_face_attribute): Cancel the previous change.
5817
58182008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
5819
5820 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
5821 indirect_variable.
5822 * eval.c (lisp_indirect_variable): New fun.
5823 (Fuser_variable_p): Use it.
5824
58252008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5826
5827 * lisp.h (indirect_variable):
5828 * data.c (indirect_variable, let_shadows_buffer_binding_p):
5829 Use Lisp_Symbol pointers rather than Lisp_Object.
5830 Adjust callers.
5831 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
5832 To this end, change calling-convention.
5833
5834 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
5835 if some non-hidden buffers are selected by string&pred.
5836
58372008-05-19 Chong Yidong <cyd@stupidchicken.com>
5838
5839 * process.c (wait_reading_process_output): Always check status
5840 when in batch mode.
5841
58422008-05-19 Kenichi Handa <handa@m17n.org>
5843
5844 * font.c (font_list_entities): Fix handling of cache.
5845 (font_matching_entity): Likewise.
5846
5847 * ftfont.c (cs_iso8859_1): Delete.
5848 (ft_face_cache): New variable.
5849 (struct ftfont_info): New member fc_charset_idx.
5850 (ftfont_build_basic_charsets): Delete.
5851 (fc_charset_table): New variable.
5852 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
5853 . FC_CHARSET_IDX) as :font-entity property in the font entity.
5854 Callers changed.
5855 (ftfont_lookup_cache, ftfont_get_charset): New functions.
5856 (ftfont_spec_pattern): New argument fc_charset_idx.
5857 Check registry more rigidly. Change callers.
5858 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
5859 change of :font-entity property of the font.
5860
5861 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
5862 property of the font.
5863
58642008-05-18 Juanma Barranquero <lekktu@gmail.com>
5865
5866 * coding.c (Fcoding_system_p): Rename argument to match docstring.
5867 (Funencodable_char_position, Fcheck_coding_systems_region)
5868 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
5869 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
5870 (Ffind_operation_coding_system, Fset_coding_system_priority)
5871 (Fcoding_system_eol_type): Doc fixes.
5872
58732008-05-17 Glenn Morris <rgm@gnu.org>
5874
5875 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
5876
58772008-05-16 Eli Zaretskii <eliz@gnu.org>
5878
5879 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
5880 and st_gid.
5881
5882 * frame.c (Fdelete_frame): Don't call font_update_drivers if
5883 HAVE_WINDOW_SYSTEM is not defined.
5884
5885 * xfaces.c (merge_face_ref, merge_face_vectors)
5886 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
5887 HAVE_WINDOW_SYSTEM is defined.
5888 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
5889
58902008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
5891
5892 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
5893
58942008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5895
5896 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
5897
58982008-05-15 Kenichi Handa <handa@m17n.org>
5899
5900 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
5901 preference.
5902
59032008-05-15 Glenn Morris <rgm@gnu.org>
5904
5905 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
5906
59072008-05-15 Chong Yidong <cyd@stupidchicken.com>
5908
5909 * fns.c (init_fns): Don't initialize weak_hash_tables here.
5910 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
5911
5912 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
5913
59142008-05-15 Kenichi Handa <handa@m17n.org>
5915
5916 * ftfont.c (ftfont_list): Downcase family name to check generic
5917 families.
5918
5919 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
5920 font-spec for QCfont value.
5921
5922 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
5923 buffer. Check the return value of it.
5924
59252008-05-14 Jason Rumney <jasonr@gnu.org>
5926
5927 * w32term.c (w32_get_glyph_overhangs): Remove.
5928 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
5929
59302008-05-14 Kenichi Handa <handa@m17n.org>
5931
5932 * font.c (font_prop_validate): Make nil a valid value.
5933 (font_clear_cache): Check if the cached vector of entities is nil
5934 or not.
5935
59362008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5937
5938 * emacs.c (main_thread): Conditionalize on
5939 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5940 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
5941
5942 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
5943 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
5944 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5945
59462008-05-14 Kenichi Handa <handa@m17n.org>
5947
5948 * coding.c (detect_coding_iso_2022): Ignore a coding category that
5949 has no corresponding coding system.
5950
59512008-05-14 Jason Rumney <jasonr@gnu.org>
5952
5953 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
5954
5955 * w32font.h (w32font_open_internal): Update declaration.
5956
5957 * w32font.c (w32font_open_internal): Change last argument from
5958 w32font_info struct to font object. Fill in font object from
5959 font_entity. Get Outline metrics if possible. Use them to
5960 calculate underline position and thickness. Use xlfd name as name
5961 property. Don't set codepage.
5962 (w32font_open): Pass font_object to w32font_open_internal. Don't
5963 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
5964 (w32font_draw): Use s->font.
5965 (clear_cached_metrics): Don't clear non-existent blocks.
5966
5967 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
5968 font was not found.
5969 (x_draw_glyph_string): Use underline position and thickness from font.
5970
5971 * w32uniscribe.c (uniscribe_open): Pass font_object to
5972 w32font_open_internal.
5973
59742008-05-14 Kenichi Handa <handa@m17n.org>
5975
5976 These changes are to delete all legacy font-handling codes, and
5977 make Emacs use only font-backends.
5978
5979 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
5980 (frame.o, image.o, print.o): Depend on $(FONTSRC).
5981
5982 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
5983
5984 * charset.h (Vcharset_non_preferred_head)
5985 (Vcurrent_iso639_language): Extern them.
5986
5987 * charset.c (Vcharset_non_preferred_head): New variable.
5988 (Vcurrent_iso639_language): New variable.
5989 (syms_of_charset): Declare it as a Lisp variable.
5990 (char_charset): Don't check non preferred charsets. As a last
5991 resort, return charset_unicode.
5992 (Fset_charset_priority): Update Vcharset_non_preferred_head.
5993
5994 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
5995 conditionals. Don't check enable_font_backend. Delete all codes
5996 used only when USE_FONT_BACKEND is not defined.
5997
5998 * dispextern.h (struct glyph_string): Change type of `font' to
5999 `struct font *'.
6000 (struct glyph_string): New member underline_position and
6001 underline_thickness.
6002 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6003 (struct face): Change type of `font' to `struct font *'. Remove
6004 members `font_name', `font_info_id'.
6005 (per_char_metric, encode_char): Delete externs.
6006 (calc_pixel_width_or_height): Adjust the prototype.
6007
6008 * emacs.c (enable_font_backend): Delete extern.
6009 (main): Don't set enable_font_backend. Don't check the command
6010 line argument "-disable-font-backend".
6011
6012 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6013 (enum font_property_index): New members FONT_DPI_INDEX,
6014 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6015 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6016 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6017 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6018 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6019 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6020 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6021 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6022 (struct font_spec, struct font_entity): New structs.
6023 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6024 (struct font): Many members from old "struct font_info" moved to
6025 here. Members font and entity deleted.
6026 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6027 the new font-related objects.
6028 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6029 (CHECK_FONT_GET_OBJECT): Likewise.
6030 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6031 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6032 (struct font_driver): New members case_sensitive anc check. Type
6033 of the member list and open changed.
6034 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6035 (font_symbolic_width, font_find_object, font_get_spec)
6036 (font_set_lface_from_name): Delete extern.
6037 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6038
6039 * font.c: Include <strings.h>.
6040 (enable_font_backend): Delete it.
6041 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6042 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6043 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6044 (null_string): Delete it.
6045 (null_vector): Make it static.
6046 (font_family_alist): Delete it.
6047 (Qnormal): Extern it.
6048 (QCextra, QClanguage): Delete it.
6049 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6050 (font_make_spec, font_make_entity, font_make_object)
6051 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6052 the string. Callers changed.
6053 (font_pixel_size): Adjusted for the format change of font-related
6054 objects.
6055 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6056 (font_style_to_value, font_style_symbolic): New function.
6057 (build_font_family_alist): Delete it.
6058 (font_registry_charsets): Use Fassoc_string instead of
6059 assq_no_quit.
6060 (font_prop_validate_symbol): Don't return null_string.
6061 (font_prop_validate_style): Adjusted for the change of
6062 style-related values in a font vector.
6063 (font_property_table): Delete entries for QClanguage and
6064 QCantialias, add entries for QCavgwidth.
6065 (get_font_prop_index): Delete the 2nd argument FROM.
6066 (font_prop_validate): Arguments changed.
6067 (font_put_extra): Adjusted for the change of font-related objects.
6068 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6069 (font_parse_fcname, font_unparse_fcname)
6070 (font_prepare_composition): Likewise.
6071 (font_parse_family_registry): Renamed from font_merge_old_spec.
6072 (otf_open): Delete the 1st arg entity.
6073 (font_otf_capability): Adjusted for the above change.
6074 (font_score): New arg alternate_families. Adjusted for the change
6075 of font-related objects.
6076 (font_sort_entites): New arg best_only.
6077 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6078 Delete them.
6079 (font_match_p): Check alternate families.
6080 (font_find_object): Delete it.
6081 (font_check_object): New function.
6082 (font_clear_cache): Adjusted for the change of font-related objects.
6083 (font_delete_unmatched): New arg.
6084 (font_list_entities): Call font_driver->list with a spec that
6085 doesn't specify style-related properties.
6086 (font_matching_entity): Arguments changed. Caller changed.
6087 (font_open_entity): Adjusted for the change of font-related objects.
6088 (font_close_object, font_has_char, font_encode_char)
6089 (font_get_name, font_get_spec): Likewise.
6090 (font_spec_from_name, font_clear_prop, font_update_lface):
6091 New functions.
6092 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6093 (font_prepare_for_face, font_done_for_face, font_open_by_name)
6094 (font_at): Adjusted for the change of font-related objects.
6095 (font_range): New function.
6096 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
6097 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
6098 (Fcopy_font_spec, Fmerge_font_spec): New function.
6099 (Ffont_family_list): Renamed from list-families.
6100 (Finternal_set_font_style_table): Arguments changed.
6101 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
6102 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
6103 change of font-related objects.
6104 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
6105
6106 * fontset.h (struct font_info): Delete it. Most members go to
6107 struct font.
6108 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
6109 (enum FONT_SPEC_INDEX): Delete it.
6110 (font_info, list_fonts_func, load_font_func, query_font_func)
6111 (set_frame_fontset_func, find_ccl_program_func)
6112 (get_font_repertory_func, new_fontset_from_font_name): Delete
6113 externs.
6114 (fontset_from_font_name): Extern it.
6115 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
6116 (FONT_INFO_FROM_FACE): Deleted.
6117 (face_for_font): Adjust prototype.
6118
6119 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
6120 conditionals. Don't check enable_font_backend. Delete all codes
6121 used only when USE_FONT_BACKEND is not defined.
6122 (get_font_info_func, list_font_func, load_font_func)
6123 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
6124 (get_font_repertory_func): Delete them.
6125 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
6126 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
6127 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
6128 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
6129 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
6130 (fontset_compare_rfontdef): New function.
6131 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
6132 rfont-defs by qsort. Adjusted for the change of font-group vector.
6133 (load_font_get_repertory): Deleted.
6134 (fontset_find_font): Use new macros to ref/set elements of
6135 font-def and rfont-def.
6136 (fontset_font): Fix the timing of remembering that no font for C.
6137 (free_face_fontset): Do nothing if the face has no fontset.
6138 (face_suitable_for_char_p): Use new macros to ref/set elements of
6139 rfont-def.
6140 (face_for_char): Likewise. Call face_for_char with font_object.
6141 (fs_load_font): Delete. Delete #pragma surrounding it.
6142 (fs_query_fontset): Use strcasecmp instead of strcmp.
6143 (generate_ascii_font_name): Adjusted for the format change of
6144 font-spec.
6145 (Fset_fontset_font): Likewise. Use new macros to set elements of
6146 font-def.
6147 (Fnew_fontset): Use font_unparse_xlfd to generate
6148 FONTSET_ASCII (fontset).
6149 (new_fontset_from_font_name): Deleted.
6150 (fontset_from_font): Renamed from new_fontset_from_font. Check if
6151 a fontset is already created for the font. FIx updating of
6152 Vfontset_alias_alist.
6153 (fontset_ascii_font): Deleted.
6154 (Ffont_info): Adjusted for the format change of font-spec.
6155 (Finternal_char_font): Likewise.
6156 (Ffontset_info): Likewise.
6157 (syms_of_fontset): Don't check load_font_func.
6158
6159 * fns.c (internal_equal): Handle PREV_FONT.
6160
6161 * frame.h: Delete USE_FONT_BACKEND conditional.
6162
6163 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
6164 conditionals. Don't check enable_font_backend. Delete all codes
6165 used only when USE_FONT_BACKEND is not defined.
6166 (x_set_font): Call x_new_font, not x_new_fontset2.
6167 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
6168 already set for the frame.
6169
6170 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
6171 a font-entity by font_make_entity. Use font_intern_prop instead
6172 of intern_downcase. Use FONT_SET_STYLE to set a style-related
6173 font property. If a font is scalable, set avgwidth property to 0.
6174 Set font-entity property by font_put_extra.
6175 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
6176 (ffont_driver): Adjusted for the change of struct font_driver.
6177 (ftfont_spec_pattern): New function.
6178 (ftfont_list): Return a list, not vector.
6179 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
6180 (ftfont_list_family): Don't downcase names.
6181 (ftfont_free_entity): Deleted.
6182 (ftfont_open): Return a font-object. Adjusted for the change of
6183 struct font. Get underline_thickness and underline_position from
6184 font property. Don't update dpyinfo->smallest_font_height and
6185 dpyinfo->smallest_char_width.
6186 (ftfont_close): Don't free `struct font'.
6187 (ftfont_has_char): Adjusted for the format change of font-entity.
6188 (ftfont_encode_char, ftfont_text_extents): Likewise.
6189
6190 * ftxfont.c (ftxfont_list): Return a list, not vector.
6191 (ftxfont_open): Return a font-object. Adjusted for the change of
6192 struct font. Get underline_thickness and underline_position from
6193 font property. Don't update dpyinfo->smallest_font_height and
6194 dpyinfo->smallest_char_width.
6195 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
6196 (ftxfont_draw): Adjusted for the change of struct font.
6197
6198 * image.c (image_ascent): Don't include "charset.h". Include
6199 "character.h" and "font.h".
6200
6201 * lisp.h (enum pvec_type): New member PREV_FONT.
6202 (Fassoc_string): EXFUN it.
6203
6204 * print.c: Include font.h.
6205 (print_object): Handle font-related objects.
6206
6207 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
6208 conditionals. Don't check enable_font_backend. Delete all codes
6209 used only when USE_FONT_BACKEND is not defined.
6210 (handle_auto_composed_prop): Do nothing if it->f is not on a
6211 window system. Check how many following characters can be
6212 displayed by the same font.
6213 (calc_pixel_width_or_height): Type of the 4th arg is changed to
6214 'struct font *'.
6215 (get_char_face_and_encoding): Assign the whole encoding task to
6216 the `encode-char' method of a font driver.
6217 (fill_composite_glyph_string): Adjusted for the change of `struct
6218 face' and `struct glyph_string'.
6219 (fill_glyph_string): Likewise.
6220 (get_per_char_metric): Arguments changed.
6221 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
6222 and `struct glyph_string'.
6223 (produce_stretch_glyph, calc_line_height_property)
6224 (x_produce_glyphs): Likewise.
6225
6226 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
6227 conditionals. Don't check enable_font_backend. Delete all codes
6228 used only when USE_FONT_BACKEND is not defined. Use
6229 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
6230 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
6231 (Qp): Extern them.
6232 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
6233 Deleted.
6234 (struct font_name): Deleted.
6235 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
6236 (compare_fonts_by_sort_order): New function.
6237 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
6238 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
6239 Deleted.
6240 (Fx_family_fonts): Use font_list_entities, and sort fonts by
6241 compare_fonts_by_sort_order.
6242 (Fx_font_family_list): Call Ffont_family_list.
6243 (face_numeric_value, face_numeric_weight, face_numeric_slant)
6244 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
6245 (face_symbolic_slant, face_symbolic_swidth)
6246 (split_font_name_into_vector, build_font_name_from_vector)
6247 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
6248 (font_rescale_ratio, split_font_name, build_font_name)
6249 (free_font_names, sort_fonts, x_face_list_fonts)
6250 (face_font_available_p, sorted_font_list, cmp_font_names)
6251 (font_list_1, concat_font_list, font_list, remove_duplicates):
6252 Deleted.
6253 (Fx_list_fonts): Use Ffont_list.
6254 (LFACE_AVGWIDTH): Deleted.
6255 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
6256 by FONTP.
6257 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6258 (set_lface_from_font_name): Delete it.
6259 (set_lface_from_font): Renamed from
6260 set_lface_from_font_and_fontset. Caller changed. Don't set
6261 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
6262 for face.
6263 (merge_face_vectors): Copy font-spec if necessary.
6264 Clear properties of the font-spec if necessary.
6265 (merge_face_ref): Clear properties of the font-spec if necessary.
6266 (Finternal_set_lisp_face_attribute): Likewise.
6267 (set_font_frame_param): Use font_load_for_lface to load a
6268 font-object, and call Fmodify_frame_parameters with it.
6269 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
6270 font name by Ffont_xlfd_name.
6271 (Finternal_lisp_face_attribute_values): Don't check QCweight,
6272 QCslant, and QCwidth.
6273 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
6274 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
6275 Compare fonts by EQ.
6276 (lookup_non_ascii_face): Deleted.
6277 (face_for_font): The 2nd argument changed.
6278 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
6279 Check atomic font properties by case insensitive.
6280 (realize_non_ascii_face): Set face->overstrike correctly.
6281 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
6282 (dump_realized_face): Get font name from
6283 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
6284
6285 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
6286 conditionals. Don't check enable_font_backend. Delete all codes
6287 used only when USE_FONT_BACKEND is not defined.
6288 (xic_create_xfontset): Original code deleted and renamed from
6289 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
6290 (x_make_gc): Don't set GCFont in GCs.
6291 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
6292 opened by "fixed".
6293 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
6294 find_ccl_program_func, query_font_func, set_frame_fontset_func,
6295 get_font_repertory_func.
6296
6297 * xfont.c: Include <stdlib.h> and "ccl.h".
6298 (struct xfont_info): New structure.
6299 (xfont_query_font): Deleted.
6300 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
6301 moved from xterm.c.
6302 (xfont_driver): Adjusted for the change of struct font_driver.
6303 (compare_font_names): New function.
6304 (xfont_list_pattern): Sort font names case insensitively. Make
6305 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
6306 (xfont_list): Return a list, not vector.
6307 (xfont_match): If the font doesn't have QCname property, generate
6308 a name from the other font properties.
6309 (xfont_open): Return a font-object. Adjusted for the change of
6310 struct font. Get underline_thickness and underline_position from
6311 font property. Don't update dpyinfo->smallest_font_height and
6312 dpyinfo->smallest_char_width.
6313 (xfont_close): Don't free struct font.
6314 (xfont_prepare_face): Adjusted for the change of struct font.
6315 (xfont_done_face): Deleted.
6316 (xfont_has_char): Adjusted for the change of struct font.
6317 (xfont_encode_char, xfont_draw): Likewise.
6318 (xfont_check): New function.
6319
6320 * xftfont.c (xftfont_list): Adjusted for the change of `list'
6321 callback function.
6322 (xftfont_match): Adjusted for the format change of font-entity.
6323 (xftfont_open): Adjusted for the format change of font-entity and
6324 font-object. Adjusted for the change of struct font. Return a
6325 font-object. Don't update dpyinfo->smallest_font_height and
6326 dpyinfo->smallest_char_width.
6327 (xftfont_close): Block input while calling XftFontClose.
6328 (xftfont_prepare_face): Don't block input while calling
6329 xftfont_get_colors. Adjusted for the change of struct font.
6330 (xftfont_shape): Return value of error case fixed.
6331
6332 * xrdb.c (x_load_resources): Don't setup a fontset resource.
6333
6334 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
6335 conditionals.
6336 (FONT_WIDTH): Return (f)->max_width.
6337 (struct x_display_info): Delete member `font'.
6338 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
6339 (x_find_ccl_program, x_get_font_repertory): Delete externs.
6340 (struct x_output): Change type of `font' to `struct font *'.
6341
6342 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
6343 conditionals. Don't check enable_font_backend. Delete all codes
6344 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
6345 (x_per_char_metric, x_encode_char): Deleted.
6346 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
6347 (x_compute_glyph_string_overhangs): Adjusted for the change of
6348 `struct face'.
6349 (x_draw_glyph_string_foreground)
6350 (x_draw_composite_glyph_string_foreground): Likewise.
6351 (x_draw_glyph_string): Likewise. Use font->underline_position and
6352 font->underline_thickness.
6353 (x_new_font): Renamed from x_new_fontset2.
6354 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
6355 (x_check_font): Call `check' method of a font driver.
6356 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
6357 (x_query_font, x_get_font_repertory): Deleted.
6358 (x_find_ccl_program): Renamed and moved to xfont.c.
6359 (x_redisplay_interface): Adjusted for the change of `struct
6360 redisplay_interface'.
6361
6362 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
6363 conditionals. Don't check enable_font_backend. Delete all codes
6364 used only when USE_FONT_BACKEND is not defined. Surround non-used
6365 code by "#ifdef OLD_FONT" and "endif".
6366 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
6367
6368 * w32font.h (struct w32font_info): New member.
6369 (FONT_COMPAT): New macro.
6370 (w32font_open_internal): Prototype adjusted.
6371
6372 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
6373 OLD_FONT" and "endif".
6374
6375 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
6376 conditionals. Don't check enable_font_backend. Delete all codes
6377 used only when USE_FONT_BACKEND is not defined.
6378 (w32font_open): Return a font-object. Make a font-object by
6379 font_make_object. Adjusted for the change of struct w32font_info.
6380 (w32font_close): Don't free struct font. Adjusted for the change
6381 of struct w32font_info.
6382 (w32font_encode_char, w32font_text_extents, w32font_draw):
6383 Adjusted for the change of struct w32font_info.
6384 (w32font_draw): Likewise.
6385 (w32font_list_internal): Return a list, not vector.
6386 (w32font_open_internal): Change the 4th arg to font-object.
6387 Adjusted for the change of struct w32font_info and font-object format.
6388 (add_font_name_to_list): Don't downcase names.
6389 (w32_enumfont_pattern_entity): Make a font-entity by
6390 font_make_entity. Adjusted for the format change of font-entity.
6391 Use FONT_SET_STYLE to set a style-related font property. If a
6392 font is scalable, set avgwidth property to 0. Set font-entity
6393 property by font_put_extra.
6394 (font_matches_spec): Adjusted for the format change of font-entity.
6395 (w32_weight_table, w32_decode_weight): New variables.
6396 (w32_encode_weight): New function.
6397 (fill_in_logfont): Adjusted for the format change of font-spec.
6398 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
6399 weight value.
6400 (w32font_driver): Adjusted for the change of struct font_driver.
6401
6402 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
6403 conditionals. Don't check enable_font_backend. Surround non-used
6404 code by "#ifdef OLD_FONT" and "endif".
6405 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
6406 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
6407
6408 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
6409 conditionals. Don't check enable_font_backend. Delete all codes
6410 used only when USE_FONT_BACKEND is not defined. Surround non-used
6411 code by "#ifdef OLD_FONT" and "endif".
6412
6413 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
6414 (uniscribe_open): Return value changed to font-object.
6415 Adjusted for the format change of font-object.
6416 (uniscribe_otf_capability): Adjusted for the change of struct font.
6417 (add_opentype_font_name_to_list): Don't downcase names.
6418 (uniscribe_font_driver): Adjusted for the change of struct
6419 font_driver.
6420
64212008-05-13 Chong Yidong <cyd@stupidchicken.com>
6422
6423 * dispnew.c (update_frame_1): Check if tty output is still valid
6424 before flushing it.
6425
64262008-05-13 Jan Djärv <jan.h.d@swipnet.se>
6427
6428 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
6429 to Gtk+ menus.
6430
64312008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6432
6433 * dired.c (file_name_completion): Tweak the code so as to always do it
6434 in a single pass. Tighten the scope of some variables.
6435
6436 * dired.c (Qdefault_directory): New var.
6437 (file_name_completion): Use it instead of Fexpand_file_name.
6438 (syms_of_dired): Initialize it.
6439
64402008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
6441
6442 * fileio.c (double_dollars): Remove dead code.
6443
64442008-05-10 Eli Zaretskii <eliz@gnu.org>
6445
6446 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
6447 Mention w32-get-true-file-attributes in doc string.
6448
6449 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6450
64512008-05-09 Glenn Morris <rgm@gnu.org>
6452
6453 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
6454 2008-04-23.
6455
64562008-05-09 Eli Zaretskii <eliz@gnu.org>
6457
6458 Support for reporting owner and group of each file on MS-Windows:
6459 * dired.c (stat_uname, stat_gname): New functions, with special
6460 implementation for w32.
6461 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
6462
6463 * w32.c: Rename the_passwd_* to dflt_passwd_*.
6464 (dflt_group_name): New static variable.
6465 (dflt_group): Rename from the_group.
6466 (init_user_info): Init dflt_group fields. Get user's group name
6467 from LookupAccountSid.
6468 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
6469 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
6470 New initialization states.
6471 (globals_of_w32): Initialize them to zero. Initialize the default
6472 group name to "None".
6473 (GetFileSecurity_Name): New global var, the name of the function
6474 to call for GetFileSecurity.
6475 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
6476 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
6477 (get_file_security, get_security_descriptor_owner)
6478 (get_security_descriptor_group, is_valid_sid)
6479 (get_file_security_desc, get_rid, get_name_and_id)
6480 (get_file_owner_and_group): New functions.
6481 (stat): Use get_file_security_desc and get_file_owner_and_group to
6482 report the owner and primary group of each file. Don't ignore the
6483 high 32 bits of file's size, now that st_size is 64-bit wide.
6484 Fix test when to get true file attributes.
6485 (init_user_info): Use get_rid instead of equivalent inline code.
6486 (fstat): Don't ignore the high 32 bits of file's size.
6487
64882008-05-09 Chong Yidong <cyd@stupidchicken.com>
6489
6490 * image.c (png_load): Use correct bit-depth for setting background
6491 color.
6492
64932008-05-08 Eli Zaretskii <eliz@gnu.org>
6494
6495 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
6496 epa-hook.elc.
6497
64982008-05-08 Juanma Barranquero <lekktu@gmail.com>
6499
6500 * font.c (Ffont_match_p): Don't use `iff' in docstring.
6501
65022008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6503
6504 * macfns.c (Fx_create_frame): Make a copy of frame parameters
6505 because the original parameters are in pure storage now.
6506 (mac_window): Remove unused params. Update callers.
6507
65082008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6509
6510 * lread.c (substitute_object_recurse): Use lower-level primitives.
6511 Don't signal errors when traversing sub-char-tables.
6512 Don't loop over all the possible characters when traversing char-tables.
6513
6514 * print.c (print_preprocess): Add sub-char-tables to the print-table,
6515 just like we do in print.c.
6516
65172008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6518
6519 * minibuf.c (Ftry_completion): Remove code left over from when we used
6520 scmp instead of Fcompare_strings.
6521
65222008-05-04 Juanma Barranquero <lekktu@gmail.com>
6523
6524 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
6525
65262008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6527
6528 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
6529 Create bitmap context in native byte order.
6530
6531 * macterm.c (XDrawLine)
6532 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
6533 context in native byte order.
6534
65352008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6536
6537 * config.in: Regenerate.
6538
6539 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
6540 New definitions for Image I/O support.
6541 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6542 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
6543 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6544 (mac_data_provider_release_data, image_load_image_io)
6545 [USE_MAC_IMAGE_IO]: New functions.
6546 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
6547 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
6548 (init_image_func_pointer) [MAC_OSX]: Remove function.
6549 (image_load_quartz2d) [MAC_OSX]: Check availability of
6550 CGImageCreateWithPNGDataProvider at compile time.
6551 Use lowercase `false' for boolean constant.
6552 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
6553 Use image_load_image_io.
6554 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
6555 Don't check MyCGImageCreateWithPNGDataProvider.
6556 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
6557 Don't call init_image_func_pointer.
6558
6559 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
6560
6561 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
6562 Make variable non-static.
6563 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
6564 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6565
6566 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
6567 (RED_FROM_ULONG): Mask off higher bits.
6568 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
6569
6570 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
6571 Include AvailabilityMacros.h.
6572 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
6573 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
6574
65752008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
6576
6577 * chartab.c (Fset_char_table_range): If range is t, really set all
6578 chars to that value.
6579
65802008-05-03 Eli Zaretskii <eliz@gnu.org>
6581
6582 * dired.c (Ffile_attributes): Don't allow the device number become
6583 negative.
6584
65852008-05-02 Daiki Ueno <ueno@unixuser.org>
6586
6587 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
6588
65892008-05-02 Juri Linkov <juri@jurta.org>
6590
6591 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
6592 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
6593 DEFAULT argument as a list of default values in docstrings.
6594
65952008-05-01 Chong Yidong <cyd@stupidchicken.com>
6596
6597 * puresize.h (BASE_PURESIZE): Increase to 1210000.
6598
65992008-05-01 Martin Rudalics <rudalics@gmx.at>
6600
6601 * dispnew.c (change_frame_size_1): Preserve small windows when
6602 shrinking frames by calling set_window_height|width with third
6603 arg 2.
6604
6605 * window.h (struct window): Replace field too_small_ok by field
6606 resize_proportionally.
6607
6608 * window.c (make_window): Initialize resize_proportionally.
6609 (enlarge_window): Temporarily set resize_proportionally to make
6610 sure that shrink_windows does scale the window proportionally.
6611 (shrink_windows): When window has resize_proportionally set try
6612 to shrink it proportionally by stealing from other windows.
6613 (struct saved_window, Fset_window_configuration)
6614 (compare_window_configurations): Handle resize_proportionally.
6615 (WINDOW_TOTAL_SIZE): New macro.
6616 (window_min_size, shrink_windows, size_window): Use it.
6617 (check_min_window_sizes): Remove. Invalid values of
6618 window-min-height|width are handled by window_min_size_2 now.
6619 (size_window, Fsplit_window, enlarge_window)
6620 (adjust_window_trailing_edge, grow_mini_window): Don't call
6621 check_min_window_sizes.
6622 (window_min_size_2, window_min_size_1, window_min_size):
6623 New argument safe_p for retrieving "safe" minimum sizes.
6624 (Fdisplay_buffer, Fsplit_window, enlarge_window)
6625 (adjust_window_trailing_edge, grow_mini_window):
6626 Adjust arguments of window_min_size... functions.
6627 (shrink_windows): Argument min_size removed. New argument
6628 safe_p allows shrinking windows to their safe minimum sizes.
6629 Calculate minimum size and decide whether a window shall be
6630 deleted for each window individually.
6631 (size_window): When nodelete_p equals 2, tell shrink_windows to
6632 delete windows only if their new minimum size is no more safe.
6633 (shrink_window_lowest_first): Call window_min_size_1 to make
6634 sure to preserve modeline of bottom-most window when resizing
6635 the minibuffer.
6636 (Fset_window_configuration, Fcurrent_window_configuration)
6637 (compare_window_configurations): Do not handle
6638 window-min-height|width any more.
6639 (syms_of_window): Clarify window-min-height|width doc-strings.
6640
66412008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
6642
6643 * dired.c (file_name_completion): Fix up the encoding/decoding issue
6644 some more. Copy some of the code from Ftry_completions.
6645 Remove special case code that dates back to initial revision when the
6646 slash was only added when necessary and that can't trigger nowadays.
6647
66482008-04-27 Kenichi Handa <handa@m17n.org>
6649
6650 * font.c (font_prop_validate): Signal `error' instead of `font'.
6651
66522008-04-29 Jason Rumney <jasonr@gnu.org>
6653
6654 * w32fns.c (Fw32_battery_status): New defun.
6655 (syms_of_w32fns): Defsubr it.
6656
66572008-04-28 Andreas Schwab <schwab@suse.de>
6658
6659 * dired.c (file_name_completion): Fix another mixing of encoded
6660 and decoded names.
6661
66622008-04-28 Juanma Barranquero <lekktu@gmail.com>
6663
6664 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
6665
66662008-04-27 Juanma Barranquero <lekktu@gmail.com>
6667
6668 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
6669
66702008-04-27 Andreas Schwab <schwab@suse.de>
6671
6672 * dired.c (file_name_completion): Fix inappropriate mixing of
6673 encoded and decoded names.
6674
6675 * xterm.c (XTread_socket): Fix use of uninitialized variable.
6676
6677 * puresize.h (BASE_PURESIZE): Increase to 1200000.
6678
66792008-04-26 Eli Zaretskii <eliz@gnu.org>
6680
6681 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
6682 2008-03-31, it's not needed anymore with `struct stat' definition
6683 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
6684 for the same reasons.
6685
66862008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
6687
6688 * m/sparc.h: Additional redefinitions for GNU/Linux.
6689
66902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6691
6692 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
6693 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
6694 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
6695 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
6696 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6697 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
6698 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6699 Likewise.
6700
6701 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
6702 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
6703 (mac_ax_number_of_characters): Add externs.
6704 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6705 [USE_MAC_TSM]: Likewise.
6706 (mac_handle_text_input_event) [MAC_OSX]:
6707 Handle kEventTextInputOffsetToPos for no active input area case.
6708 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6709 (mac_handle_document_access_event)
6710 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
6711 (install_application_handler) [MAC_OSX]: Register handlers for
6712 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6713 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6714 Register mac_handle_document_access_event.
6715
6716 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
6717 Make functions non-static.
6718
67192008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6720
6721 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
6722 (read_file_name_completion_ignore_case, insert_default_directory)
6723 (Qdefault_directory): Move to minibuffer.el.
6724 (Fread_file_name): Call the new `read-file-name' instead.
6725
67262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6727
6728 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
6729 Make function non-static.
6730 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
6731 Remove function.
6732 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6733 Move to mactoolbox.c.
6734 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
6735
6736 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
6737 (mac_rect_make): New macro.
6738
6739 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
6740 instead of float.
6741 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6742 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
6743 (XSetBackground) [USE_CG_DRAWING]: Likewise.
6744 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
6745 CGRectMake.
6746 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6747 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
6748 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
6749 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6750 instead of WindowRef in argument type.
6751 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
6752 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
6753 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
6754 instead of DISPLAY. All uses changed.
6755 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
6756 (x_calc_absolute_position): Simplify so as not to use
6757 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
6758
6759 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6760 instead of WindowRef in argument type.
6761 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
6762 [TARGET_API_MAC_CARBON]: Remove externs.
6763 (create_apple_event, mac_event_parameters_to_lisp)
6764 [TARGET_API_MAC_CARBON]: Add externs.
6765
6766 * mactoolbox.c (Vmac_ts_script_language_on_focus)
6767 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
6768 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
6769 is clicked.
6770 (x_activate_menubar): Remove extern for saved_menu_event_location.
6771 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6772 Move from mac.c.
6773
67742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6775
6776 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
6777 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
6778
67792008-04-23 Jason Rumney <jasonr@gnu.org>
6780
6781 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
6782 attributes only for local files.
6783
6784 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
6785 default to Qlocal.
6786
67872008-04-22 Juri Linkov <juri@jurta.org>
6788
6789 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
6790 read-buffer-to-switch instead of using the letter "B".
6791
67922008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6793
6794 * fileio.c (Qdefault_directory): New variable.
6795 (Fread_file_name): Use it to pass `dir' to the completion functions.
6796
67972008-04-20 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
6800
68012008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
6802
6803 * keyboard.c (Vpre_help_message): Remove.
6804 (show_help_echo): Remove default C code.
6805
6806 * dired.c (directory_files_internal, file_name_completion):
6807 Only call ENCODE_FILE if the string is indeed decoded.
6808
68092008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6810
6811 * Makefile.in (TOOLKIT_DEFINES): Remove.
6812 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
6813
68142008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6815
6816 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
6817 (mactoolbox.o): New target.
6818
6819 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
6820 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
6821
6822 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
6823 Use mac_set_frame_window_background instead of XSetWindowBackground.
6824 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
6825 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
6826 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
6827 instead of SetWindowTitleWithCFString.
6828 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
6829 Move function to mactoolbox.c.
6830 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
6831 Use mac_set_window_modified instead of SetWindowModified.
6832 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
6833 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
6834 (Fx_focus_frame): Use mac_front_non_floating_window instead of
6835 FrontNonFloatingWindow. Use mac_activate_window instead of
6836 ActivateWindow. Use mac_active_non_floating_window instead of
6837 ActiveNonFloatingWindow.
6838 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
6839 Use mac_show_hourglass and mac_hide_hourglass.
6840 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
6841 instead of GetGlobalMouse.
6842 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
6843 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
6844 Use mac_bring_window_to_front instead of BringToFront.
6845 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
6846 mactoolbox.c.
6847 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
6848 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
6849 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
6850 mactoolbox.c.
6851
6852 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
6853 (XtPointer): Move typedef from macmenu.c.
6854 (enum button_type): Move enum from macmenu.c.
6855 (widget_value): Move typedef from macmenu.c.
6856 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
6857 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6858 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6859 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6860 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6861 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6862 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6863 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
6864 (Selection): Move typedef from macselect.c.
6865 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
6866 macterm.c.
6867 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
6868 (mac_is_window_collapsed, mac_bring_window_to_front)
6869 (mac_send_window_behind, mac_hide_window, mac_show_window)
6870 (mac_collapse_window, mac_front_non_floating_window)
6871 (mac_active_non_floating_window, mac_activate_window)
6872 (mac_move_window_structure, mac_move_window, mac_size_window)
6873 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
6874
6875 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
6876 (enum mac_menu_kind): Move enum to mactoolbox.c.
6877 (min_menu_id): Move variable to mactoolbox.c.
6878 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
6879 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
6880 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
6881 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
6882 [TARGET_API_MAC_CARBON]: Likewise.
6883 (XtPointer): Move typedef to macgui.h.
6884 (enum button_type): Move enum to macgui.h.
6885 (widget_value): Move typedef to macgui.h.
6886 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6887 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6888 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6889 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6890 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6891 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6892 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
6893 (popup_activated_flag): Make variable non-static.
6894 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
6895 (add_menu_item, fill_menu, dispose_menus):
6896 Move functions to mactoolbox.c.
6897 (restore_show_help_function, menu_target_item_handler)
6898 (install_menu_target_item_handler, mac_handle_dialog_event)
6899 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
6900 [TARGET_API_MAC_CARBON]: Likewise.
6901 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
6902 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6903 (find_and_call_menu_selection, name_is_separator): Make function
6904 non-static.
6905 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
6906 to mactoolbox.c.
6907 (set_frame_menubar): Don't call install_menu_quit_handler.
6908 (menu_item_selection): New variable.
6909 (mac_menu_show): Use create_and_show_popup_menu.
6910 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
6911 selection but set variable menu_item_selection. All uses changed.
6912 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
6913 Call install_menu_quit_handler. Move to mactoolbox.c.
6914
6915 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
6916 (Selection): Move typedef to macgui.h.
6917 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
6918 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
6919 Make variables non-static.
6920 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6921 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
6922 Make functions non-static.
6923 (Vmac_service_selection) [MAC_OSX]: Likewise.
6924 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
6925 (mac_valid_selection_target_p, mac_clear_selection)
6926 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6927 (mac_put_selection_value, mac_selection_has_target_p)
6928 (mac_get_selection_value, mac_get_selection_target_list)
6929 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
6930 Move functions to mactoolbox.c.
6931 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
6932 Likewise.
6933 (copy_scrap_flavor_data, mac_handle_service_event)
6934 (install_service_handler) [MAC_OSX]: Likewise.
6935 (syms_of_macselect) <Vmac_dnd_known_types>:
6936 Use mac_dnd_default_known_types.
6937
6938 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
6939 Move to mactoolbox.c.
6940 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
6941 (Fx_selection_owner_p): Add EXFUN.
6942 (install_window_handler, remove_window_handler, XSetWindowBackground):
6943 Remove externs.
6944 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
6945 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
6946 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
6947 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
6948 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
6949 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
6950 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
6951 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
6952 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
6953 (create_and_show_popup_menu, mac_get_selection_from_symbol)
6954 (mac_valid_selection_target_p, mac_clear_selection)
6955 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6956 (mac_put_selection_value, mac_selection_has_target_p)
6957 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
6958 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
6959 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
6960 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6961 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
6962 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6963 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
6964 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6965 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6966
6967 * mactoolbox.c: New file.
6968
69692008-04-18 Jason Rumney <jasonr@gnu.org>
6970
6971 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
6972
69732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6974
6975 * character.c (Fmultibyte_char_to_unibyte):
6976 Return latin1 chars unchanged.
6977
6978 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
6979 relocated if it points to `name'.
6980
69812008-04-17 Kenichi Handa <handa@m17n.org>
6982
6983 * data.c (Faset): Allow setting a multibyte character in an
6984 ASCII-only unibyte string.
6985
6986 * lisp.h (STRING_SET_MULTIBYTE): New macro.
6987
69882008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
6989
6990 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
6991 done in config.h.
6992
69932008-04-16 Juanma Barranquero <lekktu@gmail.com>
6994
6995 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
6996 (Fchar_direction): Add usage in the docstring.
6997
69982008-04-15 Chong Yidong <cyd@stupidchicken.com>
6999
7000 * keyboard.c (read_key_sequence): Remove always-true checks.
7001
70022008-04-14 Jason Rumney <jasonr@gnu.org>
7003
7004 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7005 compatibility struct, for better underline positioning.
7006
70072008-04-13 David Hansen <david.hansen@gmx.net>
7008
7009 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7010 string.
7011
70122008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7013
7014 * m/hp800.h (XUINT, XSET): Remove.
7015
70162008-04-12 Juanma Barranquero <lekktu@gmail.com>
7017
7018 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7019 previous change.
7020
70212008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7022
7023 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7024 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7025
70262008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7027
7028 * keymap.h (map_keymap_canonical): Declare.
7029 * xmenu.c (single_keymap_panes): Use it.
7030
70312008-04-11 Glenn Morris <rgm@gnu.org>
7032
7033 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7034 set the target's value to that of the alias.
7035
70362008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7037
7038 * term.c (set_tty_color_mode): Left over typo.
7039
70402008-04-10 Michael Albinus <michael.albinus@gmx.de>
7041
7042 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7043 only after check for file name handler functions. Signal, when
7044 native functionality is not supported.
7045 (syms_of_fileio): Declare it unconditionally.
7046
70472008-04-10 Jason Rumney <jasonr@gnu.org>
7048
7049 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7050 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7051
7052 * w32.c (logon_network_drive): Also logon to remote drives that
7053 are mapped to drive letters.
7054
70552008-04-10 Glenn Morris <rgm@gnu.org>
7056
7057 * xdisp.c (truncate-partial-width-windows): Doc fix.
7058
70592008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7060
7061 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7062 Move functions to minibuffer.el.
7063 (syms_of_fileio): Don't declare them.
7064
70652008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7066
7067 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7068 (syms_of_minibuf): Remove its initialization.
7069
7070 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7071
70722008-04-09 Juanma Barranquero <lekktu@gmail.com>
7073
7074 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7075
70762008-04-09 Jason Rumney <jasonr@gnu.org>
7077
7078 * makefile.w32-in (distclean): Delete makefile too.
7079 (maintainer-clean): New target.
7080
7081 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7082
7083 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7084 for new font backend and composite cases.
7085
70862008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7087
7088 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7089 Most of the code moved to run_timers.
7090 (do_pending_atimers): Call run_timers.
7091 (run_timers): New function.
7092
7093 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
7094 run atimers.
7095
7096 * process.c (wait_reading_process_output): The same as above.
7097
70982008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7099
7100 * minibuf.c (last_exact_completion): Remove variable.
7101 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
7102 (complete_and_exit_1, complete_and_exit_2)
7103 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
7104 (Fdisplay_completion_list, display_completion_list_1)
7105 (Fminibuffer_completion_help, Fself_insert_and_exit)
7106 (Fexit_minibuffer, Fminibuffer_message): Move functions to
7107 minibuffer.el.
7108 (syms_of_minibuf): Remove corresponding initializations.
7109
7110 * keyboard.c (Qdeactivate_mark): New var.
7111 (command_loop_1): Use it to call `deactivate-mark'.
7112 (syms_of_keyboard): Initialize it.
7113
7114 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
7115 to another frame.
7116 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
7117 Don't call set_tty_color_mode.
7118 (store_frame_param): Reset previous_frame rather than call
7119 set_tty_color_mode.
7120 * term.c (set_tty_color_mode): Rewrite.
7121 * dispextern.h (set_tty_color_mode): New type.
7122 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
7123
71242008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
7125
7126 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
7127 for generic chars, which do not exist any more in emacs-unicode.
7128
71292008-04-08 Michael Albinus <michael.albinus@gmx.de>
7130
7131 * coding.c (detect_coding_emacs_mule)
7132 (Ffind_operation_coding_system): Fix typo.
7133
71342008-04-08 Jason Rumney <jasonr@gnu.org>
7135
7136 * w32uniscribe.c (SNAME): Extract only symbol name.
7137
7138 * w32font.h (struct w32_metric_cache): New struct.
7139 (w32font_info): Use it.
7140 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
7141 (CACHE_BLOCKSIZE): New constants.
7142
7143 * w32font.c (Qja, Qko, Qzh): New symbols.
7144 (syms_of_w32font): Initialise them.
7145 (font_matches_spec): Use them to filter by language.
7146 (recompute_cached_metrics): Remove function.
7147 (compute_metrics, clear_cached_metrics): New functions.
7148 (w32font_encode_char): Use them to manage metric cache.
7149 (w32font_text_extents): Cache metrics for all glyphs on demand.
7150 Delay converting glyph indices to WORD until needed.
7151 (w32font_open_internal): Initialize metric cache to empty.
7152 (registry_to_w32_charset): Charset should always be a symbol.
7153 (fill_in_logfont, list_all_matching_fonts): Family should
7154 always be a symbol.
7155
71562008-04-06 Jason Rumney <jasonr@gnu.org>
7157
7158 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
7159 Give up if glyph indices not supported. Use uniscribe obtained
7160 ABC widths for individual metrics. Map glyph clusters back to
7161 characters using fClusterStart flag. Return number of glyphs
7162 produced, not chars processed.
7163 (uniscribe_shape): Map char at FROM to current glyph.
7164
71652008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7166
7167 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
7168 Use SetMenuItemHierarchicalMenu.
7169
71702008-04-05 Jason Rumney <jasonr@gnu.org>
7171
7172 * image.c (pbm_load): Allow color values up to 65535.
7173 Throw an error if max_color_idx is outside the supported range.
7174 Report an error when image size is invalid.
7175 Read two bytes at a time when raw images have max_color_idx above 255.
7176
71772008-04-05 Eli Zaretskii <eliz@gnu.org>
7178
7179 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7180 cFileName a file name that includes `?' characters, use the 8+3
7181 alias in cAlternateFileName instead.
7182
71832008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
7184
7185 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
7186 append "CCL: Quitted" when the CCL program is quitted.
7187 (setup_ccl_program): Initialize ccl->quit_silently to zero.
7188
7189 * ccl.h (struct ccl_program): New member quit_silently.
7190
71912008-04-05 Chong Yidong <cyd@stupidchicken.com>
7192
7193 * search.c (compile_pattern_1): Treat non-nil and non-string of
7194 search-spaces-regexp as nil.
7195
7196 * minibuf.c (Fassoc_string): Tweak docstring.
7197
71982008-04-05 Eli Zaretskii <eliz@gnu.org>
7199
7200 * dired.c (Ffile_attributes): Support inode numbers wider than 32
7201 bits. Remove ugly WINDOWSNT-specific kludge introduced on
7202 2008-03-14 to force inode be positive.
7203
7204 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
7205 _S_* ones, since we now use our own sys/stat.h.
7206 (stat, fstat): Don't mangle the inode number.
7207 (init_user_info): Don't restrict UID and GID to 0-60000 range.
7208
72092008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
7210
7211 * frame.h (struct frame): Give one more bit to `visible' since we use
7212 values larger than 1 to indicate obscured frames on ttys.
7213
7214 * keymap.c (Qkeymap_canonicalize): New var.
7215 (Fmap_keymap_internal): New fun.
7216 (describe_map): Use keymap-canonicalize.
7217
7218 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
7219 (Fundo_boundary): Set them.
7220 (syms_of_undo): Initialize them.
7221 (record_point): Use them instead of last_point_position*.
7222 (last_undo_buffer): Change type.
7223
72242008-04-04 Jason Rumney <jasonr@gnu.org>
7225
7226 * w32font.c (w32font_text_extents): Use font's ascent and descent.
7227 (recompute_cached_metrics): Don't set ascent and descent per char.
7228
7229 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
7230 (uniscribe_check_otf): Add GC protection before consing.
7231 Rearrange loop for counting features.
7232
72332008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7234
7235 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
7236 buffer with byte-size of source buffer.
7237
72382008-04-03 Chong Yidong <cyd@stupidchicken.com>
7239
7240 * callint.c (Fcall_interactively): Handle temporary region even
7241 when shift-select-mode is off.
7242
72432008-04-03 Jason Rumney <jasonr@gnu.org>
7244
7245 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
7246
72472008-04-03 Kenichi Handa <handa@m17n.org>
7248
7249 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
7250 (CATEGORY_MASK_UTF_16): Likewise.
7251 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
7252 binary file.
7253 (detect_coding): Add null-byte detection for a binary file.
7254 (detect_coding_system): Likewise.
7255
72562008-04-03 Jason Rumney <jasonr@gnu.org>
7257
7258 * w32uniscribe.c: New file.
7259
7260 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
7261
7262 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
7263
7264 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
7265 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
7266 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
7267 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
7268 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
7269 (Qphonetic): New symbols.
7270 (syms_of_w32font): Initialize them.
7271 (font_supported_scripts): Use them.
7272 (w32font_list_family): List all charsets.
7273 (w32font_text_extents, recompute_cached_metrics): Fix metric
7274 calculations.
7275 (w32_enumfont_pattern_entity): Make full_type a DWORD.
7276 Give opentype fonts their own format.
7277 (font_matches_spec): New arguments backend and logfont.
7278 Handle :otf spec for uniscribe backend.
7279 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
7280 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
7281
7282 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
7283 font backend.
7284 (globals_of_w32fns): Initialize uniscribe font backend.
7285
7286 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
7287 dependencies.
7288 (w32uniscribe.$(O)): New file to build.
7289 (FONT_OBJ): Include w32uniscribe.$(O).
7290 (LIBS): Add uniscribe libraries.
7291
7292 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
7293
72942008-04-02 Chong Yidong <cyd@stupidchicken.com>
7295
7296 * callint.c (Vshift_select_mode): New var.
7297 (Finteractive): Document new ^ spec.
7298 (Fcall_interactively): Call handle-shift-selection if the ^ spec
7299 is present.
7300
7301 * keyboard.c (Vthis_command_keys_shift_translated): New var.
7302 (command_loop_1): Avoid running the direct display versions of
7303 forward-char and backward-char if shift-selection may occur.
7304 (read_key_sequence): Set Vthis_command_keys_shift_translated if
7305 shift-translation takes place.
7306
7307 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
7308 avoid clobbering by define-minor-mode.
7309
7310 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
7311 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
7312
7313 * syntax.c (Fforward_word): Add ^ interactive spec.
7314
7315 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
7316 (Fscroll_right): Add ^ interactive spec.
7317
73182008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
7319
7320 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
7321
7322 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
7323
7324 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
7325
73262008-03-31 Juri Linkov <juri@jurta.org>
7327
7328 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
7329
73302008-03-30 Jan Djärv <jan.h.d@swipnet.se>
7331
7332 * gtkutil.c (xg_set_geometry): Fix indentation.
7333 (xg_resize_outer_widget): Remove.
7334 (x_wm_size_hint_off): Fix indentation.
7335 (xg_frame_set_char_size): Call flush_and_sync after
7336 gtk_window_resize.
7337 (x_wm_set_size_hint): Pass NULL as geometry window to
7338 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
7339 Add menu bar and tool bar height to base height.
7340 (xg_update_frame_menubar, free_frame_menubar)
7341 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7342 (update_frame_tool_bar, free_frame_tool_bar):
7343 Change xg_resize_outer_widget to xg_frame_set_char_size.
7344
73452008-03-30 Michael Albinus <michael.albinus@gmx.de>
7346
7347 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
7348 (Fdbus_call_method): New parameter TIMEOUT.
7349 (dbus-send-signal): Optimize UNGCPRO call.
7350
73512008-03-29 Juri Linkov <juri@jurta.org>
7352
7353 * window.c (Fdisplay_buffer): Move call to
7354 Vsplit_window_preferred_function out of conditions that check
7355 if window is eligible for vertical splitting.
7356 When Vsplit_window_preferred_function is non-nil, call it and use
7357 its non-nil return value as window. Otherwise, continue doing
7358 vertical splitting using Fsplit_window with arg horflag=nil.
7359 (syms_of_window) <Vsplit_window_preferred_function>: Change the
7360 default value from `split-window' to nil.
7361
73622008-03-29 Juri Linkov <juri@jurta.org>
7363
7364 * callint.c (Fcall_interactively): Revert 2008-03-16 change
7365 for interactive code letters 'b' and 'B'.
7366
73672008-03-29 Eli Zaretskii <eliz@gnu.org>
7368
7369 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
7370 multibyte string.
7371
73722008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
7373
7374 * keyboard.c (pending_funcalls): New var.
7375 (timer_check): Run it.
7376 (syms_of_keyboard): Initialize it.
7377 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
7378 (Vdelete_terminal_functions): New vars.
7379 (syms_of_terminal): Initialize them.
7380 (Fdelete_terminal): Run delete-terminal-functions.
7381 * xdisp.c (safe_eval): Rewrite.
7382 (safe_call2): New fun.
7383 * frame.c (Qdelete_frame_functions): New var.
7384 (syms_of_frame): Initialize it.
7385 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
7386 * lisp.h (safe_call2, pending_funcalls): Declare.
7387
73882008-03-28 Andreas Schwab <schwab@suse.de>
7389
7390 * indent.c (Fmove_to_column): Move declaration before statements.
7391
73922008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
7393
7394 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
7395 (struct frame): Use bit fields for boolean vars.
7396
7397 * process.c (server_accept_connection): Simplify naming.
7398 (emacs_get_tty_pgrp): Use SDATA.
7399
7400 * coding.c (decode_coding_object): Fix last change.
7401
74022008-03-27 Jason Rumney <jasonr@gnu.org>
7403
7404 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
7405
74062008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
7407
7408 * charset.c (Fdefine_charset_internal): Change the way of
7409 registering charsets in Vcharset_order_list.
7410 (syms_of_charset): Make the charset `eight-bit' supplementary.
7411
74122008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
7413
7414 * regex.c (EXTEND_BUFFER): Change order of pointer addition
7415 operations, to avoid having the difference between pointers
7416 overflow.
7417
74182008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7419
7420 * indent.c (check_display_width): New fun.
7421 (scan_for_column): Use it.
7422
7423 * data.c (syms_of_data): Mark most-positive-fixnum and
7424 most-negative-fixnum as constants.
7425
7426 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
7427
7428 * indent.c (scan_for_column): Extract from current_column_1.
7429 Merge with the same code from Fmove_to_column.
7430 (current_column_1, Fmove_to_column): Use it.
7431
74322008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7433
7434 * keymap.c (map_keymap_internal): New fun.
7435 (map_keymap): Use it.
7436 (Fmap_keymap_internal): New fun.
7437 (Fmap_keymap): Remove left-out test from before make_save_value.
7438
7439 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
7440
7441 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
7442 Use XCAR/XCDR.
7443
7444 * process.h (struct Lisp_Process): Remove filter_multibyte.
7445 * process.c (QCfilter_multibyte): Remove.
7446 (setup_process_coding_systems): Don't use filter_multibyte.
7447 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
7448 (read_process_output): Don't adjust multibyteness to filter_multibyte.
7449 (Fset_process_filter_multibyte): Change the coding-system to
7450 approximate the previous behavior.
7451 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
7452 coding-system.
7453
7454 * coding.c (decode_coding_object): When not decoding into a buffer,
7455 obey the coding system's preference of (uni|multi)byte.
7456
74572008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7458
7459 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
7460 every char is changed and has a different byte-length.
7461 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
7462 Fix int -> EMACS_INT.
7463
74642008-03-23 David Hansen <david.hansen@gmx.net>
7465
7466 * dbusbind.c (xd_read_message): Remove extra copying of message
7467 strings. Check for NULL `interface' or `member'.
7468
74692008-03-22 Eli Zaretskii <eliz@gnu.org>
7470
7471 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7472 cFileName a file name that includes `?' characters, use the 8+3
7473 alias in cAlternateFileName instead.
7474
74752008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
7476
7477 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
7478
74792008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7480
7481 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
7482 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
7483 work on current_buffer only instead (that was already the case
7484 for some of the code anyway).
7485 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
7486 (temp_set_point, temp_set_point_both): Use EMACS_INT.
7487 (SET_PT, SET_PT_BOTH): Adjust.
7488 * intervals.h (set_point, temp_set_point, set_point_both)
7489 (temp_set_point_both): Remove redundant declarations.
7490
74912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7492
7493 * fileio.c (Finsert_file_contents):
7494 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
7495 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
7496 when buffer != current_buffer anyway.
7497
74982008-03-20 Andreas Schwab <schwab@suse.de>
7499
7500 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
7501 as default.
7502
75032008-03-19 Jason Rumney <jasonr@gnu.org>
7504
7505 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
7506 (syms_of_w32fns): Initialize them.
7507 (HOURGLASS_ID): New constant.
7508 (x_window_to_frame): Don't check hourglass_window.
7509 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
7510 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
7511 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
7512 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
7513 Only change the cursor if hourglass is not active.
7514 (Fx_create_frame): Initialize frame's current_cursor.
7515 (hourglass_atimer): Remove.
7516 (hourglass_started): New function.
7517 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
7518 (show_hourglass): Adapt to w32, changing argument to frame.
7519
7520 * w32term.h (struct w32_output): Remove hourglass_window.
7521 Add current_cursor.
7522
7523 * eval.c (call_debugger, Fsignal):
7524 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
7525 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
7526 (Fexecute_extended_command, cancel_hourglass_unwind):
7527 * minibuf.c (read_minibuf):
7528 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
7529
75302008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7531
7532 * window.c (run_funs): New fun.
7533 (run_window_configuration_change_hook): Use it to run the buffer-local
7534 and the global part of the hook.
7535
7536 * xdisp.c (format_mode_line_unwind_data): Add window argument.
7537 (unwind_format_mode_line): Restore selected window.
7538 (x_consider_frame_title, Fformat_mode_line): Set selected window.
7539
75402008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7541
7542 * editfns.c (Fchar_equal): Check they are valid characters.
7543
7544 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
7545
75462008-03-17 Andreas Schwab <schwab@suse.de>
7547
7548 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
7549 against a charset.
7550
7551 * lisp.h (Fbuffer_list): Declare.
7552
75532008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 7554
aac0c6e3
MR
7555 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
7556 handlebox_widget is != 0.
7557
75582008-03-16 Juri Linkov <juri@jurta.org>
7559
7560 * callint.c (Fcall_interactively): For interactive code letters
7561 'b' and 'B' put the buffer list into the list of default "future"
7562 values of the minibuffer.
7563
75642008-03-16 Andreas Schwab <schwab@suse.de>
7565
7566 * keyboard.c (read_key_sequence): Fix downcasing of letters with
7567 modifiers.
7568
7569 * regex.c (re_match_2_internal): Correct matching of a charset
7570 against latin-1 characters.
7571
75722008-03-16 Kenichi Handa <handa@m17n.org>
7573
7574 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
7575 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
7576 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
7577 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
7578 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
7579 CHAR_STRING_ADVANCE.
7580 (produce_chars): Fix for the case that the source and the
7581 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
7582 instead of CHAR_STRING_ADVANCE.
7583 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
7584 STRING_CHAR_ADVANCE.
7585
75862008-03-15 Andreas Schwab <schwab@suse.de>
7587
7588 * regex.c (re_match_2_internal): Correct matching of eight bit
7589 characters in unibyte strings.
7590
75912008-03-15 Martin Rudalics <rudalics@gmx.at>
7592
7593 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
7594 at end of range when it coincides with the end of the buffer.
7595
75962008-03-14 Eli Zaretskii <eliz@gnu.org>
7597
7598 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
7599
7600 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
7601
76022008-03-14 Jason Rumney <jasonr@gnu.org>
7603
7604 * editfns.c (initial_tz): New variable.
7605 (syms_of_editfns): Initialize it.
7606 (Fset_time_zone_rule): Set it when first called.
7607 Use it when TZSTRING is nil.
7608
7609 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
7610 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
7611 (monitor_from_point_fn, get_monitor_info_fn): New globals.
7612 (globals_of_w32fns): Initialize them.
7613 (compute_tip_xy): Use them to position tooltips.
7614
76152008-03-14 Glenn Morris <rgm@gnu.org>
7616
7617 * emacs.c (main): Revert previous change.
7618 (standard_args): Revert -internal-script back to -scriptload,
7619 and remove the long-option form.
7620
76212008-03-13 Glenn Morris <rgm@gnu.org>
7622
7623 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
7624 Remove option -enable-font-backend.
7625
76262008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7627
7628 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
7629
76302008-03-11 Jan Djärv <jan.h.d@swipnet.se>
7631
7632 * xterm.c (x_connection_closed): For GTK: If this is the last
7633 terminal just exit without closing the display.
7634
76352008-03-11 Jason Rumney <jasonr@gnu.org>
7636
7637 * w32font.c (w32font_full_name): Use floor to round.
7638
f0131492 76392008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
7640
7641 * sound.c (alsa_configure): Declare vol at beginning of block.
7642
7643 * fontset.c (Ffontset_info): Remove extra semicolon.
7644
76452008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7646
7647 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
7648 size of resulting string.
7649
76502008-03-10 Jason Rumney <jasonr@gnu.org>
7651
7652 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
7653
76542008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7655
7656 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
7657 Don't pretend as if characters with display property haven't been
7658 consumed for string-replacing-string case.
7659
76602008-03-08 Kim F. Storm <storm@cua.dk>
7661
7662 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
7663 (get_next_display_element, next_element_from_string)
7664 (next_element_from_ellipsis, next_element_from_buffer): Use it.
7665
76662008-03-08 Andreas Schwab <schwab@suse.de>
7667
7668 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
7669
76702008-03-06 Jason Rumney <jasonr@gnu.org>
7671
7672 * w32font.c (w32_registry): Take font_type argument. Use ANSI
7673 when charset not specified. Only translate ANSI to unicode when
7674 font_type is truetype.
7675 (w32font_coverage_ok): New function.
7676 (add_font_entity_to_list): Use it to filter unsuitable fonts.
7677
76782008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
7679
7680 * lread.c (Fread_char): Resolve modifiers.
7681 (Fread_char_exclusive): Likewise.
7682
7683 * character.c (char_resolve_modifier_mask): New function.
7684 (char_string): Use char_resolve_modifier_mask.
7685 (Fchar_resolve_modifiers): New function.
7686 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
7687 function.
7688
76892008-03-04 Jason Rumney <jasonr@gnu.org>
7690
7691 * makefile.w32-in: Always include w32font.c in the build.
7692 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
7693
76942008-03-04 Andreas Schwab <schwab@suse.de>
7695
7696 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
7697 (versionclean): Likewise.
7698
76992008-03-04 Juanma Barranquero <lekktu@gmail.com>
7700
7701 * .cvsignore: Add oo.
7702
77032008-03-03 Andreas Schwab <schwab@suse.de>
7704
7705 * coding.c (decode_coding_object): Inhibit gap shrinking while
7706 decoding in place.
7707
77082008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
7709
7710 * w32term.c: Remove unused include "gnu.h".
7711 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
7712
7713 * gnu.h: Rename to ...
7714 * emacs-icon.h: ... this.
7715 * xterm.c: Use emacs-icon.h instead of gnu.h.
7716 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
7717
77182008-03-03 Juanma Barranquero <lekktu@gmail.com>
7719
7720 * w32font.c: Include math.h.
7721
77222008-03-03 Jason Rumney <jasonr@gnu.org>
7723
7724 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
7725 Compute options separately.
7726 (w32font_open_internal): Set glyph_idx before caching metrics.
7727
7728 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
7729 Define if system headers don't.
7730 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
7731 (w32font_encode_char): Don't declare here.
7732
7733 * w32font.c (Quniscribe, QCformat): New symbols.
7734 (syms_of_w32font): Define them.
7735 (w32font_has_char): Indicate uncertainty.
7736 (w32font_encode_char): Encode as glyph point. Make static.
7737 (recompute_cached_metrics): New function.
7738 (w32font_open_internal): Use it. Set font to use glyph points
7739 initially. Set format based on type of font.
7740 (w32font_text_extents, w32font_draw): Optionally use glyph points.
7741 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
7742 on it. Set format based on information available here.
7743 (add_font_entity_to_list): Identify backend based on opentype_only.
7744
77452008-03-02 Andreas Schwab <schwab@suse.de>
7746
7747 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
7748
7749 * coding.c (decode_coding_big5, produce_chars):
7750 Fix typos in last change.
7751
77522008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
7753
7754 * gnu.h: New icon.
7755
77562008-03-02 Kenichi Handa <handa@m17n.org>
7757
7758 * coding.c (decode_coding_utf_8): When eol-type of CODING is
7759 `dos', don't decode '\r' if that is the last in the source.
7760 (decode_coding_utf_16, decode_coding_emacs_mule)
7761 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7762 (decode_coding_raw_text, decode_coding_charset): Likewise.
7763 (produce_chars): Don't decode EOL here. Use EMACS_INT.
7764
77652008-03-01 Jason Rumney <jasonr@gnu.org>
7766
7767 * w32font.c (w32font_full_name): Report point size for scalable fonts.
7768
77692008-03-01 Kim F. Storm <storm@cua.dk>
7770
7771 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
7772
77732008-03-01 Jason Rumney <jasonr@gnu.org>
7774
7775 * w32font.c (w32font_full_name): New function.
7776 (w32font_open_internal): Use it.
7777
77782008-03-01 Kim F. Storm <storm@cua.dk>
7779
7780 * dispnew.c (line_draw_cost): Fix invalid glyph check.
7781
77822008-03-01 Jason Rumney <jasonr@gnu.org>
7783
7784 * font.c (font_unparse_fcname): Increase len when style is a symbol.
7785
77862008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7787
7788 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
7789 xg_frame_resized when the event is for the edit widget.
7790
7791 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
7792
7793 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
7794 set_char_size.
7795 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
7796 operations on widgets here. Just set frame size if needed.
7797 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
7798 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
7799 (x_wm_set_size_hint): Set size hints on the edit widget only, not
7800 the whole frame.
7801 (xg_create_tool_bar): Move attachment of the tool bar to
7802 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
7803 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
7804
78052008-03-01 Jason Rumney <jasonr@gnu.org>
7806
7807 * w32fns.c (w32_msg_pump): Disable debug code.
7808
78092008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7810
7811 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
7812
78132008-02-29 Chong Yidong <cyd@stupidchicken.com>
7814
7815 * xdisp.c (next_overlay_string): Don't set
7816 overlay_strings_at_end_processed_p if we're currently reading from
7817 a display string.
7818
78192008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
7820
7821 * xdisp.c (get_overlay_strings_1): Fix typo.
7822
78232008-02-29 Chong Yidong <cyd@stupidchicken.com>
7824
7825 * xdisp.c (get_overlay_strings_1): Add missing argument type.
7826
78272008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
7828
7829 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
7830
7831 * xdisp.c (display_mode_element): Cancel the previous change.
7832 (decode_mode_spec): Likewise.
7833 (handle_auto_composed_prop): Don't make composition if it->string
7834 is a string.
7835
78362008-02-27 Kim F. Storm <storm@cua.dk>
7837
7838 * lisp.h (GLYPH): Change type from int to struct with separate char
7839 and face_id members.
7840 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
7841 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
7842 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
7843 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
7844 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
7845 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
7846 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
7847 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
7848 handle new Lisp glyph code encoding, either an integer or a cons.
7849
7850 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
7851 (GLYPH_ALIAS): Delete.
7852 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
7853 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
7854 (GLYPH_FROM_CHAR): Replace macro by ...
7855 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
7856
7857 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
7858 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
7859 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
7860 (GLYPH_INVALID_P): New macro.
7861 (spec_glyph_lookup_face): Update prototype.
7862
7863 * dispnew.c (line_draw_cost): Adapt to new glyph type.
7864 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
7865 new glyph code encoding.
7866 (spec_glyph_lookup_face): No return value; update passed glyph instead.
7867 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
7868
7869 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7870 Adapt to new glyph type and new glyph code encoding.
7871
7872 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
7873
7874 * indent.c (current_column, current_column_1, Fmove_to_column)
7875 (compute_motion): Adapt to new glyph code encoding.
7876
7877 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
7878
78792008-02-27 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * process.c (wait_reading_process_output): Check for window
7882 changes caused by timers.
7883 Suggested by Johan Bockgård.
7884
78852008-02-27 Glenn Morris <rgm@gnu.org>
7886
7887 * emacs.c (USAGE1): Add `--disable-font-backend'.
7888
78892008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
7890
7891 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
7892 is made to the buffer.
7893
78942008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
7895
7896 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
7897 (face_at_string_position):
7898 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7899 (face_at_string_position):
7900 * xdisp.c (display_string, next_overlay_change):
7901 * buffer.h (overlays_at):
7902 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
7903 Update callers.
7904
79052008-02-26 Chong Yidong <cyd@stupidchicken.com>
7906
7907 * editfns.c (Fformat): Doc fix.
7908
79092008-02-26 Juanma Barranquero <lekktu@gmail.com>
7910
7911 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
7912 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
7913 (Ffont_otf_alternates, Fquery_font): Doc fixes.
7914
79152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7916
7917 * buffer.c (Fbuffer_swap_text): New function.
7918 (syms_of_buffer): Defsubr it.
7919
79202008-02-25 Chong Yidong <cyd@stupidchicken.com>
7921
7922 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
7923
79242008-02-25 Jason Rumney <jasonr@gnu.org>
7925
7926 * w32font.c (w32font_draw): Draw one character at a time when padding.
7927
79282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7929
7930 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
7931 Handle a nil arg. Use run_window_configuration_change_hook.
7932 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
7933 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
7934 Use run_window_configuration_change_hook.
7935
79362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7937
7938 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
7939 1-pixel width.
7940
79412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7942
7943 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
7944 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
7945 if the glyph in the font is zero pixel with.
7946
7947 * dispextern.h (struct glyph_string): New member padding_p.
7948
7949 * w32font.c (w32font_draw): Pay attention to s->padding_p.
7950
7951 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
7952
7953 * xfont.c (xfont_draw): Pay attention to s->padding_p.
7954
7955 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
7956
7957 * font.c: If the font driver doesn't have `shape' function, return Qnil.
7958
79592008-02-25 Jason Rumney <jasonr@gnu.org>
7960
7961 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
7962
79632008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
7964
7965 Allow fine-grained image-cache flushing.
7966 * dispextern.h (struct image): Add `dependencies' field.
7967 (clear_image_caches): Change arg to Lisp_Object.
7968 * image.c (make_image): Initialize `dependencies' field.
7969 (clear_image_cache): Change arg to allow fine-grained flushing.
7970 Perform the flush even if image-cache-eviction-delay is nil.
7971 (clear_image_caches): Change arg to Lisp_Object.
7972 (Fclear_image_cache): Expand meaning of the argument.
7973 (mark_image): Mark `dependencies' field.
7974 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
7975 (lface_hash): Use XHASH rather than XFASTINT.
7976 (face_at_buffer_position): Fix int -> EMACS_INT position.
7977 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
7978 (select_frame_for_redisplay): Remove code duplication.
7979 (redisplay_internal): Adapt arg to call to clear_image_caches.
7980
79812008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
7982
7983 * s/vms4-0.h:
7984 * s/vms4-2.h:
7985 * s/vms4-4.h:
7986 * s/vms5-5.h: Remove, unused.
7987
7988 * s/irix5-2.h:
7989 * s/irix6-0.h:
7990 * s/riscos5.h:
7991 * s/mach-bsd4-3.h:
7992 * m/mips4.h: Remove files for obsolete systems.
7993
7994 * Makefile.in:
7995 * filelock.c:
7996 * unexmips.c:
7997 * m/hp9000s300.h:
7998 * m/iris4d.h:
7999 * s/aix3-1.h:
8000 * s/hpux.h:
8001 * s/msdos.h:
8002 * s/usg5-0.h:
8003 * s/usg5-2-2.h:
8004 * s/usg5-2.h:
8005 * s/usg5-3.h: Remove references to obsolete variables.
8006
8007 * s/irix5-0.h: Remove, move all the contents ...
8008 * s/irix6-5.h: ... here. Simplify.
8009 * config.in: Regenerate.
8010
80112008-02-24 Jason Rumney <jasonr@gnu.org>
8012
8013 * w32term.c (x_draw_glyph_string_background): Clear the background
8014 manually when cleartype is in use.
8015 (x_draw_glyph_string_foreground): Draw text transparently when
8016 cleartype is in use.
8017
8018 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8019 a font into it unless we have to.
8020
80212008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8022
8023 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8024 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8025
aac0c6e3
MR
80262008-02-18 Jason Rumney <jasonr@gnu.org>
8027
8028 * w32fns.c (Fw32_shell_execute): Encode parameters.
8029
80302008-02-09 Eli Zaretskii <eliz@gnu.org>
8031
8032 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8033
80342008-02-05 Juanma Barranquero <lekktu@gmail.com>
8035
8036 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8037
80382008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8039
8040 * xterm.c (x_set_offset): Don't change the gravity if
8041 CHANGE_GRAVITY is -1.
8042
80432008-02-23 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * fileio.c (auto_save_error_occurred): New var.
8046 (auto_save_error): Set it.
8047 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8048 error occurred.
8049
80502008-02-23 Eli Zaretskii <eliz@gnu.org>
8051
8052 * w32.c (globals_of_w32): Add initializations for
8053 g_b_init_get_sid_sub_authority and
8054 g_b_init_get_sid_sub_authority_count.
8055
80562008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8057
8058 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8059 (font_parse_xlfd): Use them for sanity check.
8060 (Finternal_set_font_style_table): Make sure the table is bijective.
8061
8062 Consolidate the image_cache to the terminal struct.
8063 * termhooks.h (P_): Remove redundant def.
8064 (struct terminal): New field `image_cache'.
8065 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8066 of FRAME_X_IMAGE_CACHE.
8067 * xterm.h (struct x_display_info): Remove image_cache field.
8068 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8069 * w32term.h (struct w32_display_info): Remove image_cache field.
8070 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8071 * macterm.h (struct mac_display_info): Remove image_cache field.
8072 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8073 * xterm.c (x_term_init):
8074 * w32term.c (w32_term_init):
8075 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8076 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8077 Remove declarations.
8078 (clear_image_caches, mark_image_cache): New declarations.
8079 * xfaces.c (clear_face_cache):
8080 * xdisp.c (redisplay_internal): Use clear_image_caches.
8081 * image.c (clear_image_cache): Don't check that a frame is on
8082 a window-system before checking if it shares the same cache.
8083 (clear_image_caches): New function.
8084 (Fclear_image_cache): Use it.
8085 (mark_image): Move from allo.c.
8086 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8087 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8088 (mark_object): Don't call mark_image_cache for frames.
8089 (mark_terminals): Call mark_image_cache.
8090
8091 * lisp.h (Fdelete_terminal): Declare.
8092
8093 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
8094 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
8095 wrong_type_argument.
8096
80972008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
8098
8099 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
8100 malayalam.el, and tamil.el. Add sinhala.el.
8101
81022008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8103
8104 * xterm.c (x_connection_closed): Consolidate identical tests.
8105 (x_delete_terminal): Don't crash if called via x_connection_closed.
8106
81072008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
8108
8109 * xdisp.c (decode_mode_spec): New arg string.
8110 (display_mode_element): Adjust for the above change.
8111
81122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8113
8114 * callint.c (Fcall_interactively): Use AREF.
8115
81162008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8117
8118 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
8119
81202008-02-18 Jan Djärv <jan.h.d@swipnet.se>
8121
8122 * xfns.c (Fx_show_tip): Set string to " " if empty.
8123
81242008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
8125
8126 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
8127 with Qt.
8128
81292008-02-17 Kenichi Handa <handa@m17n.org>
8130
8131 * ftfont.c (ftfont_shape): Return Lispy number.
8132
8133 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
8134 for GCs.
8135 (Finternal_set_font_selection_order): Call font_update_sort_order
8136 only when enable_font_backend is set.
8137 (realize_x_face): Set face->font_info to that of default face only
8138 when enable_font_backend is set.
8139
8140 * xdisp.c (handle_composition_prop): Set it->c to the fist
8141 character of the composed region.
8142 (fill_composite_glyph_string): Set base_face->font_info to
8143 s->font_info. Get a face for ascii from base_face->ascii_face.
8144 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
8145 with a face already decided.
8146 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
8147 non-negative.
8148 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
8149 call font_prepare_composition unconditionally.
8150
8151 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
8152
8153 * xterm.h (struct x_display_info): New member font.
8154
8155 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
8156 (x_set_mouse_face_gc, x_new_font): Likewise.
8157 (x_term_init): Setup display_info->font.
8158 (x_delete_terminal): Free display_info->font.
8159
8160 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
8161
8162 * ftxfont.c (ftxfont_default_fid): Delete it.
8163 (ftxfont_open): Set xfont->fid to 0.
8164 (ftxfont_end_for_frame): Clear data specific to the frame and the
8165 font-driver.
8166
8167 * xftfont.c (xftfont_default_fid): Delete it.
8168 (xftfont_open): Set xfont->fid to 0.
8169
8170 * fontset.c (FONTSET_OBJLIST): New macro.
8171 (fontset_find_font): Update font-object list of the fontset.
8172 (free_realized_fontset): New function.
8173 (free_face_fontset): Call free_realized_fontset.
8174 (Ffont_info): Call font_close_object only when enable_font_backend
8175 is set.
8176
8177 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
8178 [HAVE_NTGUI]: Include w32term.h.
8179 [MAC_OS]: Include macterm.ch.
8180 (font_otf_ValueRecord): Use make_number.
8181 (font_finish_cache): Fix handling of reference count.
8182 (font_clear_cache): Update num_fonts.
8183 (font_open_entity): Update smallest_char_width and
8184 smallest_font_height of the frame.
8185 (font_close_object): Update num_fonts.
8186 (Fclear_font_cache): Fix finding the target cache data.
8187
81882008-02-16 Glenn Morris <rgm@gnu.org>
8189
8190 * fontset.c (Finternal_char_font): Fix compilation warning.
8191
81922008-02-16 Eli Zaretskii <eliz@gnu.org>
8193
8194 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
8195 instead of char arrays. Enlarge the size of array passed to
8196 get_token_information.
8197
8198 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
8199 warnings.
8200
82012008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
8202
8203 * .gdbinit: Don't set `args', it breaks gdb --args.
8204
82052008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
8206
8207 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
8208 within a narrowed buffer.
8209
82102008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
8211
8212 * coding.c (decode_coding_object, encode_coding_object):
8213 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
8214
82152008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8216
8217 * coding.c (coding_set_destination): Use BEG_BYTE rather than
8218 hardcoding 1.
8219 (detect_coding_system):
8220 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
8221 (string_char_to_byte, string_byte_to_char, insert_from_gap):
8222 * insdel.c (insert_from_gap):
8223 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
8224 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
8225 (string_to_multibyte):
8226 * character.c (chars_in_text, multibyte_chars_in_text):
8227 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
8228
8229 * character.h (FETCH_STRING_CHAR_ADVANCE)
8230 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
8231 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
8232 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
8233
8234 * casefiddle.c (casify_region): Only call after-change and composition
8235 functions on the part of the region that was changed.
8236
8237 * keyboard.c (read_avail_input):
8238 * frame.c (Fdelete_frame): Call Fdelete_terminal.
8239
82402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8241
8242 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
8243 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
8244
82452008-02-11 Juanma Barranquero <lekktu@gmail.com>
8246
8247 * w32menu.c (push_submenu_start, push_submenu_end)
8248 (push_left_right_boundary, push_menu_pane, push_menu_item):
8249 * keyboard.c (read_key_sequence): Don't pass args with side effects
8250 to AREF, it fails when compiling with -DENABLE_CHECKING.
8251
82522008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
8253
8254 * Makefile.in (${lispsource}international/charprop.el):
8255 Delete this target.
8256
8257 * search.c (boyer_moore): Fix incorrect synching of the trunk and
8258 emacs-unicode-2.
8259
82602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8261
8262 * terminal.c (Fdelete_terminal): Clean up the `force' path.
8263
82642008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * frame.c (Qnoelisp): New symbol.
8267 (syms_of_frame): Initialize it.
8268 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
8269 harmless Elisp code, from a strong `force' from x_connection_closed.
8270 * frame.h (Qnoelisp): Declare.
8271 * xterm.c (x_connection_closed): Pass `noelisp'.
8272
8273 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
8274 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
8275 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
8276 rather than `int' for the type of `type'.
8277
82782008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
8279
8280 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
8281
8282 * Makefile.in (GNUC): Remove support for gcc-1.x.
8283
82842008-02-10 Richard Stallman <rms@gnu.org>
8285
8286 * lisp.h (ASET): Use AREF, not ASLOT.
8287
82882008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * lisp.h (ASET): Check bounds.
8291
82922008-02-10 Glenn Morris <rgm@gnu.org>
8293
8294 * buffer.c (mode-name): Doc fix.
8295
82962008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8297
8298 * Makefile.in:
8299 * emacs.c:
8300 * gmalloc.c:
8301 * keyboard.c:
8302 * lisp.h:
8303 * m/ibm370aix.h:
8304 * process.c:
8305 * regex.c:
8306 * s/hpux.h:
8307 * sysdep.c:
8308 * sysselect.h:
8309 * systty.h:
8310 * unexec.c:
8311 * w32term.c:
8312 * xsmfns.c:
8313 * xterm.c: Remove code that deals with obsolete variables.
8314
8315 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
8316
8317 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
8318 nothing else needs it anymore.
8319
83202008-02-09 Eli Zaretskii <eliz@gnu.org>
8321
8322 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
8323 instead of unibyte_char_to_multibyte.
8324
83252008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8326
8327 * s/gnu-linux.h: Remove commented out code.
8328
8329 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
8330
8331 * Makefile.in: Update what RMS says about using autoconf.
8332 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
8333 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
8334 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
8335 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
8336
83372008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8338
8339 * keymap.c (Fkey_description): Move side effect outside of macro call.
8340
8341 * xfaces.c (Finternal_make_lisp_face):
8342 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
8343
8344 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
8345 (syms_of_fontset): Use ASET.
8346
8347 * fns.c (concat): Move side effect outside of macro call.
8348 (hash_clear): Use ASET.
8349
83502008-02-08 Richard Stallman <rms@gnu.org>
8351
8352 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
8353 If FORCE, and frame has a surrogate minibuffer for another frame,
8354 delete the other frame first.
8355
83562008-02-07 Timo Savola <timo.savola@iki.fi>
8357
8358 * xterm.c (x_detect_focus_change): Handle embed client message.
8359 (handle_one_xevent): Ditto.
8360 (handle_one_xevent): If embedded and we get a button press/release,
8361 request focus.
8362 (xembed_set_info, xembed_send_message): New functions.
8363 (x_make_frame_visible): Call xembed_set_info if embedded.
8364 (x_make_frame_invisible): Call xembed_set_info if embedded.
8365 (x_term_init): Initialize Xatom_XEMBED.
8366 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
8367 (x_iconify_frame): Ditto.
8368
8369 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
8370 (enum xembed_info, enum xembed_message, enum xembed_focus)
8371 (enum xembed_modifier, enum xembed_accelerator): New.
8372 (xembed_set_info, xembed_send_message): Declare.
8373 (FRAME_X_EMBEDDED_P): New.
8374
8375 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
8376 gtk_plug_new.
8377
8378 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
8379 window ID of a frame.
8380 (x_window): Reparent frame if embedded.
8381 (Fx_create_frame): Don't set border width if embedded.
8382
8383 * emacs.c (USAGE3): Add --parent-id.
8384 (standard_args): Ditto.
8385
83862008-02-07 Jan Djärv <jan.h.d@swipnet.se>
8387
8388 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
8389
83902008-02-07 Jim Meyering <meyering@redhat.com>
8391
8392 Use "do...while (0)", not "if (1)...else" in macro definitions.
8393 The latter provokes a warning from gcc about the empty else, when
8394 followed by ";". Also, without that trailing semicolon, it would
8395 silently swallow up any following statement.
8396 * syntax.h (SETUP_SYNTAX_TABLE)
8397 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
8398 * buffer.h (DECODE_POSITION): Likewise.
8399 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
8400 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
8401 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
8402 (FETCH_CHAR_ADVANCE): Likewise.
8403 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
8404
84052008-02-07 Jim Meyering <meyering@redhat.com>
8406
8407 * lread.c [lint]: Don't include <sys/inode.h>.
8408
84092008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
8410
8411 * xselect.c (x_handle_dnd_message):
8412 * xmenu.c (digest_single_submenu, xmenu_show):
8413 * xdisp.c (with_echo_area_buffer_unwind_data)
8414 (format_mode_line_unwind_data, unwind_format_mode_line)
8415 (display_menu_bar):
8416 * eval.c (Ffetch_bytecode):
8417 * doc.c (store_function_docstring):
8418 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
8419 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
8420 * buffer.c (add_overlay_mod_hooklist): Use ASET.
8421
84222008-02-07 Kenichi Handa <handa@m17n.org>
8423
8424 * ftxfont.c (ftxfont_open): Don't set
8425 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
8426
8427 * ftfont.c (ftfont_open): Fix previous change.
8428
84292008-02-06 Jason Rumney <jasonr@gnu.org>
8430
8431 * w32font.c (w32font_text_extents): Fill in lbearing metric.
8432 Use cached metrics for ASCII characters.
8433 (w32font_open_internal): Don't set font's owning_frame.
8434 Cache metrics for ASCII characters.
8435
8436 * w32font.h (struct w32font_info): Add ascii_metrics.
8437 Remove owning_frame.
8438
84392008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
8440
8441 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
8442 to negative value.
8443
8444 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
8445
8446 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
8447
8448 * charset.c (syms_of_charset): Set QCtest and Qeq.
8449
84502008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * process.c (Fstart_process):
8453 * callproc.c (Fcall_process): Handle the case where
8454 Funhandled_file_name_directory returns nil.
8455
8456 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
8457 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
8458 * font.c (check_gstring): Use them and AREF to access the vector before
8459 we know it's really a gstring.
8460 (Ffont_shape_text): Fix typo.
8461 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
8462
8463 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
8464 Declare.
8465
8466 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
8467
84682008-02-05 Jason Rumney <jasonr@gnu.org>
8469
8470 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
8471 Set smallest_font_height and smallest_char_width in display info.
8472
84732008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
8474
8475 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
8476
84772008-02-05 Miles Bader <miles@gnu.org>
8478
8479 * xfaces.c (get_lface_attributes, merge_named_face)
8480 (lookup_named_face, lookup_derived_face, realize_named_face):
8481 Revert 2008-02-01 change by cyd@stupidchicken.com.
8482
84832008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
8484
8485 * fontset.c (Ffontset_info): Handle the case of inhibitting the
8486 fallback fonts.
8487 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
8488
84892008-02-04 Jason Rumney <jasonr@gnu.org>
8490
8491 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
8492 set full_name.
8493 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
8494
84952008-02-03 Jason Rumney <jasonr@gnu.org>
8496
8497 * makefile.w32-in (OBJ1): Include font.o here.
8498 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
8499
85002008-02-02 Jason Rumney <jasonr@gnu.org>
8501
8502 * makefile.w32-in (temacs): Bump EMHEAP to 21.
8503
85042008-02-01 Jason Rumney <jasonr@gnu.org>
8505
8506 * s/cygwin.h: Define VIRT_ADDR_VARIES.
8507
8508 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
8509
85102008-02-01 Andreas Schwab <schwab@suse.de>
8511
8512 * Makefile.in (shortlisp, lisp): Update for rename of
8513 ../lisp/language/myanmar.el.
8514
85152008-02-01 Chong Yidong <cyd@stupidchicken.com>
8516
8517 * xfaces.c (get_lface_attributes): Delete function.
8518 (merge_named_face, lookup_named_face, lookup_derived_face)
8519 (realize_named_face): Call lface_from_face_name directly, and use
8520 the fact that merge_face_vectors does not alter its FROM argument.
8521
85222008-02-01 Jason Rumney <jasonr@gnu.org>
8523
8524 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
8525 input in the default locale. Handle non-Unicode multibyte input.
8526
85272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8528
8529 * fontset.c (reorder_font_vector): Exclude nil elements from the
8530 font group. Don't try multiple fonts.
8531 (fontset_font): Adjust for the above change.
8532 (Finternal_char_font): Return nil if the found font doesn't
8533 contain the character ch.
8534
8535 * Makefile.in (lisp, shortlisp): Add cham.el.
8536
85372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8538
8539 * font.h (FONTP): Make it return 1 also for a font-object.
8540
8541 * .gdbinit (xfontset): New function.
8542
8543 * font.c (font_find_for_lface): Check if the character C is
8544 supported or not only for the first font.
8545
8546 * fontset.c (reorder_font_vector): Fix typo.
8547 (fontset_find_font): Don't add a font-spec specifying a script.
8548 Use 0 (not Qt) for the indication of empty font-group. Change the
8549 format of RFONT-DEF. Return Qt if no font in the font-group
8550 support the character.
8551 (fontset_font): Adjust for the above change. If no font was
8552 found the character, remember that.
8553 (face_for_char): Adjust for the change of RFONT-DEF.
8554 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
8555 no font for the target.
8556 (Finternal_char_font): Adjust for the change of RFONT-DEF.
8557
85582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8559
8560 * font.c (font_load_for_face): Handle the case that the font in
8561 face->lface is a string.
8562
85632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8564
8565 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
8566
85672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8568
8569 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
8570 Fix previous change. If the frame is not on a window system,
8571 signal an error.
8572
85732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8574
8575 * coding.c (decode_coding_object, encode_coding_object): Adjust
8576 marker positions after conversion.
8577
8578 * lisp.h (struct Lisp_Marker): New member need_adjustment.
8579
85802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8581
8582 * font.c (font_find_for_lface): Fix the handling of the return
8583 value of font_has_char.
8584 (Ffont_shape_text): Fix previous change.
8585
8586 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
8587 (fontset_ref_and_range): Delete it.
8588 (fontset_find_font): Call char_table_ref_and_range instead of
8589 FONTSET_REF_AND_RANGE.
8590 (make_fontset): Don't setup font groups of Latin here.
8591 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
8592 (new_fontset_from_font): Make the specified font the default for
8593 all Latin characters.
8594
85952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8596
8597 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
8598 is on a window system before accessing the fontset of the frame.
8599
86002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8601
8602 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
8603
8604 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
8605 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
8606
8607 * font.c (Ffont_shape_text): If the font driver doesn't have a
8608 shaper function, make zero-width glyphs to have at least one-pixel
8609 width. Fix setting of `to' field of glyphs.
8610
86112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8612
8613 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
8614 glyphs.
8615
8616 * font.h (struct font_driver): Improve docstring of member `shape'.
8617
86182008-02-01 Kenichi Handa <handa@m17n.org>
8619
8620 * composite.c (syms_of_composite): Fix docstring of
8621 auto-composition-function.
8622
8623 * font.h (LGLYPH_SIZE): New macro.
8624
8625 * font.c (Ffont_fill_gstring): Stop filling when a character not
8626 supported by the font is found.
8627 (Ffont_shape_text): When a shape callback function returns nil,
8628 try at most two more times with larger gstring.
8629 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
8630
8631 * xdisp.c (handle_auto_composed_prop): Change the argument to
8632 auto-composition-function.
8633
8634 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
8635 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
8636 Lispy glyph and store it in the lgstring.
8637
8638 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
8639
8640 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
8641
86422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8643
8644 * font.c (Ffont_shape_text): Avoid unnecessary composition.
8645
8646 * fontset.c (Vfont_encoding_charset_alist): New variable.
8647 (syms_of_fontset): DEFVAR it.
8648 (reorder_font_vector, fontset_find_font): Optimize for the case of
8649 no need of reordering.
8650 (face_for_char): Map the charset property by
8651 Vfont_encoding_charset_alist.
8652
86532008-02-01 Jason Rumney <jasonr@gnu.org>
8654
8655 * w32font.c (logfonts_match): Don't check adstyle here.
8656 (font_matches_spec): Check here against physical font instead.
8657 (add_font_entity_to_list): Avoid some substitutions.
8658
8659 * font.c (font_parse_fcname): Default weight and slant to normal.
8660 (font_score): Prefer normal fonts if weight or slant unspecified.
8661 (font_score) [WINDOWSNT]: Scale weight difference down to closer
8662 match freetype scores.
8663
86642008-02-01 Jason Rumney <jasonr@gnu.org>
8665
8666 * w32font.c (w32font_text_extents): Don't use the frame stored in the
8667 font, as it may have been deleted.
8668 (w32_enumfont_pattern_entity): Map generic family to adstyle using
8669 most common hyphenless variation.
8670 (logfonts_match): Check generic family.
8671 (font_matches_spec): Don't check generic family here.
8672 (fill_in_logfont): Set generic family based on adstyle.
8673
8674 * w32font.h (w32font_get_cache): Update declaration.
8675
86762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8677
8678 * ftfont.c (ftfont_get_cache): Adjust the argument type.
8679
8680 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
8681 If none of the new drivers are available, call font_update_drivers
8682 with the old drivers.
8683
8684 * w32font.c (w32font_get_cache): Adjust the argument type.
8685
8686 * xfont.c (xfont_get_cache): Adjust the argument type.
8687
8688 * font.h (struct font_driver): Change argument type of get_cache.
8689
8690 * xftfont.c (xftfont_start_for_frame): Delete prototype.
8691
8692 * font.c (Ffont_get): Fix arguments to Fassoc.
8693 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
8694 (font_clear_cache): New function.
8695 (font_list_entities, font_matching_entity): Use font_get_cache.
8696 (font_update_drivers): Call font_clear_cache when finishing a driver.
8697
8698 * fontset.c (fontset_find_font): Fix previous change.
8699
87002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8701
8702 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
8703 dpyinfo->font_table.
8704 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
8705 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
8706
8707 * font.c (font_at): Handle the case that the arg C is negative.
8708 Handle the unibyte case.
8709 (Ffont_at): Call font_at with the arg C -1.
8710
8711 * xdisp.c (handle_auto_composed_prop): Don't get a character at
8712 the position here, and call font_at with the arg C -1.
8713 Don't check the range of the existing composition at the point.
8714
87152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8716
8717 * fontset.c (fontset_add): New args charset_id and family.
8718 Change caller.
8719 (load_font_get_repertory, fontset_find_font): Assume that
8720 font_spec is always a font-spec object.
8721 (Fset_fontset_font): Always store a font-spec object in a fontset.
8722
8723 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
8724 instead of get_property_and_range.
8725
87262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8727
8728 * xftfont.c (struct xftfont_info): Delete the member ft_face.
8729 (xftfont_open): Don't keep locking face.
8730 (xftfont_close): Don't unlock face.
8731 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
8732
8733 * fontset.c (fontset_find_font): Don't prefer a font of
8734 supplementary charset.
8735
87362008-02-01 Kenichi Handa <handa@m17n.org>
8737
8738 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
8739 script, langsys_tag to langsys, new member script.
8740 (OTF_TAG_STR): Terminate by '\0'.
8741 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
8742 listing to the script specified in that property. Fix arg to
8743 OTF_check_features.
8744
87452008-02-01 Jason Rumney <jasonr@gnu.org>
8746
8747 * w32font.h: New file.
8748
8749 * w32font.c: Include it.
8750 (struct w32font_info): Add owning_frame field. Move to w32font.h.
8751 (w32font_open): Set owning_frame.
8752 (w32font_text_extents): Use owning_frame.
8753 (struct font_callback_data): Add opentype_only field.
8754 (add_font_entity_to_list): Use it to filter fonts.
8755 Don't check against full name.
8756 (w32font_list_internal): New function.
8757 (w32font_list): Use it.
8758 (w32font_match_internal): New function.
8759 (w32font_match): Use it.
8760 (w32font_open_internal): New function.
8761 (w32font_open): Use it.
8762 (w32font_get_cache, w32font_close, w32font_has_char)
8763 (w32font_encode_char, w32font_text_extents, w32font_draw):
8764 Make non-static.
8765
8766 * makefile.w32-in (w32font.o): Depend on w32font.h.
8767
87682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8769
8770 * charset.c (Fdefine_charset_internal): Record a supplementary
8771 charset at the tail of Vcharset_order_list.
8772
8773 * font.c (Ffont_shape_text): Fix the return value.
8774
8775 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
8776
8777 * xdisp.c (handle_auto_composed_prop): Fix previous change.
8778
87792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8780
8781 * ftfont.c (struct OpenTypeSpec): New struct.
8782 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
8783 (ftfont_get_open_type_spec): New function.
8784 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
8785
8786 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
8787
87882008-02-01 Jason Rumney <jasonr@gnu.org>
8789
8790 * w32font.c (add_font_entity_to_list): Compare only the beginning
8791 of full name.
8792
87932008-02-01 Kenichi Handa <handa@m17n.org>
8794
8795 * xdisp.c (handle_auto_composed_prop): Simplify the code.
8796 Never return HANDLED_RECOMPUTE_PROPS.
8797
87982008-02-01 Kenichi Handa <handa@m17n.org>
8799
8800 * font.c (font_gstring_produce): Delete it.
8801
8802 * composite.h (COMPOSITION_METHOD):
8803 Handle COMPOSITION_WITH_GLYPH_STRING.
8804
88052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8806
8807 * xfont.c (Qx): Delete.
8808 (syms_of_xfont): Don't initialize Qx.
8809
8810 * composite.h (enum composition_method):
8811 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
8812
88132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8814
8815 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
8816 (choose_face_font): Accept new form of font-spec.
8817
8818 * frame.h (font_driver_list): Declare it unconditionally.
8819 (struct frame): Define members font_driver_list and font_data_list
8820 unconditionally.
8821
8822 * fontset.c: Include "font.h" unconditionally.
8823 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
8824 (Fset_fontset_font): Accept a font-spec object.
8825
8826 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
8827 PIXEL_SIZE part a wild card.
8828
8829 * dispextern.h (struct glyph_string): Define members clip and
8830 num_clips unconditionally.
8831 (struct face): Define members font_info and extra unconditionally.
8832
8833 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
8834 ftfont_info only when HAVE_LIBOTF is defined.
8835
88362008-02-01 Andreas Schwab <schwab@suse.de>
8837
8838 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
8839 and end.
8840
88412008-02-01 Jason Rumney <jasonr@gnu.org>
8842
8843 * w32font.c (w32font_driver): Add new fields.
8844
88452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8846
8847 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
8848 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
8849 (LIBES): Add @M17N_FLT_CFLAGS@.
8850
8851 * composite.c (compose_text): Don't treat the new style
8852 composition specially.
8853
8854 * emacs.c (main): Call syms_of_font unconditionally.
8855
8856 * font.h (FONT_ENTITY_NOT_LOADABLE)
8857 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
8858 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
8859 (struct font_driver): New member shape.
8860 (font_registry_charsets): Extern it.
8861 (font_find_for_lface, font_prepare_composition): Adjust prototype.
8862 (font_otf_capability, font_drive_otf): Delete their externs.
8863
8864 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
8865 (font_charset_alist, font_registry_charsets): Move from xfont.c
8866 and rename.
8867 (font_prop_validate_otf): New function.
8868 (font_property_table): Register it for QCotf.
8869 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
8870 (font_drive_otf): Delete.
8871 (font_prepare_composition): New arg F. Adjust for the change of
8872 lispy gstring.
8873 (font_find_for_lface): New arg C.
8874 (font_load_for_face): Adjust for the change of font_find_for_lface.
8875 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
8876 lispy gstring.
8877 (Ffont_shape_text): New function.
8878 (Fopen_font): If the font size is not given, use 12-pixel.
8879 (Ffont_at): New arg STRING.
8880 (syms_of_font): Initalize font_charset_alist.
8881 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
8882 conditionally.
8883
8884 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
8885 fonts of the same font-spec. Change the format of RFONT-DEF.
8886 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
8887 Adjust for the change of RFONT-DEF.
8888 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
8889
8890 * ftfont.h: New file.
8891
8892 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
8893 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8894 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8895 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
8896 font_otf_capability and font_drive_otf, set ftfont_shape.
8897 (ftfont_list): Adjust for the change of :otf property value.
8898 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
8899 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
8900 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
8901 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8902 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
8903 (otf_gstring, gstring, m17n_flt_initialized): New variables.
8904
8905 * w32term.c (x_draw_composite_glyph_string_foreground):
8906 Adjust for the change of lispy gstring.
8907
8908 * xdisp.c (handle_composition_prop): Adjust for the change of
8909 lispy gstring. Call a function for auto-composition with the
8910 third arg it->window.
8911 (fill_composite_glyph_string): Adjust for the change of lispy string.
8912 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
8913
8914 * xfaces.c (set_font_frame_param): Adjust for the change of
8915 font_find_for_lface.
8916
8917 * xfont.c (x_font_charset_alist): Move to font.c and rename.
8918 (xfont_registry_charsets): Likewise. Change caller.
8919 (syms_of_xfont): Don't handle x_font_charset_alist.
8920
8921 * xftfont.c: Include "ftfont.h".
8922 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8923 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8924 (xftfont_close) [HAVE_LIBOTF]: Close otf.
8925 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8926 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
8927 Set xftfont_driver.shape to xftfont_shape.
8928
8929 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8930 the change of lispy gstring.
8931
89322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8933
8934 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
8935
89362008-02-01 Jason Rumney <jasonr@gnu.org>
8937
8938 * w32font.c (w32font_draw): Fill background manually.
8939
89402008-02-01 Jason Rumney <jasonr@gnu.org>
8941
8942 * font.c (Qfontp): Remove unused symbol.
8943 (QCantialias): New symbol.
8944 (syms_of_font): Define it.
8945 (font_property_table): Set a validator for QCantialias.
8946
8947 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
8948 Define if not already.
8949 (QCfamily): Share with xfaces.c.
8950 (Qstandard, Qsubpixel, Qnatural): New symbols.
8951 (syms_of_w32font): Define them. Don't define QCfamily here.
8952 (w32_antialias_type, lispy_antialias_type): New functions.
8953 (w32_enumfont_pattern_entity): New arg requested_font.
8954 Set antialias parameter if non-default was requested.
8955 (fill_in_logfont): Fill in lfQuality if :antialias specified.
8956
89572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8958
8959 * lread.c (read1): Undo the previous change.
8960
89612008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
8962
8963 * frame.c (Fdelete_frame): Call font_update_drivers only when
8964 USE_FONT_BACKEND is defined.
8965
89662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8967
8968 * font.h (struct font_bitmap): New member bits_per_pixel.
8969 (struct font_driver): New members start_for_frame and end_for_frame.
8970 (struct font_data_list): New struct.
8971 (font_put_frame_data, font_get_frame_data): Extern them.
8972
8973 * frame.h (struct frame): New member font_data_list.
8974
8975 * font.c (font_update_drivers): Call driver->start_for_frame and
8976 driver->end_for_frame at proper timings.
8977 (font_put_frame_data, font_get_frame_data): New functions.
8978 (Ffont_spec): Add usage in the docstring.
8979
8980 * frame.c (make_frame): Initialize f->font_data_list to NULL.
8981 (Fdelete_frame): Call font_update_drivers.
8982
8983 * xftfont.c (struct xftface_info): Delete the member xft_draw.
8984 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
8985 (xftfont_get_xft_draw): New function.
8986 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
8987 (xftfont_end_for_frame): New function.
8988 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
8989
8990 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
8991 Change argument. Cache GCs in the per-frame data.
8992 (struct ftxfont_frame_data): New struct.
8993 (ftxfont_draw_bitmap): New arg gc_fore and flush.
8994 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
8995 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
8996 (ftxfont_end_for_frame): New function.
8997 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
8998
8999 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9000
90012008-02-01 Kenichi Handa <handa@m17n.org>
9002
9003 * xselect.c (Vselection_coding_system)
9004 (Vnext_selection_coding_system): Delete them.
9005 (syms_of_xselect): Don't declare selection-coding-system and
9006 next-selection-coding-system. They are declared in select.el.
9007
90082008-02-01 Jason Rumney <jasonr@gnu.org>
9009
9010 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9011
9012 * w32fns.c: Include imm.h.
9013 (get_composition_string_fn, get_ime_context_fn): New optional
9014 system functions.
9015 (globals_of_w32fns): Load them from imm32.dll.
9016 (ignore_ime_char): New flag.
9017 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9018 WM_IME_ENDCOMPOSITION messages.
9019
9020 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9021 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9022
90232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9024
9025 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9026 (READCHAR_REPORT_MULTIBYTE): New macro.
9027 (readchar): New 2nd arg MULTIBYTE.
9028 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9029 Make symbol's name multibyte according to the multibyteness of the
9030 source.
9031
90322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9033
9034 * xfaces.c (face_for_overlay_string): Call lookup_face with
9035 correct arguments (fix of synching with the trunk).
9036
90372008-02-01 Kenichi Handa <handa@m17n.org>
9038
9039 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9040 (font_prop_validate_non_neg, font_prop_validate_spacing):
9041 Delete argument prop_index.
9042 (font_property_table): Change arguments to validater. Change Callers.
9043 (font_lispy_object): Delete.
9044 (font_at): Use font_find_object instead fo font_lispy_object.
9045
90462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9047
9048 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9049 and file names.
9050
90512008-02-01 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9054 (font_matches_spec): Remove debug output.
9055 (add_font_entity_to_list): Avoid using substituted fonts.
9056
90572008-02-01 Jason Rumney <jasonr@gnu.org>
9058
9059 * doc.c (Fsnarf_documentation):
9060 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9061
90622008-02-01 Miles Bader <miles@gnu.org>
9063
9064 * dispextern.h (struct glyph_row): Only define "clip" field if
9065 HAVE_WINDOW_SYSTEM is defined.
9066
90672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9069 Fix up multi-tty merge.
9070
9071 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9072 and indentation.
9073
9074 * xfaces.c (free_realized_face, clear_face_gcs):
9075 Include font_done_for_face in the input_blocked section, just in case.
9076
9077 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9078 (get_char_face_and_encoding): Undo last change and remove the *other*
9079 duplicate definition (i.e. keep the one that's better scoped and that
9080 includes code for the font-backend).
9081
9082 * terminal.c (create_terminal): Default keyboard_coding to
9083 `no-conversion' and terminal_coding to `undecided'.
9084
9085 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9086
9087 * fontset.c (free_realized_fontsets): Check that the table entry does
9088 contain a fontset before trying to compare it to `base'.
9089
9090 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9091 syms_of_charset, and syms_of_coding earlier because init_window_once
9092 now needs Vcoding_system_hash_table to be setup.
9093
9094 * coding.h (default_buffer_file_coding): Remove.
9095
9096 * coding.c (default_buffer_file_coding): Remove.
9097 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
9098 than ->symbol, and use the terminal-local coding system.
9099 (syms_of_coding): Don't setup the coding-systems that are not
9100 terminal-local.
9101 (Fdefine_coding_system_internal): Use XCAR/XCDR.
9102
9103 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
9104 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
9105
9106 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
9107 in chartab.c and were re-added here by mistake.
9108 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
9109
9110 * doc.c (Fsnarf_documentation):
9111 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
9112 src to etc.
9113
9114 * ChangeLog.10: Add mistakenly removed entry.
9115
91162008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
9117
9118 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
9119
91202008-02-01 Miles Bader <miles@gnu.org>
9121
9122 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
9123 Add extra args to FACE_FOR_CHAR.
9124
91252008-02-01 Kenichi Handa <handa@m17n.org>
9126
9127 * keymap.c (where_is_internal_1): If key is a cons, store the copy
9128 in sequence.
9129
9130 * chartab.c (map_sub_char_table, map_char_table): If the range
9131 contains just one character, call the function with that character
9132 even if the depth is not 3.
9133
91342008-02-01 Jason Rumney <jasonr@gnu.org>
9135
9136 * w32font.c (w32font_text_extents): Calculate metrics for the
9137 whole string.
9138
91392008-02-01 Jason Rumney <jasonr@gnu.org>
9140
9141 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
9142
91432008-02-01 Jason Rumney <jasonr@gnu.org>
9144
9145 * w32term.c (x_set_glyph_string_clipping): Use
9146 get_glyph_string_clip_rects.
9147 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9148 Adjust for the change of struct glyph_string.
9149
9150 * w32font.c (w32font_draw): Do clipping here.
9151
91522008-02-01 Kenichi Handa <handa@m17n.org>
9153
9154 * xftfont.c (xftfont_draw): Adjust for the change of struct
9155 glyph_string.
9156
9157 * xterm.c (x_set_glyph_string_clipping): Use
9158 get_glyph_string_clip_rects.
9159 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9160 Adjust for the change of struct glyph_string.
9161
9162 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
9163 the resulting clip(s}.
9164 (expose_overlaps): Add arg r. Change callers. Set it to
9165 row->clip temporarily.
9166 (expose_window): Redraw rows overlapping the exposed area.
9167
9168 * dispextern.h (struct glyph_row): New member clip.
9169 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
9170 clip_height, new member clip, and num_clips.
9171
91722008-02-01 Kenichi Handa <handa@m17n.org>
9173
9174 * data.c (Fchar_or_string_p): Fix docstring.
9175
91762008-02-01 Kenichi Handa <handa@m17n.org>
9177
9178 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
9179 create a temporary XftDraw object.
9180
91812008-02-01 Kenichi Handa <handa@m17n.org>
9182
9183 * font.c (Ffontp): Fix docstring.
9184
9185 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
9186 strong evidence of ISO-2022.
9187
91882008-02-01 Kenichi Handa <handa@m17n.org>
9189
9190 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
9191 SYNTAX_ENTRY_FOLLOW_PARENT.
9192
91932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9194
9195 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
9196 its type.
9197 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9198 Update to the new type of weak_hash_tables and next_weak.
9199
9200 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
9201 a plain C pointer to Lisp_Hash_Table.
9202
9203 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
9204 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
9205 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
9206 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
9207 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
9208 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
9209 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
9210 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
9211 (GC_EQ): Remove since they've been identical to their non-GC_
9212 alter-egos ever since the markbit was eradicated.
9213
9214 * alloc.c:
9215 * buffer.c:
9216 * buffer.h:
9217 * data.c:
9218 * fileio.c:
9219 * filelock.c:
9220 * fns.c:
9221 * frame.h:
9222 * lisp.h:
9223 * macterm.c:
9224 * print.c:
9225 * process.c:
9226 * w32fns.c:
9227 * w32menu.c:
9228 * w32term.c:
9229 * xfns.c:
9230 * xmenu.c:
9231 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
9232
92332008-02-01 Kenichi Handa <handa@m17n.org>
9234
9235 * chartab.c (map_sub_char_table): Make it work for the top-level
9236 char-table. Fix handling of parent char-table.
9237 (map_char_table): Adjust for the above change.
9238
92392008-02-01 Jason Rumney <jasonr@gnu.org>
9240
9241 * w32font.c (Qgdi): Rename from Qw32.
9242
92432008-02-01 Jason Rumney <jasonr@gnu.org>
9244
9245 * w32bdf.c (get_quoted_string): Make function static.
9246
92472008-02-01 Kenichi Handa <handa@m17n.org>
9248
9249 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
9250 bigger ascent and descent than those of the font, use them as
9251 font's ascent and descent.
9252
92532008-02-01 Kenichi Handa <handa@m17n.org>
9254
9255 * Makefile.in (${lispsource}international/charprop.el): Move this
9256 target within "#ifdef HAVE_UNIDATA" and "#endif".
9257
92582008-02-01 Kenichi Handa <handa@m17n.org>
9259
9260 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
9261 (shortlisp): Add ../lisp/language/tai-viet.el.
9262
92632008-02-01 Ulrich Mueller <ulm@gentoo.org>
9264
9265 * Makefile.in (${lispsource}international/charprop.el): Depend on
9266 temacs${EXEEXT}.
9267
92682008-02-01 Jason Rumney <jasonr@gnu.org>
9269
9270 * w32font.c (w32font_close): Delete the GDI font object.
9271
9272 * w32menu.c: Include character.h.
9273
9274 * w32proc.c: Likewise.
9275
9276 * w32select.c: Likewise.
9277
9278 * makefile.w32-in (w32proc.o): Depend on character.h.
9279
92802008-02-01 Jason Rumney <jasonr@gnu.org>
9281
9282 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
9283
9284 * w32menu.c (syms_of_w32menu): Likewise.
9285
9286 * w32proc.c (syms_of_ntproc): Likewise.
9287
9288 * w32select.c (syms_of_w32select): Likewise.
9289
9290 * w32term.c (syms_of_w32term): Likewise.
9291
92922008-02-01 Jason Rumney <jasonr@gnu.org>
9293
9294 * w32font.c (w32font_draw): Delete brush after using it.
9295
92962008-02-01 Jason Rumney <jasonr@gnu.org>
9297
9298 * w32font.c (w32font_open): Don't set font_idx.
9299 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
9300 to font settings.
9301 (w32font_draw): Fill background explicitly.
9302
93032008-02-01 Jason Rumney <jasonr@gnu.org>
9304
9305 * w32term.c (w32_initialize): Don't call w32font_initialize.
9306
9307 * w32font.c (w32font_info): Remove subranges.
9308 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
9309 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
9310 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
9311 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
9312 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
9313 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
9314 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
9315 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
9316 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
9317 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
9318 New symbols.
9319 (font_callback_data): New struct.
9320 (w32font_list, w32font_match): Use it.
9321 (w32font_open): Don't populate subranges.
9322 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
9323 (w32font_encode_char): Always return unicode code-point as-is.
9324 (w32font_text_extents): Supply a transformation matrix to
9325 GetGlyphOutline. Never look up by glyph index. Avoid looping
9326 twice. Use unicode version of GetTexExtentPoint32 instead of
9327 glyph index version.
9328 (set_fonts_frame): Remove.
9329 (w32_enumfont_pattern_entity): Add frame parameter, use it to
9330 set frame parameter. Use backward compatible fake foundries.
9331 Save generic family in extra slot under QCfamily. Make width slot
9332 constant. Save QCspacing value. Save list of scripts instead of
9333 binary subranges.
9334 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
9335 (add_font_entity_to_list): Use font_callback_data struct. Filter
9336 unwanted fonts.
9337 (add_one_font_entity_to_list): Use font_callback_data struct.
9338 (w32_registry): Default to iso10646_1.
9339 (fill_in_logfont): Use dpi from extra slot. Don't bother with
9340 string font registries. Don't fill in font name if it is a generic
9341 family name, fill family instead. Use spacing, family and script
9342 extra info to fill pitch, family and charset fields.
9343 (list_all_matching_fonts): Use font_callback_data struct.
9344 (unicode_range_for_char): Remove.
9345 (font_supported_scripts): New function.
9346 (w32font_initialize): Remove.
9347 (syms_of_w32font): Update which symbols are defined.
9348
93492008-02-01 Jason Rumney <jasonr@gnu.org>
9350
9351 * font.c (font_pixel_size): Reverse assq_no_quit args.
9352
9353 * w32term.h (FONT_WIDTH): Report max width, not average.
9354 (FONT_MAX_WIDTH): Remove.
9355 (FONT_AVG_WIDTH): New macro.
9356
9357 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
9358 redefinition of FONT_WIDTH.
9359
9360 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
9361 (w32_cache_char_metrics): Use FONT_WIDTH.
9362
9363 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
9364
93652008-02-01 Jason Rumney <jasonr@gnu.org>
9366
9367 * w32font.c (w32font_open): Make lfHeight negative.
9368
9369 * w32fns.c (x_default_font_parameter): Use new style font name.
9370 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
9371
93722008-02-01 Jason Rumney <jasonr@gnu.org>
9373
9374 * w32font.c (QCsubranges): New symbol.
9375 (w32font_open, w32font_has_char): Get subranges from subproperty
9376 of extra.
9377 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
9378 (syms_of_w32font): Define :subranges symbol.
9379
9380 * font.c (font_put_extra): Expose externally.
9381
9382 * font.h (font_put_extra): Move declaration from font.c.
9383
9384 * font.c (Ffont_get): Use font driver to determine otf capability.
9385 (adjust_anchor): Check if driver defines anchor_point before using.
9386
9387 * w32font.c (w32font_open): Handle size, height and pixel_size better.
9388 (w32font_draw): Use options.
9389 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
9390 Fix detection of truetype fonts.
9391 (registry_to_w32_charset): Handle charsets other than iso8859-1
9392 expressed as lisp symbols.
9393 (w32_registry): Express charset as lisp symbol.
9394 (fill_in_logfont): Reverse pixel and point height logic.
9395 Don't set width here. Set quality to default.
9396
9397 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
9398 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
9399
9400 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9401 Remove redundant loop and allocation.
9402
9403 * makefile.w32-in (font.o, w32font.o): New objects.
9404 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
9405 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
9406
9407 * xdisp.c (fill_composite_glyph_string): Make the first arg to
9408 STORE_XCHARB a valid l-value.
9409
9410 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
9411 calculations for non-Truetype fonts.
9412 (x_draw_glyph_string): Sync with xterm.c.
9413 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9414 Remove redundant code.
9415 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
9416
9417 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
9418 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
9419
9420 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
9421 (x_to_w32_charset, w32_to_x_charset): Expose externally.
9422
9423 * w32font.c: New file for w32 font backend.
9424
94252008-02-01 Kenichi Handa <handa@m17n.org>
9426
9427 * term.c: Don't include "buffer.h" twice.
9428
94292008-02-01 Kenichi Handa <handa@m17n.org>
9430
9431 * character.c (Funibyte_string): New function.
9432 (syms_of_character): Defsubr it.
9433
94342008-02-01 Jason Rumney <jasonr@gnu.org>
9435
9436 * w32term.c [USE_FONT_BACKEND]:
9437 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
9438 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
9439 (x_draw_glyph_string, x_draw_glyph_string_foreground)
9440 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
9441 (x_free_frame_resources): Sync with xterm.c.
9442
94432008-02-01 Andreas Schwab <schwab@suse.de>
9444
9445 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
9446 char-table size.
9447
94482008-02-01 Kenichi Handa <handa@m17n.org>
9449
9450 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
9451
94522008-02-01 Kenichi Handa <handa@m17n.org>
9453
9454 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
9455 font_otf_gpos, add font_drive_otf.
9456
9457 * fontset.c (fontset_find_font): Pay attention to font size
9458 specified for a font.
9459 (reorder_font_vector): Check contents of font_def.
9460
9461 * font.c (struct otf_list): Delete it.
9462 (otf_list): Make it a lisp variable.
9463 (otf_open): Use lispy otf_list.
9464 (generate_otf_features): Rename from parse_gsub_gpos_spec.
9465 (check_otf_features): New function.
9466 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9467 New functions.
9468 (font_drive_otf): New function merging font_otf_gsub and
9469 font_otf_gpos.
9470 (font_open_for_lface): New arg spec. Change argument order.
9471 (font_load_for_face): Adjust for the change of font_open_for_lface.
9472 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
9473 Ffont_otf_gpos.
9474 (syms_of_font): Staticpro otf_list. Delete defsubr of
9475 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
9476
9477 * xfaces.c (set_font_frame_param): Adjust for the change of
9478 font_open_for_lface.
9479
9480 * font.h (font_open_for_lface): Adjust prototype.
9481 (struct font_driver): Delete members otf_gsub and otf_gpos, add
9482 member otf_drive.
9483 (font_otf_gsub, font_otf_gpos): Delete externs.
9484 (font_drive_otf): Extern it.
9485
94862008-02-01 Kenichi Handa <handa@m17n.org>
9487
9488 * font.c (font_at): If the window W is not on a window system,
9489 return Qnil.
9490
9491 * coding.c (produce_chars, encode_coding): Don't call
9492 insert_from_gap if no characters to produce.
9493
94942008-02-01 Kenichi Handa <handa@m17n.org>
9495
9496 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
9497 Fclear_face_cache.
9498
9499 * xfaces.c (face_for_font): Check also face->font==font->font.font.
9500
95012008-02-01 Miles Bader <miles@gnu.org>
9502
9503 * emacs.c (main): Change default value of `enable_font_backend' to 1.
9504 Parse "--disable-font-backend" option.
9505 (standard_args): Add "--disable-font-backend" option.
9506
95072008-02-01 Kenichi Handa <handa@m17n.org>
9508
9509 * fontset.c (fontset_find_font): New function.
9510 (fontset_font): Use fontset_find_font.
9511 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
9512 Register the specified font for all Latin characters.
9513 (new_fontset_from_font): Register the specified font for all Latin
9514 characters.
9515 (dump_fontset): For a realized fontset, include the base fontset
9516 name in the returned vector.
9517
95182008-02-01 Kenichi Handa <handa@m17n.org>
9519
9520 * character.h (CHAR_STRING): Cast C to unsigned on calling
9521 char_string.
9522
9523 * character.c (char_string): Type of arg C changed to unsigned.
9524 Signal an error if C is an invalid character code.
9525
9526 * editfns.c (general_insert_function, Fchar_to_string):
9527 Use CHARACTERP, not INTEGERP.
9528
95292008-02-01 Kenichi Handa <handa@m17n.org>
9530
9531 * character.h (MIN_MULTIBYTE_LEADING_CODE)
9532 (MAX_MULTIBYTE_LEADING_CODE): New macros.
9533
9534 * regex.c (analyse_first): Fix for multibyte characters in "case
9535 charset:" and "case categoryspec:".
9536
95372008-02-01 Andreas Schwab <schwab@suse.de>
9538
9539 * Makefile.in (LIBES): Move standard libraries to the end.
9540
95412008-02-01 Kenichi Handa <handa@m17n.org>
9542
9543 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
9544 nonzero, don't shrink the buffer nextb.
9545
9546 * buffer.h (struct buffer_text): New member inhibit_shrinking.
9547
9548 * coding.c (coding_alloc_by_making_gap): New arg offset.
9549 (alloc_destination): Call coding_alloc_by_making_gap with the arg
9550 offset.
9551 (decode_coding_iso_2022): Update coding->safe_charsets.
9552 (decode_coding_gap): Temporarily set
9553 current_buffer->text->inhibit_shrinking to 1.
9554
95552008-02-01 Kenichi Handa <handa@m17n.org>
9556
9557 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
9558 indexing into elements of s->cmp and s->char2b.
9559
95602008-02-01 Juanma Barranquero <lekktu@gmail.com>
9561
9562 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
9563
95642008-02-01 Kenichi Handa <handa@m17n.org>
9565
9566 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
9567 target_multibyte instead of multibyte.
9568 (re_match_2_internal): Call bcmp_translate with target_multibyte.
9569 (bcmp_translate): Change the argument name from multibyte to
9570 target_multibyte.
9571
95722008-02-01 Kenichi Handa <handa@m17n.org>
9573
9574 These changes are to compile a regexp into a pattern that can be
9575 used both for multibyte and unibyte targets.
9576
9577 * Makefile.in (search.o): Depend on charset.h.
9578
9579 * character.c (multibyte_char_to_unibyte_safe): New function.
9580
9581 * search.c: Include "charset.h".
9582 (compile_pattern_1): Delete argument multibyte. Don't set
9583 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
9584 (compile_pattern): Don't compare cp->buf.target_multibyte.
9585 Compare cp->buf.charset_unibyte.
9586 (compile_pattern): Set cp->buf.target_multibyte.
9587
9588 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
9589
9590 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
9591
9592 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
9593 multibyte. Change callers.
9594 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
9595 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
9596 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
9597 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
9598 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
9599 (regex_compile): Make the compiled pattern usable both for
9600 multibyte and unibyte targets.
9601 (analyse_first): Make the fastmap usable both for multibyte and
9602 unibyte targets.
9603 (TRANSLATE_VIA_MULTIBYTE): Delete.
9604 (re_match_2_internal): Pay attention to the case that the
9605 multibyteness of bufp and target may be different.
9606
96072008-02-01 Kenichi Handa <handa@m17n.org>
9608
9609 * xdisp.c (x_produce_glyphs): When a font is not found, make the
9610 empty box occupy at least one column width.
9611
96122008-02-01 Miles Bader <miles@gnu.org>
9613
9614 * Makefile.in: Remove redundant HAVE_XFT clause.
9615
96162008-02-01 Kenichi Handa <handa@m17n.org>
9617
9618 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
9619
96202008-02-01 Kenichi Handa <handa@m17n.org>
9621
9622 * fontset.c (Finternal_char_font): Fix for the case of POSITION
9623 being nil.
9624
96252008-02-01 Kenichi Handa <handa@m17n.org>
9626
9627 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
9628
96292008-02-01 Kenichi Handa <handa@m17n.org>
9630
9631 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
9632
96332008-02-01 Kenichi Handa <handa@m17n.org>
9634
9635 * search.c (simple_search): Fix previous change.
9636
96372008-02-01 Kenichi Handa <handa@m17n.org>
9638
9639 * xftfont.c (ftfont_font_format): Extern declaration.
9640
9641 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
9642
9643 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
9644 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
9645
9646 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
9647 (ftfont_font_format): Fix previous change.
9648
9649 * font.h (Ffont_xlfd_name): EXFUN it.
9650
9651 * font.c (font_parse_xlfd): Fix the array size of `f'.
9652 (register_font_driver): Use EQ to compare driver->type.
9653
9654 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
9655 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
9656 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
9657
96582008-02-01 Kenichi Handa <handa@m17n.org>
9659
9660 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
9661 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
9662
96632008-02-01 Kenichi Handa <handa@m17n.org>
9664
9665 * xfont.c (xfont_open): Set font->format.
9666
9667 * xftfont.c (xftfont_open): Set font->format.
9668
9669 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
9670 (ftfont_list): Include FC_FONTFORMAT in FcObject.
9671 (ftfont_open): Set font->format.
9672 (ftfont_font_format): New function.
9673
9674 * font.h (struct font): New member format.
9675
9676 * font.c (Qopentype): New variable.
9677 (syms_of_font): Defsym it.
9678 (Fquery_font): Change the format of the last element of the return
9679 value.
9680
96812008-02-01 Kenichi Handa <handa@m17n.org>
9682
9683 * xfns.c (xic_create_xfontset): Try the default fontset name as a
9684 last resort.
9685
96862008-02-01 Kenichi Handa <handa@m17n.org>
9687
9688 * coding.c (detect_coding_charset): Fix detection of multi-byte
9689 charset.
9690
96912008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
9692
9693 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
9694
96952008-02-01 Kenichi Handa <handa@m17n.org>
9696
9697 * xdisp.c (get_next_display_element): Set it->face_id for the
9698 first component of a composition.
9699 (x_produce_glyphs): Check if the font is changed or not for composition.
9700
97012008-02-01 Kenichi Handa <handa@m17n.org>
9702
9703 * fontset.c (Qlatin): New variable.
9704 (syms_of_fontset): Define it as a lisp symbol.
9705 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
9706
97072008-02-01 Kenichi Handa <handa@m17n.org>
9708
9709 * font.c (font_unparse_fcname): Pay attention to the case that
9710 some of font property is a null string.
9711
97122008-02-01 Kenichi Handa <handa@m17n.org>
9713
9714 * term.c: Include "composite.h".
9715 (encode_terminal_code): Output all components of composition.
9716 Check the size of encode_terminal_src.
9717 (produce_glyphs): For composition, call produce_composite_glyph.
9718 (append_composite_glyph, produce_composite_glyph): New functions.
9719
9720 * xdisp.c (x_produce_glyphs): In handling composition, if a font
9721 is not found, get font_info from the current ascii face.
9722
97232008-02-01 Kenichi Handa <handa@m17n.org>
9724
9725 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
9726 buffer-file-name to Qnil before calling insert_from_buffer.
9727
9728 * font.c (font_unparse_fcname): Pay attention to the case that
9729 foundry is a null string.
9730
97312008-02-01 Kenichi Handa <handa@m17n.org>
9732
9733 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
9734
9735 * font.c (Qunicode_sip): New variable.
9736 (syms_of_font): Declare it as a Lisp symbol.
9737
9738 * font.h (Qunicode_sip): Extern it.
9739
97402008-02-01 Kenichi Handa <handa@m17n.org>
9741
9742 * composite.c (get_composition_id): Pay attention to TAB component.
9743
9744 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
9745 TAB. Adjust for the change of s->char2b which always points to
9746 the first element of allocated memory.
9747
9748 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
9749
9750 * xdisp.c (handle_composition_prop): Set it->c to the first
9751 non-TAB component.
9752 (fill_composite_glyph_string): Change argument.
9753 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
9754 (x_produce_glyphs): Fix handling of left/right padding.
9755
97562008-02-01 Kenichi Handa <handa@m17n.org>
9757
9758 * coding.c (detect_coding_system): Fix for handling off
9759 inhibit_iso_escape_detection. Fix for the case that no coding
9760 system is defined for a specific coding category.
9761
97622008-02-01 Kenichi Handa <handa@m17n.org>
9763
9764 * font.c (font_matching_entity): Delete unused local var.
9765
9766 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
9767 opening a font.
9768
9769 * fileio.c (Finsert_file_contents): On recovering a file, assume
9770 Unix-like eol.
9771 (choose_write_coding_system): On auto-saving a file, force
9772 Unix-like eol.
9773
9774 * coding.c (setup_coding_system): Fix setting of
9775 coding->common_flags based on eol_type.
9776 (coding_inherit_eol_type): If PARENT is not nil, be sure to
9777 inherit from it.
9778
97792008-02-01 Kenichi Handa <handa@m17n.org>
9780
9781 * alloc.c (NSTATICS): Increas to 0x600.
9782
97832008-02-01 Kenichi Handa <handa@m17n.org>
9784
9785 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
9786 (ftfont_list): Don't check :name property.
9787 (ftfont_match): New function.
9788 (ftfont_pattern_entity): If the pattern doesn't contain
9789 FC_SPACING, don't assume FC_MONO.
9790
9791 * font.h (struct font_driver): New member `match'.
9792 (font_update_drivers): Adjust prototype.
9793
9794 * font.c (font_parse_fcname, font_parse_name): Don't change :name
9795 property of FONT.
9796 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
9797 them unconditionally.
9798 (font_matching_entity): New function.
9799 (font_open_by_name): Try font_matching_entity if exact match is
9800 not found.
9801 (font_update_drivers): Delete the arg FONT. Return a list of
9802 actually used backends. Don't free faces, font caches here.
9803 Don't store data in frame parameters. Don't call x_set_font.
9804 (Ffont_spec): Store :name property as is.
9805 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
9806 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
9807 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
9808 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
9809 Call font->driver->otf_gsub instead of font_otf_gsub.
9810
9811 * frame.c (x_set_font_backend): Do more works that were done in
9812 font_update_drivers before.
9813
9814 * xfont.c (xfont_match): New function.
9815 (xfont_driver): Set xfont_driver.match to xfont_match.
9816 (xfont_draw): Set font in GC if necessary.
9817
9818 * ftxfont.c (ftxfont_match): New function.
9819 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
9820
9821 * xftfont.c (xftfont_match): New function.
9822 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
9823
98242008-02-01 Kenichi Handa <handa@m17n.org>
9825
9826 * font.h (struct font): New member scalable.
9827 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
9828 (font_otf_gsub): Adjust prototype.
9829
9830 * font.c (font_otf_capability): Fix handling of the default langsys.
9831 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
9832 Check the contents of SPEC.
9833 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
9834 (check_gstring): New function.
9835 (REPLACEMENT_CHARACTER): New macro.
9836 (font_otf_gsub): New arg alternate_subst. Be sure to set all
9837 glyph codes of GSTRING.
9838 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
9839 (font_prepare_composition): Set cmp->glyph_len.
9840 (font_open_entity): Set font->scalable.
9841 (Ffont_get): Handle :otf property.
9842 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
9843 functions.
9844 (Fquery_font): Use font->font.full_name.
9845 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
9846 Sfont_otf_alternates.
9847
9848 * ftfont.c (ftfont_open): Set font->font.full_name and
9849 font->font.name properly. Fix calculation of font->font.height
9850 and font->min_width.
9851
9852 * ftxfont.c (ftxfont_create_gcs): New function.
9853 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
9854 (ftxfont_draw_backgrond): Fix filling region.
9855 (ftxfont_default_fid): New function.
9856 (ftxfont_open): Set xfont->fid to the return value of
9857 ftxfont_default_fid.
9858 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
9859 (ftxfont_done_face): Free only GCs that are created by
9860 ftxfont_create_gcs.
9861 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
9862
9863 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
9864 Clip to src->width, etc (not src->clip_XXX).
9865
9866 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
9867 FontBackend frame parameter.
9868
98692008-02-01 Kenichi Handa <handa@m17n.org>
9870
9871 * font.h (struct font_driver_list): New member `on'.
9872 (Fclear_font_cache): EXFUN it.
9873 (font_update_drivers): Extern it.
9874
9875 * font.c (font_unparse_fcname): Fix typo (swidth->width).
9876 (font_list_entities): Check driver_list->on.
9877 (register_font_driver): Initalize `on' member to 0.
9878 (font_update_drivers): New function.
9879 (Fclear_font_cache): Check driver_list->on.
9880
9881 * frame.h (Qfont_backend): Extern it.
9882 (x_set_font_backend): Extern it.
9883
9884 * frame.c (Qfont_backend): New variable.
9885 (frame_parms): New element for font-backend.
9886 (x_set_font_backend): New function.
9887
9888 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
9889 FontBackend frame parameter.
9890 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
9891 x_set_font_backend.
9892
9893 * xfont.c (xfont_list): Don't try listing by :name property if the
9894 name is not for XLFD.
9895
98962008-02-01 Kenichi Handa <handa@m17n.org>
9897
9898 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
9899 (LGLYPH_SET_TO): New macros.
9900 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
9901 element of G is vector or not.
9902 (font_at): Extern it.
9903
9904 * font.c: Include window.h.
9905 (font_lispy_object): New function.
9906 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
9907 end of valid glyph.
9908 (font_close_object): Fix getting (struct font *).
9909 (font_at): New function.
9910 (Ffont_get): If FONT is a font-object, get entity from it.
9911 (Ffont_make_gstring): Initialize elements of glyphs with nil.
9912 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
9913 range check.
9914 (Ffont_at): New function.
9915 (syms_of_font): Defsubr Sfont_at.
9916
9917 * xdisp.c (it_props): Move the entry for Qauto_composed to just
9918 before the entry for Qcomposition.
9919 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
9920 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
9921 the font in gstring.
9922 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
9923 LGLYPH_FORM (g) to detect the end of valid glyph.
9924 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
9925 we are composing with gstring.
9926
9927 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
9928 Check if adjustment is vector or not.
9929
9930 * Makefile.in (font.o): Make it depends on window.h.
9931
99322008-02-01 Kenichi Handa <handa@m17n.org>
9933
9934 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
9935 adjustment is vector or not.
9936
99372008-02-01 Miles Bader <miles@gnu.org>
9938
9939 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
9940
99412008-02-01 Kenichi Handa <handa@m17n.org>
9942
9943 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
9944 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
9945 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
9946
9947 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
9948 (DEVICE_DELTA): Fix typo.
9949 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
9950 LGLYPH format.
9951
9952 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9953 the change of LGLYPH format.
9954
99552008-02-01 Kenichi Handa <handa@m17n.org>
9956
9957 * ftfont.c (ftfont_list): Fix typo.
9958 (ftfont_build_basic_charsets): Don't include letters with diacritics.
9959
99602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9961
9962 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
9963
9964 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
9965 xftface_info is non-NULL.
9966
99672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9968
9969 * ftfont.c (ftfont_list): Move misplaced #endif.
9970
99712008-02-01 Kenichi Handa <handa@m17n.org>
9972
9973 * ftfont.c (ftfont_list): Pay attention to the case that
9974 FC_CAPABILITY is not defined.
9975
99762008-02-01 Kenichi Handa <handa@m17n.org>
9977
9978 * xftfont.c (xftfont_open): Set charset related members to -1.
9979
9980 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
9981 QCname.
9982 (ftfont_open): Set charset related members to -1.
9983
9984 * fontset.c (Votf_script_alist): New variable.
9985 (syms_of_fontset): Initialize it.
9986 (fontset_font): Delete unused variable.
9987
9988 * fontset.h (Votf_script_alist): Extern it.
9989
9990 * font.c (font_find_for_lface): Optimize code.
9991
9992 * font.h (font_close_object, font_merge_old_spec): Extern them.
9993
99942008-02-01 Kenichi Handa <handa@m17n.org>
9995
9996 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
9997 (syms_of_font): Initialize them.
9998 (font_pixel_size): Allow float value in dpi.
9999 (font_prop_validate_type): Delete.
10000 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10001 Change caller.
10002 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10003 (font_prop_validate_extra): Delete.
10004 (font_prop_validate_spacing): New function.
10005 (font_property_table): Add elements for all known properties.
10006 (get_font_prop_index): Rename from check_font_prop_name. New
10007 argument FROM. Change caller.
10008 (font_prop_validate): Validate all known properties.
10009 (font_put_extra): Delete argument force. Change caller.
10010 (font_expand_wildcards): Make it static. Fix the way of shrinking
10011 the possible range.
10012 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10013 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10014 Change caller.
10015 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10016 (font_parse_fcname): Delete argument merge. Fix parsing of point
10017 size. Don't validate properties values here. Change caller.
10018 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10019 (font_open_by_name): Delete unused variable.
10020 (Ffont_spec): Likewise. Validate property values.
10021 (Ffont_match_p): New function.
10022
10023 * font.h (QCscalable): Extern it.
10024 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10025
10026 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10027
10028 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10029 (xfont_list_pattern): New function.
10030 (xfont_list): Use xfont_list_pattern.
10031
100322008-02-01 Kenichi Handa <handa@m17n.org>
10033
10034 * font.h (Flist_fonts): EXFUN it.
10035
100362008-02-01 Jason Rumney <jasonr@gnu.org>
10037
10038 * w32term.c (w32_initialize): Add back smoothing_type and
10039 smoothing_enabled definitions.
10040
100412008-02-01 Kenichi Handa <handa@m17n.org>
10042
10043 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10044 s->face->font on determining underline position.
10045
100462008-02-01 Kenichi Handa <handa@m17n.org>
10047
10048 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10049 (font_has_char): Accept font-object too.
10050 (font_find_for_lface): Try at first with a size specified in face.
10051
100522008-02-01 Kenichi Handa <handa@m17n.org>
10053
10054 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10055 font_open_by_name.
10056
100572008-02-01 Kenichi Handa <handa@m17n.org>
10058
10059 * font.h (QCspacing, QCdpi): Extern them.
10060 (enum font_spacing): New enum.
10061 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10062
10063 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10064 (QCspacing, QCdpi): New variables.
10065 (syms_of_font): Initialize them.
10066 (font_pixel_size): New function.
10067 (font_put_extra): New function.
10068 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10069 in FONT_EXTRA.
10070 (font_parse_fcname): Handle enumerated values (e.g. bold).
10071 Fix handling font size. Add QCname property that contains only
10072 unknown properties.
10073 (font_score): Change argument. Change caller. Pay attention to
10074 FONT_PIXEL_SIZE_QUANTUM.
10075 (font_sort_entites, font_list_entities, font_find_for_lface)
10076 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10077 (Ffont_spec): Add QCname property that contains only unknown properties.
10078
10079 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10080 include weight in listing pattern, instead check weight of each
10081 listed font. Don't include scalable in pattern. Pay attention to
10082 FONT_PIXEL_SIZE_QUANTUM.
10083
100842008-02-01 Kenichi Handa <handa@m17n.org>
10085
10086 * font.c (font_parse_fcname): Fix parsing of point-size.
10087 (font_unparse_fcname): Produce symbolic names for style properties.
10088 (font_list_entities): Handle float size correctly.
10089 (font_open_by_name): Prefer `normal' property values if the name
10090 doesn't specify them.
10091
10092 * fontset.c (Finternal_char_font): Use font_get_name, not
10093 Ffont_xlfd_name.
10094
10095 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
10096 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
10097 pattern. Don't force scalable.
10098
10099 * xftfont.c (xftfont_open): For generating a name, start from
10100 96-byte buffer.
10101
101022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10103
10104 * frame.h (x_new_fontset2): Fix prototype.
10105
101062008-02-01 Kenichi Handa <handa@m17n.org>
10107
10108 * font.h (struct font_driver): Delete member parse_name.
10109 (font_match_p, font_get_spec, font_parse_fcname)
10110 (font_unparse_fcname): Extern them.
10111 (font_get_name): Adjust prototype.
10112
10113 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
10114 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
10115 (font_expand_wildcards): Fix handling ENCODING field. Avoid
10116 unnecessary checks for weight, slant, and swidth.
10117 (font_parse_fcname): New function.
10118 (font_unparse_fcname): New function.
10119 (font_parse_name): New function.
10120 (font_match_p): New function.
10121 (font_get_name): Change return value to Lisp string.
10122 (font_get_spec): New function.
10123 (Qunspecified, Qignore_defface): Don't extern them.
10124 (font_find_for_lface): Assume that LFACE is fully specified.
10125 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
10126 object, use it for FACE.
10127 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
10128 driver->parse_name.
10129 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
10130
10131 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
10132 prototype.
10133
10134 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
10135 argument F. Don't call Fnew_fontset. Instead, directly call
10136 make_fontset.
10137
10138 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
10139
10140 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
10141 of x_new_fontset2.
10142
10143 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
10144 (Qsans__serif): New variables.
10145 (ftfont_generic_family_list): New variable.
10146 (syms_of_ftfont): Initialize the above variables.
10147 (ftfont_pattern_entity): Delete argument NAME.
10148 (ftfont_list_generic_family): New function.
10149 (ftfont_parse_name): Delete this function.
10150 (ftfont_list): Try generic family only when FcFontList found no font.
10151 (ftfont_list_family): Fix args to FcObjectSetBuild.
10152
10153 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
10154 object in attrs[LFACE_FONT_INDEX].
10155 (set_lface_from_font_name): Cancel all changes for font-backend.
10156 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
10157 function.
10158 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
10159 font object in QCfont attribute.
10160 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
10161 (realize_default_face) [USE_FONT_BACKEND]: Call
10162 set_lface_from_font_and_fontset.
10163
10164 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
10165 "fixed", and signal error here if no suitable font was found.
10166
10167 * xfont.c (xfont_parse_name): Delete this function.
10168
10169 * xftfont.c (xftfont_open): Change coding style of error
10170 handling. Generate fontconfig's fontname pattern.
10171
10172 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
10173 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
10174
10175 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
10176 Both args FONTSET and FONT_OBJECT must be existing ones.
10177
101782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10179
10180 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
10181
101822008-02-01 Kenichi Handa <handa@m17n.org>
10183
10184 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
10185
10186 * font.h (struct font): Fix typo.
10187
10188 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
10189 XLFD_XXX_INDEX.
10190 (enum xlfd_field_mask): New enum.
10191 (intern_font_field): Changed argument. Change caller. If digits
10192 are followed by non-digits, return a symbol.
10193 (font_expand_wildcards): New function.
10194 (font_parse_xlfd): Fix wildcard handling.
10195 (Ffont_spec): If :name is specified, reflect the info in the other
10196 properties.
10197
10198 * ftfont.c (ftfont_pattern_entity): Fix typo.
10199 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
10200 locale.
10201
102022008-02-01 Kenichi Handa <handa@m17n.org>
10203
10204 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
10205
10206 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
10207 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
10208 registry doesn't specify encoding part.
10209 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
10210 (font_open_by_name): At first try parsing the name.
10211 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
10212 as Lisp symbols.
10213
10214 * fontset.c (reorder_font_vector): Pay attention to the case that
10215 the 3rd element of font_def is nil.
10216 (fontset_font): For the default fontset, append one more fontset
10217 elements for a script-based font specification. Don't add script
10218 attribute on finding a font.
10219 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
10220 font name.
10221 (fontset_ascii_font): If a font can't be opened, return nil.
10222
10223 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
10224 (ftfont_pattern_entity): New function.
10225 (ftfont_get_cache): Assume that freetype_font_cache is already
10226 initialized.
10227 (ftfont_list): Handle the case that a file is specified in font
10228 name. Use ftfont_pattern_entity to generate entities.
10229 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
10230 (syms_of_ftfont): Initialize freetype_font_cache.
10231
10232 * xftfont.c (xftfont_open): Make the font name fontconfig's
10233 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
10234 (xftfont_close): Free font->font.name if not NULL.
10235
10236 * xfont.c (xfont_list): If script is specified for a font, return
10237 null_vector.
10238 (xfont_list_family): Declare argument type.
10239
10240 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
10241 name, set LFACE_FONT (lface) to nil.
10242
10243 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
10244 return Qnil.
10245
102462008-02-01 Kenichi Handa <handa@m17n.org>
10247
10248 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
10249 (standard_args): Add "-enable-font-backend".
10250
102512008-02-01 Kenichi Handa <handa@m17n.org>
10252
10253 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
10254 (struct xftdraw_list, xftdraw_list): Delete them.
10255 (register_xftdraw, check_xftdraw): Delete them.
10256 (xftfont_prepare_face): Don't call register_xftdraw.
10257 (xftfont_done_face): Don't call check_xftdraw.
10258 (xftfont_draw): Get background color only when with_background is
10259 nonzero.
10260
10261 * xfont.c (xfont_encode_char): Fix calculation of char2b.
10262
102632008-02-01 Kenichi Handa <handa@m17n.org>
10264
10265 These changes are for the new font handling codes.
10266
10267 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
10268 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
10269 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
10270 (FONTSRC, FONTOBJ): New variables.
10271 (obj): Add $(FONTOBJ).
10272 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
10273 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
10274 @LIBOTF_LIBS@.
10275 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
10276 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
10277
10278 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
10279
10280 * character.h (Vscript_representative_chars): Extern it.
10281
10282 * character.c (Vscript_representative_chars): New variable.
10283 (syms_of_character): Declare it as a Lisp variable.
10284
10285 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
10286 enable_font_backend is nonzero, accept the composition method
10287 COMPOSITION_WITH_GLYPH_STRING.
10288
10289 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
10290 enumeration COMPOSITION_WITH_GLYPH_STRING.
10291
10292 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
10293 members clip_x, clip_y, clip_width, and clip_height.
10294 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
10295
10296 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
10297 --enable-font-backend. Call syms_of_font.
10298
10299 * fns.c (assoc_no_quit): New function.
10300
10301 * fontset.h (FONT_INFO_FROM_FACE): New macro.
10302 (face_for_font, new_fontset_from_font)
10303 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
10304
10305 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
10306 (fontset_font, fontset_ascii, face_for_char)
10307 (make_fontset_for_ascii_face, Ffont_info)
10308 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
10309 is nonzero, use font-backend mechanism.
10310 (find_font_encoding): Make it non-static.
10311 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
10312 New functions.
10313
10314 * frame.h (struct frame): New members resx and resy.
10315 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
10316 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
10317
10318 * frame.c [USE_FONT_BACKEND]: Include "font.h".
10319 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
10320
10321 * lisp.h (assoc_no_quit): Extern it.
10322
10323 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
10324 Through out the file, use FONT_INFO_FROM_FACE instead of
10325 FONT_INFO_FROM_ID, use get_per_char_metric instead of
10326 rif->per_char_metric.
10327 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
10328 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
10329 (get_glyph_face_and_encoding, fill_composite_glyph_string)
10330 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10331 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
10332 nonzero, use font-backend mechanism.
10333 (get_per_char_metric): New function.
10334
10335 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
10336 (set_lface_from_font_name)
10337 (set_font_frame_param, free_realized_face)
10338 (prepare_face_for_display, clear_face_gcs)
10339 (Finternal_set_font_selection_order, realize_x_face)
10340 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
10341 font-backend mechanism.
10342 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
10343 (load_face_font) [USE_FONT_BACKEND]: Abort.
10344 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
10345 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
10346
10347 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
10348 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
10349 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
10350 nonzero, register all available font drivers. Call
10351 x_default_font_parameter for deciding a font.
10352 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
10353
10354 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
10355 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
10356 (x_set_glyph_string_clipping_exactly)
10357 (x_compute_glyph_string_overhangs)
10358 (x_draw_glyph_string_foreground)
10359 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
10360 (x_free_frame_resources) [USE_FONT_BACKEND]: If
10361 enable_font_backend is nonzero, use font-backend mechanism.
10362 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
10363
103642008-02-01 Kenichi Handa <handa@m17n.org>
10365
10366 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
10367 system_eol_type.
10368 (syms_of_coding): Initialize system_eol_type.
10369
10370 * process.c (Fset_process_coding_system): Inherit system's eol
10371 format if necessary.
10372
103732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10374
10375 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
10376
103772008-02-01 Kenichi Handa <handa@m17n.org>
10378
10379 * coding.c (decode_eol): Pay attention to buffer relocation in
10380 del_range_2.
10381 (decode_coding): Call decode_eol before restoring undo_list.
10382
103832008-02-01 Kenichi Handa <handa@m17n.org>
10384
10385 * charset.c (Fdefine_charset_internal): Fix setting of
10386 emacs_mule_bytes.
10387
103882008-02-01 Kenichi Handa <handa@m17n.org>
10389
10390 * keyboard.c (read_char): Check if C is a character or not before
10391 looking up Vkeyboard_translate_table.
10392
103932008-02-01 Kenichi Handa <handa@m17n.org>
10394
10395 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
10396 condition to terminate the loop.
10397
103982008-02-01 Kenichi Handa <handa@m17n.org>
10399
10400 * coding.c (produce_composition): Compare charbuf[i] instead of
10401 args[i] against 0.
10402 (Fterminal_coding_system): Use EQ to compare Lisp objects.
10403
104042008-02-01 Kenichi Handa <handa@m17n.org>
10405
10406 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
10407 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
10408 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
10409 detect_coding.
10410 (emacs_mule_char): Handle old style (Emacs 20) component character
10411 of a composition.
10412 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
10413 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
10414 composition rule.
10415 (decode_coding_emacs_mule): Handle invalid bytes correctly.
10416
104172008-02-01 Kenichi Handa <handa@m17n.org>
10418
10419 * coding.c (encode_coding_ccl): Allocate destination dynamically
10420 when necessary.
10421
104222008-02-01 Kenichi Handa <handa@m17n.org>
10423
10424 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
10425 the loop. When quitted, show a proper error message.
10426
104272008-02-01 Kenichi Handa <handa@m17n.org>
10428
10429 * xterm.c (x_set_glyph_string_clipping_exactly): Set
10430 src->clip_head and src->clip_tail temporarily instead of src->hl.
10431
10432 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
10433 character sequence.
10434 (Fccl_execute_on_string): Use ASET, not XSET.
10435
104362008-02-01 Kenichi Handa <handa@m17n.org>
10437
10438 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
10439
104402008-02-01 Kenichi Handa <handa@m17n.org>
10441
10442 * coding.c (decode_coding): Fix the condition of terminating the
10443 decoding loop.
10444
104452008-02-01 Kenichi Handa <handa@m17n.org>
10446
10447 * data.c (Faset): On setting a character bigger than 255 in a
10448 unibyte string, signal an error instead of make the string multibyte.
10449
104502008-02-01 Kenichi Handa <handa@m17n.org>
10451
10452 * charset.c (map_charset_chars): Fix for ascii-compatible charset
10453 made by a mapping table.
10454
104552008-02-01 Kenichi Handa <handa@m17n.org>
10456
10457 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
10458 not.
10459 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
10460 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
10461
10462 * xterm.c (x_draw_composite_glyph_string_foreground): Check
10463 s->face is NULL or not.
10464
104652008-02-01 Kenichi Handa <handa@m17n.org>
10466
10467 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
10468 (x_draw_glyph_string): Fix drawing of right_overhang and
10469 left_overhang around/on cursor.
10470
10471 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
10472
104732008-02-01 Kenichi Handa <handa@m17n.org>
10474
10475 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
10476
104772008-02-01 Kenichi Handa <handa@m17n.org>
10478
10479 * coding.c (Fdefine_coding_system_internal)
10480 (Fdefine_coding_system_alias): Avoid a duplicated element in
10481 Vcoding_system_alist.
10482
104832008-02-01 Kenichi Handa <handa@m17n.org>
10484
10485 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
10486
10487 * coding.c (Qcoding_system_define_form): New variable.
10488 (syms_of_coding): Intern and staticpro it.
10489 (Fcoding_system_p): Check Qcoding_system_define_form.
10490 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
10491
10492 * coding.h (CODING_SYSTEM_P): If ID is not available, call
10493 Fcoding_system_p.
10494 (CHECK_CODING_SYSTEM): If ID is not available, call
10495 Fcheck_coding_system.
10496 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
10497 Try also Fcheck_coding_system.
10498
104992008-02-01 Kenichi Handa <handa@m17n.org>
10500
10501 * coding.c (code_conversion_restore): GCPRO arg.
10502
105032008-02-01 Kenichi Handa <handa@m17n.org>
10504
10505 * character.c (lisp_string_width): Check multibyteness of STRING.
10506
105072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10508
10509 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
10510 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
10511 (decode_mac_font_name): Use decode_coding_c_string instead of
10512 decode_coding.
10513 (x_load_font): Initialize fontp->fontset to -1. Set
10514 fontp->encoding_type.
10515
105162008-02-01 Kenichi Handa <handa@m17n.org>
10517
10518 * search.c (search_buffer): Give up BM search on case-fold-search
10519 if one of a target character has a case-equivalence of different
10520 byte length even if that target charcter is an ASCII.
10521 (simple_search): Fix calculation of byte length of matched text.
10522 (boyer_moore): Fix handling of case-equivalent multibyte characters.
10523
105242008-02-01 Kenichi Handa <handa@m17n.org>
10525
10526 * coding.c (decode_coding): Fix handling of invalid bytes.
10527
105282008-02-01 Kenichi Handa <handa@m17n.org>
10529
10530 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
10531 Unicode characters.
10532
105332008-02-01 Kenichi Handa <handa@m17n.org>
10534
10535 * coding.c (encode_coding_object): If a pre-write-conversion
10536 function makes a new buffer, kill it.
10537
105382008-02-01 Kenichi Handa <handa@m17n.org>
10539
10540 * coding.c (QCascii_compatible_p): New variable.
10541 (syms_of_coding): Initialize it.
10542 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
10543 calling string_char.
10544 (record_conversion_result): Add `default:' case.
10545 (coding_charset_list): Delete unused variable `coding_type'.
10546 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
10547 property in the plist of the coding system.
10548 (Fcoding_system_put): Check QCascii_compatible_p.
10549
105502008-02-01 Miles Bader <miles@gnu.org>
10551
10552 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
10553 removed calculation of frame `f', as it's now used.
10554
105552008-02-01 Kenichi Handa <handa@m17n.org>
10556
10557 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
10558 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
10559 (UNIDATA): New variable.
10560 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
10561 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
10562 $(RUN_TEMACS) unconditionally.
10563
105642008-02-01 Kenichi Handa <handa@m17n.org>
10565
10566 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
10567 (admindir): New variable.
10568 ($(lispsource)international/charprop.el): New target.
10569
105702008-02-01 Miles Bader <miles@gnu.org>
10571
10572 * character.c (chars-in-region): Remove obsolete function.
10573 (syms_of_character): Remove its initialization.
10574
105752008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
10576
10577 * w32select.c (validate_coding_system)
10578 (setup_windows_coding_system): New functions.
10579 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
10580 setup_windows_coding_system.
10581 (setup_config, Fw32_get_clipboard_data): Use
10582 validate_coding_system.
10583 (Fx_selection_exists): Move call to setup_config to a place
10584 where signals are allowed.
10585
10586 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
10587 (Fcheck_coding_system): Add declarations.
10588
105892008-02-01 Kenichi Handa <handa@m17n.org>
10590
10591 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
10592
105932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10594
10595 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
10596 string as the second argument for x_new_fontset.
10597
105982008-02-01 Kenichi Handa <handa@m17n.org>
10599
10600 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
10601 (encode_coding_object): Use safe_call instead of call2.
10602
106032008-02-01 Kenichi Handa <handa@m17n.org>
10604
10605 * fontset.c (Fset_fontset_font): Check family element of a given vector.
10606
10607 * Makefile.in (lisp): Include charprop.el.
10608
106092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10610
10611 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
10612 Not sure if it's unnecessary.
10613
106142008-02-01 Steven Tamm <steventamm@mac.com>
10615
10616 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
10617 some possibly unnecessary fontset checking code that crashed
10618 when creating a new frame.
10619
106202008-02-01 Kenichi Handa <handa@m17n.org>
10621
10622 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
10623 lookup_face.
10624
10625 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
10626
10627 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
10628
106292008-02-01 Kenichi Handa <handa@m17n.org>
10630
10631 * coding.c: Cancel the change done in HEAD on 2008-02-01.
10632 (coding_charset_list): New function.
10633
10634 * coding.h (coding_charset_list): Extern it.
10635
106362008-02-01 Kenichi Handa <handa@m17n.org>
10637
10638 * fontset.c (Fset_fontset_font): Call find_font_encoding with
10639 concatenation of family and registry.
10640
106412008-02-01 Kenichi Handa <handa@m17n.org>
10642
10643 * character.h (BYTE8_STRING): Fix typo.
10644
10645 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
10646 string to multibyte (sync to HEAD).
10647
10648 * casefiddle.c (casify_region): Handle changes in byte-length
10649 using replace_range_2 (sync to HEAD).
10650
106512008-02-01 Andreas Schwab <schwab@suse.de>
10652
10653 * chartab.c (map_char_table): GCPRO table and arg.
10654
106552008-02-01 Kenichi Handa <handa@m17n.org>
10656
10657 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
10658 already at limit.
10659
106602008-02-01 Kenichi Handa <handa@m17n.org>
10661
10662 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
10663 instead of fast_c_string_match_ignore_case.
10664 (find_font_encoding): Change argument to Lisp_Object. Use
10665 fast_string_match_ignore_case instead of
10666 fast_c_string_match_ignore_case. Change caller.
10667
106682008-02-01 Kenichi Handa <handa@m17n.org>
10669
10670 * xdisp.c (get_next_display_element): In unibyte case, decide to
10671 display in octal form by checking a character by
10672 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
10673
10674 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
10675
10676 * character.c (unibyte_has_multibyte_table): New variable.
10677
10678 * character.h (unibyte_has_multibyte_table): Extern it.
10679 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
10680
106812008-02-01 Kenichi Handa <handa@m17n.org>
10682
10683 * coding.c (encode_coding_iso_2022): Fix handling of charset
10684 annotation.
10685
106862008-02-01 Kenichi Handa <handa@m17n.org>
10687
10688 * coding.c (setup_coding_system): If coding_system is nil, use
10689 Qundecided.
10690 (Fterminal_coding_system): Return nil if terminal coding system is
10691 `undecided'.
10692 (syms_of_coding): Define coding-system `undecided' here. Setup
10693 terminal_coding as `undecided'.
10694
106952008-02-01 Kenichi Handa <handa@m17n.org>
10696
10697 * xdisp.c (message_dolog, set_message_1): Call
10698 unibyte_char_to_multibyte with arg type int.
10699
10700 * lread.c (read1): Fix reading of a char-table.
10701
10702 * print.c (print_object): Include sub char-table in circularities
10703 detection.
10704
107052008-02-01 Kenichi Handa <handa@m17n.org>
10706
10707 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
10708 Append the found sequences in car of ARGS instead of prepending.
10709
107102008-02-01 Kenichi Handa <handa@m17n.org>
10711
10712 * fileio.c (report_file_error): Make a unibyte string from
10713 strerror (errorno).
10714 (Fsubstitute_in_file_name): Fix the arg to
10715 unibyte_char_to_multibyte. It is evaluated twice.
10716
107172008-02-01 Kenichi Handa <handa@m17n.org>
10718
10719 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
10720
107212008-02-01 Kenichi Handa <handa@m17n.org>
10722
10723 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
10724 BOM is not found.
10725 (detect_coding, detect_coding_system): Optimization for ISO-2022
10726 when no 8-bit data is found.
10727
107282008-02-01 Jason Rumney <jasonr@gnu.org>
10729
10730 * w32fns.c (x_to_w32_font): Update to use new coding struct.
10731
107322008-02-01 Kenichi Handa <handa@m17n.org>
10733
10734 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
10735 CHARS.
10736
107372008-02-01 Steven Tamm <steventamm@mac.com>
10738
10739 * macterm.c (mac_encode_char): Add charset argument and update
10740 to use encoding_type.
10741 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
10742 switch to pure fontset.
10743 (decode_mac_font_name): Temporarily remove decoding.
10744 (x_font_name_to_mac_font_name): Temporarily remove encoding.
10745 (x_load_font): Temporarily remove encoding.
10746
107472008-02-01 Kenichi Handa <handa@m17n.org>
10748
10749 * xfaces.c (Fface_font): If frame is not on a window system,
10750 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
10751 refer to face->font.
10752 (split_font_name_into_vector, build_font_name_from_vector)
10753 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
10754 when HAVE_WINDOW_SYSTEM is defined.
10755
107562008-02-01 Kenichi Handa <handa@m17n.org>
10757
10758 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
10759 (x_produce_glyphs): Fix setting of members of cmp in case
10760 cmp->glyph_len is zero.
10761
10762 * fontset.c (Fset_fontset_font): Fix docstring.
10763 (Ffontset_info): Make it backward compatible. New arg ALL.
10764
107652008-02-01 Kim F. Storm <storm@cua.dk>
10766
10767 * process.c (read_process_output): Grow decoding_buf when needed;
10768 this could cause a crash in allocate_string and compact_small_strings.
10769
107702008-02-01 Kenichi Handa <handa@m17n.org>
10771
10772 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
10773
107742008-02-01 Kenichi Handa <handa@m17n.org>
10775
10776 * coding.c (setup_coding_system): Set coding->common_flags
10777 correctly for raw-text.
10778 (consume_chars): On encoding unibyte text by raw-text, don't check
10779 multibyte form.
10780 (encode_coding): On encoding by raw-text, never use translation tables.
10781
10782 * fileio.c (e_write): Short cut for the case of no encoding.
10783
107842008-02-01 Kenichi Handa <handa@m17n.org>
10785
10786 * coding.c (detect_coding, detect_coding_system): Delete unused
10787 variables.
10788
107892008-02-01 Kenichi Handa <handa@m17n.org>
10790
10791 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
10792 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
10793
107942008-02-01 Kenichi Handa <handa@m17n.org>
10795
10796 * coding.c (Ffind_coding_systems_region_internal): Include
10797 raw-text and no-conversion in the result.
10798
107992008-02-01 Kenichi Handa <handa@m17n.org>
10800
10801 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
10802 (load_font_get_repertory): Delete unnecessary check of ENCODING of
10803 FONT_DEF.
10804 (font_def_arg, add_arg, from_arg, to_arg): New args.
10805 (set_fontset_font): Change argument.
10806 (Fset_fontset_font): Fix for the case that TARGET is a script
10807 name and charset name.
10808 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
10809
108102008-02-01 Kenichi Handa <handa@m17n.org>
10811
10812 * fontset.c (fontset_font): Rename from fontset_face. Change return
10813 value.
10814 (face_suitable_for_char_p, face_for_char): Adjust for the change
10815 of fontset_font.
10816 (make_fontset_for_ascii_face): Fix setting of the fontset element
10817 for ASCII.
10818 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
10819 to get a font name.
10820 (Ffontset_info): Adjust for the change of fontset_font.
10821
10822 * coding.c (emacs_mule_char): Check invalid code more rigidly.
10823
10824 * character.h (LEADING_CODE_LATIN_1_MIN)
10825 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
10826
108272008-02-01 Kenichi Handa <handa@m17n.org>
10828
10829 * editfns.c (check_translation): New function.
10830 (Ftranslate_region_internal): Handle M:N mapping.
10831
108322008-02-01 Kenichi Handa <handa@m17n.org>
10833
10834 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
10835
108362008-02-01 Kenichi Handa <handa@m17n.org>
10837
10838 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
10839 goto invalid_code.
10840 (decode_coding_iso_2022): Fix handling of invalid designation.
10841
10842 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
10843 after calling code_conversion_save.
10844
108452008-02-01 Kenichi Handa <handa@m17n.org>
10846
10847 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
10848
10849 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
10850
10851 * fontset.c: Include "intervals.h".
10852 (fontset_face): Fix comparing of Lisp_Objects.
10853 (free_face_fontset, new_fontset_from_font_name): Fix
10854 Lisp_Object/int mixup.
10855
10856 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
10857
10858 * coding.c: Add many prototypes for static functions.
10859 (get_translation_table): Allow max_lookup to be NULL.
10860 (decode_coding, Ffind_coding_systems_region_internal)
10861 (Funencodable_char_position, Fcheck_coding_systems_region): Call
10862 get_translation_table with max_lookup NULL.
10863
108642008-02-01 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (get_translation_table): Declare it as Lisp_Object.
10867 (LOOKUP_TRANSLATION_TABLE): New macro.
10868 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
10869 instead of CHAR_TABLE_REF.
10870
108712008-02-01 Kenichi Handa <handa@m17n.org>
10872
10873 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
10874 annotation data format.
10875 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
10876 Change arguments FROM and TO to single argument NCHARS. Change caller.
10877 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
10878 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10879 (decode_coding_ccl, decode_coding_charset): Pay attention to
10880 coding->charbuf_used.
10881 (get_translation): New function.
10882 (produce_chars): New arguments translation_table and last_block.
10883 Translate characters here. Return number of carryover chars.
10884 Change caller.
10885 (produce_composition): New argument pos. Change caller.
10886 Adjust for the change of annotation data format.
10887 (produce_charset, produce_annotation): Likewise.
10888 (decode_coding, encode_coding): Don't call translate_chars.
10889 (consume_chars): New arg translation_table. Change caller.
10890 (translate_chars): Delete.
10891 (syms_of_coding): Make translation-table's number of extra slots 2.
10892
108932008-02-01 Kenichi Handa <handa@m17n.org>
10894
10895 * search.c (simple_search): Fix setting this_pos_byte in backward
10896 search.
10897
10898 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
10899 byte sequence.
10900 (detect_coding_ccl): Fix setting of the variable valids.
10901
109022008-02-01 Kenichi Handa <handa@m17n.org>
10903
10904 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
10905
10906 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
10907
10908 * editfns.c (Ftranslate_region_internal): Rename from
10909 Ftranslate_region. Accept a char-table in TABLE.
10910 (syms_of_editfns): Defsubr Stranslate_region_internal.
10911
10912 * xfaces.c (set_lface_from_font_name): If a font is specified for
10913 a frame, generate a fontset from the font.
10914 (build_scalable_font_name): If the scalable font is requested for
10915 a specific size, don't change that size.
10916 (try_font_list): Try a scalable font also in the case that a
10917 pattern string is specified.
10918
109192008-02-01 Kenichi Handa <handa@m17n.org>
10920
10921 * xfaces.c (Fface_font): New optional arg CHARACTER.
10922
109232008-02-01 Kenichi Handa <handa@m17n.org>
10924
10925 * charset.h (CHARSET_OFFSET): New macro.
10926
109272008-02-01 Kenichi Handa <handa@m17n.org>
10928
10929 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
10930
10931 * fontset.c (fontset_face): Handle the case that repertory is a
10932 char-table.
10933 (find_font_encoding): Return nil for unknown encoding.
10934 (Fset_fontset_font): Ignore a font of unknown encoding.
10935
109362008-02-01 Kenichi Handa <handa@m17n.org>
10937
10938 * keymap.c (describe_vector): Handle default value of a char table.
10939
10940 * fontset.c (fontset_face): Handle fallback fonts correctly.
10941 (Ffontset_info): Return infomation about fallback fonts.
10942
109432008-02-01 Kenichi Handa <handa@m17n.org>
10944
10945 * fontset.c (FONTSET_DEFAULT): New macro.
10946 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
10947 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
10948 the case that it is nil.
10949 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
10950 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
10951
10952 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
10953 subset or superset.
10954
109552008-02-01 Kenichi Handa <handa@m17n.org>
10956
10957 * emacs.c (main): Call init_charset after syms_of_XXX.
10958
10959 * charset.c (Vcharset_map_directory): Delete.
10960 (Vcharset_map_path): New variable.
10961 (load_charset_map_from_file): Use Vcharset_map_path instead.
10962 (init_charset): Initialize Vcharset_map_path.
10963 (syms_of_charset): Delete declaration of "charset-map-directory",
10964 add declaration of "charset-map-path".
10965
109662008-02-01 Kenichi Handa <handa@m17n.org>
10967
10968 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
10969 ASCII only string.
10970
10971 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
10972
10973 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
10974 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
10975
109762008-02-01 Kenichi Handa <handa@m17n.org>
10977
10978 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
10979
10980 * coding.c (QCmnemonic, QCdefalut_char)
10981 (QCdecode_translation_table, QCencode_translation_table)
10982 (QCpost_read_conversion, QCpre_write_conversion): New variables.
10983 (get_translation_table): Return a list of translation tables if
10984 necessary.
10985 (decode_coding): Call get_translation_table with ENCODEP 0.
10986 (char_encodable_p): If translation_table is non-nil, always call
10987 translate_char.
10988 (Fdefine_coding_system_internal): Accept list of translation
10989 tables as :encode-translation-table and :decode-translation-table.
10990 (Fcoding_system_put): New function.
10991 (syms_of_coding): Declare new symbols. Defsubr
10992 Scoding_system_put.
10993 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
10994 typically JISX0212.
10995
10996 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
10997 when the charset is superset type.
10998
10999 * character.c (translate_char): Accept list of translation tables.
11000
110012008-02-01 Kenichi Handa <handa@m17n.org>
11002
11003 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11004 (CODING_ATTR_TRANS_TBL): New macro.
11005
11006 * coding.c (get_translation_table): New function.
11007 (translate_chars): Fix the bug of skipping annotation data.
11008 (decode_coding, encode_coding): Utilize get_translation_table.
11009 (char_encodable_p, Funencodable_char_position): Translate char if
11010 necessary.
11011 (Ffind_coding_systems_region_internal)
11012 (Fcheck_coding_systems_region): Setup translation table for encode
11013 in a coding system attribute vector in advance.
11014 (Fdefine_coding_system_internal): Allow a symbol as translation
11015 table. For shift-jis type coding system, allow 4th charset.
11016
110172008-02-01 Kenichi Handa <handa@m17n.org>
11018
11019 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11020
11021 * xdisp.c (get_next_display_element): Pass -1 as POS to
11022 FACE_FOR_CHAR if displaying a C-string.
11023
110242008-02-01 Kenichi Handa <handa@m17n.org>
11025
11026 * composite.c (get_composition_id): Handle xoff and yoff in a
11027 composition rule.
11028
11029 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11030 (struct composition): New member lbearing and rbearing.
11031
11032 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11033 (x_get_glyph_overhangs): Handle a composition glyph.
11034 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11035
11036 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11037 composition glyph.
11038
110392008-02-01 Kenichi Handa <handa@m17n.org>
11040
11041 * print.c: Include charset.h.
11042 (Vprint_charset_text_property): New variable.
11043 (Qdefault): Extern it.
11044 (PRINT_STRING_NON_CHARSET_FOUND)
11045 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11046 (print_check_string_result): New variable.
11047 (print_check_string_charset_prop): New function.
11048 (print_prune_charset_plist): New variable.
11049 (print_prune_string_charset): New function.
11050 (print_object): Call print_prune_string_charset if
11051 Vprint_charset_text_property is not t.
11052 (print_interval): Print nothing if interval->plist is nil.
11053 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11054 variable. Init and staticpro print_prune_charset_plist.
11055
110562008-02-01 Kenichi Handa <handa@m17n.org>
11057
11058 * fontset.c (new_fontset_from_font_name): Use the specified font
11059 for all characters in the new fontset.
11060
11061 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11062 OBJECT args.
11063
11064 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11065 OBJECT args for composition too.
11066
11067 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11068 OBJECT args.
11069
110702008-02-01 Kenichi Handa <handa@m17n.org>
11071
11072 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11073
11074 * fontset.c (reorder_font_vector): Adjust for the change of
11075 FONT_DEF format.
11076 (fontset_face): New arg id. Change caller.
11077 (face_for_char): New args pos and object.
11078 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11079 (fs_query_fontset): Check NAME by Fassoc too.
11080 (Fset_fontset_font): Allow non-XLFD font name.
11081 (Ffontset_info): Adjust for the change of FONT_DEF format.
11082
11083 * fontset.h (face_for_char): Adjust prototype.
11084
11085 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11086 (append_space, extend_face_to_end_of_line)
11087 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11088 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11089
11090 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11091 POS and OBJECT args.
11092
11093 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
11094 POS and OBJECT args.
11095
110962008-02-01 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
11099 of GlobalAlloc'ed memory.
11100
111012008-02-01 Kenichi Handa <handa@m17n.org>
11102
11103 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
11104
11105 * charset.h (charset_table_used): Delete extern.
11106
11107 * charset.c (charset_table_used): Make it static.
11108 (map_charset_chars): Fix args to c_function with.
11109
11110 * chartab.c (map_sub_char_table_for_charset): Fix args to
11111 c_function with.
11112
11113 * coding.h (enum coding_result_code): Delete
11114 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
11115
11116 * coding.c (Qinsufficient_source, Qinconsistent_eol)
11117 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
11118 (Vlast_code_conversion_error): New variables.
11119 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
11120 (ONE_MORE_BYTE): Record error if any instead of signaling an
11121 error. If non-ASCII multibyte char is found, return the negative
11122 value of the code. All callers changed to check it.
11123 (ONE_MORE_BYTE_NO_CHECK): Likewise.
11124 (record_conversion_result): New function. Change all codes setting
11125 coding->result to call this function.
11126 (detect_coding_utf_8, decode_coding_utf_8)
11127 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
11128 Don't use the local variable incomplete.
11129 (emacs_mule_char): Change the second arg to `const'.
11130 (decode_coding): Fix of flushing out unprocessed data.
11131 (make_conversion_work_buffer): Fix making of a work buffer.
11132 (decode_coding_object): Return coding->dst_object.
11133
11134 * fontset.c (set_fontset_font): Fix args.
11135
11136 * lisp.h (CHARACTERBITS): Define as 22.
11137
11138 * process.c (send_process): Be sure to set coding->src_multibyte.
11139
11140 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
11141
111422008-02-01 Kenichi Handa <handa@m17n.org>
11143
11144 * xdisp.c (handle_auto_composed_prop): Give limit to
11145 Fnext_single_char_property_change.
11146
111472008-02-01 Kenichi Handa <handa@m17n.org>
11148
11149 * composite.c (syms_of_composite): Don't make the composition hash
11150 table weak.
11151
11152 * fontset.c (Fset_fontset_font): Fix docstring.
11153
11154 * lisp.h (detect_coding_system): Adjust prototype.
11155
11156 * fileio.c (kill_workbuf_unwind): Delete this function.
11157 (Finsert_file_contents): Adjust the call of detect_coding_system.
11158 Get conversion_buffer by code_conversion_save. Use the macro
11159 CODING_MAY_REQUIRE_DECODING. After decoding, update
11160 coding_system.
11161
11162 * coding.h (make_conversion_work_buffer): Delete extern.
11163 (code_conversion_save): Extern it.
11164
11165 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
11166 (CODING_GET_INFO): Delete argument eol_type. Change callers.
11167 (decode_coding_utf_8): Don't do eol converion.
11168 (detect_coding_utf_16): Check coding->src_chars, not
11169 coding->src_bytes. Add heuristics for those that have no signature.
11170 (decode_coding_emacs_mule, decode_coding_iso_2022)
11171 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11172 Don't do eol converion.
11173 (adjust_coding_eol_type): Return a new coding system.
11174 (detect_coding): Don't detect eol. Fix for utf-16 detection.
11175 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
11176 each change.
11177 (decode_coding): Pay attention to undo_list. Do eol conversion for
11178 all types of coding-systems (if necessary).
11179 (Vcode_conversion_work_buf_list): Delete it.
11180 (Vcode_conversion_reused_workbuf): Rename from
11181 Vcode_conversion_reused_work_buf.
11182 (Vcode_conversion_workbuf_name): New variable.
11183 (reused_workbuf_in_use): New variable.
11184 (make_conversion_work_buffer): Delete the arg DEPTH.
11185 (code_conversion_restore): Change argument to cons.
11186 (code_conversion_save): Delete the argument BUFFER. Change callers.
11187 (detect_coding_system): New argument src_chars. Change callers.
11188 Fix for utf-16 detection.
11189 (init_coding_once): Don't use ISO_carriage_return.
11190 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
11191 reused_workbuf_in_use.
11192
111932008-02-01 Kenichi Handa <handa@m17n.org>
11194
11195 * keymap.c (store_in_keymap): Pay attention to the case that idx
11196 is a cons specifying a character range.
11197
111982008-02-01 Kenichi Handa <handa@m17n.org>
11199
11200 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
11201 HANDLED_RECOMPUTE_PROPS.
11202
11203 * coding.c (Fdefine_coding_system_internal): Fix checking of
11204 ascii compatibility.
11205
112062008-02-01 Kenichi Handa <handa@m17n.org>
11207
11208 * charset.c (find_charsets_in_text): Delete unused locale variable.
11209 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
11210
11211 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
11212 Resync charset_list to Vemacs_mule_charset_list.
11213
11214 * keymap.c (store_in_keymap): Pay attention to the case that idx
11215 is a cons specifying a character range.
11216
112172008-02-01 Kenichi Handa <handa@m17n.org>
11218
11219 * composite.c (update_compositions): Bind inhibit-read-only, etc
11220 to t before calling remove-list-of-text-properties.
11221
11222 * print.c (print_object): Always print ASCII chars as is.
11223
112242008-02-01 Kenichi Handa <handa@m17n.org>
11225
11226 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
11227
11228 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
11229 is a char table.
11230
112312008-02-01 Kenichi Handa <handa@m17n.org>
11232
11233 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
11234
112352008-02-01 Kenichi Handa <handa@m17n.org>
11236
11237 * xfaces.c (set_lface_from_font_name): Fix for the case that
11238 FONTNAME is not fontset name.
11239
112402008-02-01 Kenichi Handa <handa@m17n.org>
11241
11242 * fns.c (base64_encode_1): Fix previous change.
11243
112442008-02-01 Kenichi Handa <handa@m17n.org>
11245
11246 * fontset.c (set_fontset_font): New function.
11247 (Fset_fontset_font): If a font is specified for a charset, use
11248 map_charset_chars to store the font spec in a fontset.
11249
112502008-02-01 Kenichi Handa <handa@m17n.org>
11251
11252 * fontset.c (fontset_face): Create a fallback fontset on demand.
11253 (make_fontset): Don't create a fallback fontset here.
11254 (free_face_fontset): Free a fallback fontset (if any) too.
11255 (n_auto_fontsets): Delete this variable.
11256 (auto_fontset_alist): New variable.
11257 (new_fontset_from_font_name): Check auto_fontset_alist.
11258 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
11259 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
11260 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
11261 Defsubr Sfontset_list_all.
11262
112632008-02-01 Kenichi Handa <handa@m17n.org>
11264
11265 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11266
112672008-02-01 Kenichi Handa <handa@m17n.org>
11268
11269 * fontset.c (Fnew_fontset): Check NAME more rigidly.
11270
112712008-02-01 Kenichi Handa <handa@m17n.org>
11272
11273 * editfns.c (Fgoto_char): Fix docstring.
11274
112752008-02-01 Kenichi Handa <handa@m17n.org>
11276
11277 * insdel.c (insert_from_gap): Adjust intervals correctly.
11278
112792008-02-01 Jason Rumney <jasonr@gnu.org>
11280
11281 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
11282 (pfnGetFontUnicodeRanges): New dynamically loaded function.
11283 (w32_initialize): Try to load it.
11284 (x_get_font_repertory): Use it if available.
11285 (w32_encode_char): Add shortcut for unicode output.
11286
11287 * w32fns.c (w32_load_system_font): Default charset to -1.
11288 (x_to_w32_charset): Match all fonts for unicode.
11289 (w32_to_x_charset): New parameter matching. Don't return partial
11290 or wildcard charsets.
11291 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
11292 (w32_codepage_for_font): Return CP_UNICODE for unicode.
11293 (w32_to_x_font): Match charset to real charset.
11294 (enum_font_cb2): Always list unicode versions.
11295
11296 * makefile.w32-in (temacs): Increase EMHEAP.
11297
112982008-02-01 Jason Rumney <jasonr@gnu.org>
11299
11300 * w32term.c (w32_encode_char): New charset parameter.
11301 font_info.encoding becomes encoding_type.
11302 (x_get_font_repertory): New function. Warning: stub only!
11303 (x_new_font): Return quickly if font already set.
11304 (x_new_fontset): fontsetname parameter is Lisp_Object.
11305 Use new fs_query_fontset. Try new_fontset_from_font_name.
11306 Use fontset_name for return value.
11307
11308 * w32term.h: Declare x_get_font_repertory.
11309
11310 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
11311 place of find_charset_in_text. Use encode_coding_object in place
11312 of encode_coding.
11313 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
11314 decode_coding.
11315
11316 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
11317 of x_new_fontset.
11318 (w32_load_system_font): Initialize charset as unicode.
11319 font_info.encoding becomes encoding_type.
11320 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
11321 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
11322 (syms_of_w32fns): Set get_font_repertory_func.
11323
11324 * w32console.c: Include character.h. Use terminal_encode_buffer
11325 from term.c.
11326 (write_glyphs): Use new version of encode_terminal_code. Use
11327 encode_coding_object in place of encode_coding.
11328
11329 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
11330 encoding becomes encoding_type.
11331
11332 * term.c (terminal_encode_buffer): Make externally visible.
11333
11334 * makefile.w32-in: Add character.h dependancies.
11335 (character.o, chartab.o): New targets.
11336
113372008-02-01 Kenichi Handa <handa@m17n.org>
11338
11339 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
11340 CODING_ID_EOL_TYPE.
11341
113422008-02-01 Andreas Schwab <schwab@suse.de>
11343
11344 * coding.c (produce_chars): Revert last change.
11345
113462008-02-01 Kenichi Handa <handa@m17n.org>
11347
11348 * charset.h (charset_unicode): Extern it.
11349
11350 * charset.c (string_xstring_p): Check by (C >= 0x100).
11351 (find_charsets_in_text): Change format of the arc CHARSETS. New
11352 arg MULTIBYTE.
11353 (Ffind_charset_region, Ffind_charset_string): Adjust for the
11354 change of find_charsets_in_text.
11355 (Fsplit_char): Fix doc. Never return unknown.
11356
11357 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
11358
11359 * coding.c (Fdefine_coding_system_alias): Update
11360 Vcoding_system_list.
11361
11362 * fontset.c (load_font_get_repertory): Pay attention to the case
11363 that ENCODING of a font is specified by a char-table.
11364
11365 * xterm.c (x_get_font_repertory): Handle the case that the
11366 encoding of font is other than Unicode.
11367
113682008-02-01 Kenichi Handa <handa@m17n.org>
11369
11370 * term.c (encode_terminal_code): Don't handle glyph-table. Check
11371 if a character is encodable by the terminal coding system. If
11372 not, produces proper number of `?'s. Update
11373 terminal_encode_buffer and terminal_encode_buf_size if necessary.
11374 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
11375
113762008-02-01 Kenichi Handa <handa@m17n.org>
11377
11378 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
11379 variables.
11380 (encode_terminal_code): Change argument. Encode multiple
11381 characters at once. Store the result of encoding in
11382 terminal_encode_buffer.
11383 (write_glyphs, insert_glyphs): Adjust for the change of
11384 encode_terminal_code.
11385 (term_init): Initialize terminal_encode_buffer and
11386 terminal_encode_buf_size.
11387
11388 * coding.c (consume_chars): If coding->src_object is nil, don't
11389 check annotation.
11390
113912008-02-01 Kenichi Handa <handa@m17n.org>
11392
11393 * character.c (char_string): Use ASCII_CHAR_P instead of
11394 SINGLE_BYTE_CHAR_P.
11395
113962008-02-01 Kenichi Handa <handa@m17n.org>
11397
11398 * xdisp.c (handle_auto_composed_prop): Check if the last
11399 characters of auto-composed region is newly composed with the
11400 following characters.
11401 (handle_composition_prop): Fix checking of point being inside
11402 composition.
11403
114042008-02-01 Kenichi Handa <handa@m17n.org>
11405
11406 * fns.c (concat): Don't change multibyteness of the result by
11407 concatenating an 8-bit character.
11408
11409 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
11410 multibyteness of the result when newelt is an 8-bit character.
11411
114122008-02-01 Dave Love <fx@gnu.org>
11413
11414 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
11415 EMACS_INT.
11416
11417 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
11418
11419 * xfaces.c (face_numeric_value): Declare dim size_t.
11420 (Finternal_lisp_face_equal_p): Remove unused f.
11421
11422 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
11423 (MATRIX_ROW): Remove unused vars.
11424 (draw_glyphs, x_insert_glyphs, fast_find_position)
11425 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
11426 byte/char counts.
11427
11428 * regex.c (regex_compile): Remove unused var.
11429
11430 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11431
11432 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
11433 (Faccessible_keymaps, where_is_internal): Remove unused vars.
11434
11435 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
11436
11437 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
11438
11439 * fileio.c (Fwrite_region): Remove unused var.
11440
11441 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
11442 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
11443
11444 * composite.c (Fremove_list_of_text_properties): Declare.
11445
11446 * coding.c (inhibit_pre_post_conversion): Remove (unused).
11447 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
11448 (coding_inherit_eol_type): Remove unused attrs.
11449 (detect_coding): Cast arg of detect_eol.
11450
11451 * charset.c (syms_of_charset): Remove unused var p.
11452 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
11453 byte/char counts.
11454
11455 * casetab.c (set_case_table): Remove unused var.
11456
11457 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
11458 unused vars.
11459
114602008-02-01 Dave Love <fx@gnu.org>
11461
11462 * xterm.c (x_bitmap_mask): Declare.
11463
114642008-02-01 Dave Love <fx@gnu.org>
11465
11466 * xterm.c (x_term_init): Fix type error.
11467
11468 * lisp.h: Add Funibyte_char_to_multibyte.
11469
11470 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
11471 (Fset_coding_system_priority): Doc fix.
11472
11473 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
11474
11475 * indent.c (check_composition): Make start and end EMACS_INT.
11476
11477 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
11478
11479 * xdisp.c (handle_composition_prop, check_point_in_composition):
11480 Make buffer positions EMACS_INT.
11481
11482 * composite.c (find_composition, run_composition_function)
11483 (update_compositions, Ffind_composition_internal): Make buffer
11484 positions EMACS_INT.
11485
11486 * composite.h (find_composition, update_compositions): Make
11487 position args EMACS_INT.
11488
11489 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
11490
11491 * intervals.c (get_property_and_range):
11492 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
11493
11494 * unexalpha.c: Don't include varargs.h.
11495
114962008-02-01 Dave Love <fx@gnu.org>
11497
11498 * coding.h (ENCODE_UTF_8): New.
11499
11500 * Makefile.in (gtkutil.o): Depend on coding.h.
11501
11502 * coding.c (Fset_coding_system_priority): Doc fix.
11503
115042008-02-01 Kenichi Handa <handa@m17n.org>
11505
11506 * fileio.c (Finsert_file_contents): Call setup_coding_system in
11507 the case of auto saving.
11508
115092008-02-01 Andreas Schwab <schwab@suse.de>
11510
11511 * chartab.c (map_char_table, map_char_table_for_charset): Protect
11512 `range' from GC.
11513
115142008-02-01 Kenichi Handa <handa@m17n.org>
11515
11516 * coding.c (decode_coding_sjis): Check bytes more rigidly.
11517
115182008-02-01 Kenichi Handa <handa@m17n.org>
11519
11520 * fileio.c (choose_write_coding_system): Return a decided coding system.
11521 (Fwrite_region): Set Vlast_coding_system_used to the return value
11522 of choose_write_coding_system.
11523
115242008-02-01 Kenichi Handa <handa@m17n.org>
11525
11526 * charset.c (Fset_charset_priority): Pay attention to duplicated
11527 arguments.
11528
11529 * coding.c (QCcategory): New variable.
11530 (syms_of_coding): Defsym it. Set all elements of
11531 Vcoding_category_table and their symbol values.
11532 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
11533 coding-category-XXX, and coding-category-list.
11534 (Fdefine_coding_system_internal): Add category in the plist.
11535
115362008-02-01 Kenichi Handa <handa@m17n.org>
11537
11538 * callproc.c (Fcall_process): Handle carryover correctly.
11539
11540 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
11541 (raw_text_coding_system): Check NILP (coding_system).
11542 (coding_inherit_eol_type): Check NILP (coding_system) and
11543 NILP (parent).
11544 (consume_chars): Fix for the case of raw-text.
11545
11546 * process.c (read_process_output): Handle carryover correctly.
11547
115482008-02-01 Dave Love <fx@gnu.org>
11549
11550 * regex.c (re_search_2): Fix last change.
11551
115522008-02-01 Kenichi Handa <handa@m17n.org>
11553
11554 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
11555 target_multibyte. Even in a unibyte case, return a converted
11556 multibyte char.
11557 (GET_CHAR_AFTER): New macro.
11558 (PATFETCH): Translate via multibyte char.
11559 (HANDLE_UNIBYTE_RANGE): Delete this macro.
11560 (SETUP_MULTIBYTE_RANGE): New macro.
11561 (regex_compile): Setup compiled code so that its multibyteness
11562 matches that of a target. Fix the handling of "[X-YZ]" using
11563 SETUP_MULTIBYTE_RANGE.
11564 (analyse_first) <charset>: For filling fastmap for all multibyte
11565 characters, don't check by BASE_LEADING_CODE_P.
11566 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
11567 the same as RE_MULTIBYTE_P (bufp) now.
11568 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
11569 (TARGET_CHAR_AND_LENGTH): Delete this macro.
11570 (TRANSLATE_VIA_MULTIBYTE): New macro.
11571 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
11572 It is the same as RE_MULTIBYTE_P (bufp) now.
11573 <exactn>: Translate via multibyte.
11574 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
11575 translate it.
11576 <charset, charset_not>: Fetch a character by
11577 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
11578 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
11579 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
11580 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
11581 by GET_CHAR_AFTER.
11582 (bcmp_translate): Likewise.
11583
11584 * search.c (compile_pattern): Check the member target_multibyte,
11585 not the member multibyte of buf.
11586
11587 * lread.c (read1): While reading a string, set force_singlebyte
11588 and force_multibyte correctly.
11589
11590 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
11591 up of unibyte_to_multibyte_table.
11592
115932008-02-01 Kenichi Handa <handa@m17n.org>
11594
11595 * coding.c (setup_coding_system): If coding has
11596 post-read-conversion or pre-write-conversion, set
11597 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
11598 respectively.
11599 (decode_coding_gap): Run post-read-conversion if any.
11600
11601 * fileio.c (Finsert_file_contents): Even if we read into a
11602 unibyte buffer, check if we must decode the result or not.
11603
116042008-02-01 Kenichi Handa <handa@m17n.org>
11605
11606 * coding.c (make_conversion_work_buffer): Change the work buffer
11607 name to the same one as that of Emacs 21.
11608
116092008-02-01 Kenichi Handa <handa@m17n.org>
11610
11611 * coding.h (make_conversion_work_buffer): Adjust prototype.
11612 (code_conversion_restore): Don't extern it.
11613
11614 * coding.c (detected_mask): Delete unused variable.
11615 (decode_coding_iso_2022): Pay attention to the byte sequence of
11616 CTEXT extended segment, and retain those bytes as is.
11617 (decode_coding_ccl): Delete unused variable `valids'.
11618 (setup_coding_system): Delete unused variable `category'.
11619 (consume_chars): Delete unused variable `category'. Make it work
11620 for non-multibyte case.
11621 (make_conversion_work_buffer): Change argument.
11622 (saved_coding): Delete unused variable.
11623 (code_conversion_restore): Don't check saved_coding->destination.
11624 (code_conversion_save): New function.
11625 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
11626 instead of record_unwind_protect.
11627 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
11628 (detect_coding_system): Delete unused variable `mask'.
11629 (Fdefine_coding_system_internal): Delete unused variable id.
11630
11631 * fileio.c (kill_workbuf_unwind): New function.
11632 (Finsert_file_contents): On replacing, call
11633 make_conversion_work_buffer with correct args, and call
11634 record_unwind_protect with the first arg kill_workbuf_unwind.
11635
11636 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
11637
116382008-02-01 Kenichi Handa <handa@m17n.org>
11639
11640 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
11641 (fontset_add): Fix for the case that TO is less than TO1.
11642 (Ffontset_info): Don't use fallback fontset on checking the
11643 default fontset.
11644 (dump_fontset): New function for debugging.
11645
11646 * coding.c (Fdefine_coding_system_internal): Fix for the case that
11647 coding_type is Qcharset.
11648
116492008-02-01 Kenichi Handa <handa@m17n.org>
11650
11651 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
11652 (map_char_table): Don't inherit the value from the parent on
11653 initializing VAL. Adjust for the above change.
11654
116552008-02-01 Kenichi Handa <handa@m17n.org>
11656
11657 * coding.c (Qsignature, Qendian): Delete these variables.
11658 (syms_of_coding): Don't initialize them.
11659 (CATEGORY_MASK_UTF_16_AUTO): New macro.
11660 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
11661 detect_info->found.
11662 (decode_coding_utf_16): Don't detect BOM here.
11663 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
11664 is NOT utf_16_without_bom.
11665 (setup_coding_system): For a coding system of type utf-16, check
11666 if the attribute :endian is Qbig or not (not nil or not), and set
11667 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
11668 (detect_coding): If coding type is utf-16 and BOM detection is
11669 required, detect it.
11670 (Fdefine_coding_system_internal): For a coding system of type
11671 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
11672
116732008-02-01 Kenichi Handa <handa@m17n.org>
11674
11675 * coding.c (coding_set_source): Fix for the case that the current
11676 buffer is different from coding->src_object.
11677 (decode_coding_object): Don't use the conversion work buffer if
11678 DST_OBJECT is a buffer.
11679
116802008-02-01 Dave Love <fx@gnu.org>
11681
11682 * lread.c (read_emacs_mule_char) [len==2]: Index
11683 emacs_mule_charset correctly.
11684
116852008-02-01 Dave Love <fx@gnu.org>
11686
11687 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
11688 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
11689 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
11690 treated specially.)
11691 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
11692 (detected_mask): Remove Big5 bits.
11693
116942008-02-01 Kenichi Handa <handa@m17n.org>
11695
11696 The following changes are to make the font rescaling facility
11697 compatible with Emacs 21.
11698
11699 * xfaces.c (Vface_font_rescale_alist): Rename from
11700 Vface_resizing_fonts.
11701 (struct font_name): Rename member resizing_ratio to rescale_ratio.
11702 (font_rescale_ratio): Rename from font_resizing_ratio.
11703 (split_font_name): Set font->rescale_ratio.
11704 (better_font_p): Pay attention to font->rescale_ratio.
11705 (build_scalable_font_name): Likewise. Change RESX, and RESY
11706 fields.
11707 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
11708
117092008-02-01 Kenichi Handa <handa@m17n.org>
11710
11711 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
11712 (Qutf_16_le): Remove these variables.
11713 (syms_of_coding): Don't DEFSYM them.
11714 (decode_coding_utf_16): Fix handling of BOM.
11715 (encode_coding_utf_16): Fix handling of BOM.
11716
117172008-02-01 Kenichi Handa <handa@m17n.org>
11718
11719 * fileio.c (Finsert_file_contents): On replacing, before decoding
11720 the file into the work buffer, set point of the work buffer to the end.
11721
117222008-02-01 Dave Love <fx@gnu.org>
11723
11724 * coding.c (Fcheck_coding_systems_region): Fix type errors.
11725
117262008-02-01 Dave Love <fx@gnu.org>
11727
11728 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11729 and fix C types.
11730
117312008-02-01 Kenichi Handa <handa@m17n.org>
11732
11733 * xdisp.c (SKIP_GLYPHS): New macro.
11734 (set_cursor_from_row): Pay attention to string display properties.
11735
11736 * category.c (copy_category_entry): Fix for the case that RANGE
11737 is an integer.
11738
11739 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
11740
11741 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
11742
117432008-02-01 Kenichi Handa <handa@m17n.org>
11744
11745 * charset.c (Fcharset_id_internal): New function.
11746 (syms_of_charset): Defsubr it.
11747
11748 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
11749 with the last arg charset_list acquired from coding.
11750 (Fdefine_coding_system_internal): For ccl-based coding system, fix
11751 the attribute coding_attr_ccl_valids.
11752
11753 * coding.h (enum define_coding_ccl_arg_index): Set the first
11754 member coding_arg_ccl_decoder to coding_arg_max.
11755
11756 * ccl.h (ccl_driver): Adjust prototype.
11757
11758 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
11759 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 11760 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
11761 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
11762 last arg Qnil.
11763
117642008-02-01 Kenichi Handa <handa@m17n.org>
11765
11766 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
11767 call encode_char.
11768
11769 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
11770
117712008-02-01 Dave Love <fx@gnu.org>
11772
11773 * composite.c (syms_of_composite): Make composition_hash_table weak.
11774
117752008-02-01 Kenichi Handa <handa@m17n.org>
11776
11777 * dispextern.h (check_face_attributes, generate_ascii_font_name)
11778 (font_name_registry): Don't extern them.
11779 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
11780
11781 * fontset.h (Qfontset): Don't extern it.
11782 (new_fontset_from_font_name): Extern it.
11783
11784 * fontset.c: Give 8 extra slots to fontset objects.
11785 (Qfontset_info): New variable.
11786 (syms_of_fontset): Defsym it.
11787 (FONTSET_FALLBACK): New macro.
11788 (fontset_face): Try also the default fontset.
11789 (make_fontset): Realize a fallback fontset from the default fontset.
11790 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
11791 using split_font_name_into_vector and build_font_name_from_vector.
11792 (Fset_fontset_font): Access the elements of font_spec by enum
11793 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
11794 name by using split_font_name_into_vector.
11795 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
11796 generate a proper font name from the fontset name. Update
11797 Vfontset_alias_alist.
11798 (n_auto_fontsets): New variable.
11799 (new_fontset_from_font_name): New function.
11800 (Ffont_info): Store the information about fonts generated from the
11801 default fontset in the first extra slot of the returned char-table.
11802
11803 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
11804 (font_name_registry): Delete function.
11805 (split_font_name_into_vector): New function.
11806 (build_font_name_from_vector): New function.
11807 (font_list): The argument REGISTRY is now a list of registry names.
11808 (choose_face_font): If we are choosing an ASCII font, and ATTRS
11809 specifies an explicit font name, return the name as is. Make a
11810 list of registy names.
11811
11812 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
11813 of x_new_fontset.
11814 (Fx_create_frame): Don't call x_new_fontset here. Just use
11815 x_list_fonts to check the existence of fonts.
11816
11817 * xterm.h (x_new_fontset): Adjust prototype.
11818
11819 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
11820 string. Use new_fontset_from_font_name to create a fontset from a
11821 font name.
11822
118232008-02-01 Kenichi Handa <handa@m17n.org>
11824
11825 * syntax.c (Vfind_word_boundary_function_table): New name for
11826 Vnext_word_boundary_function_table.
11827 (find-word-boundary-function-table): New name for
11828 next-word-boundary-function-table.
11829
118302008-02-01 Dave Love <fx@gnu.org>
11831
11832 * Makefile.in: Fix some dependencies.
11833
11834 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
11835 set it to nil before returning.
11836
11837 * composite.c (update_compositions): Fix type error.
11838
11839 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
11840
118412008-02-01 Kenichi Handa <handa@m17n.org>
11842
11843 * xterm.c (x_new_font): Optimize for the case that the font is
11844 already set for the frame.
11845
118462008-02-01 Kenichi Handa <handa@m17n.org>
11847
11848 * chartab.c (char_table_ascii): Check if the char table contents
11849 is sub-char-table or not.
11850 (char_table_set, char_table_set_range): Fix argument to
11851 char_table_ascii.
11852
11853 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
11854 (detect_coding_utf_8, detect_coding_utf_16)
11855 (detect_coding_emacs_mule, detect_coding_iso_2022)
11856 (detect_coding_sjis, detect_coding_big5)
11857 (detect_coding_ccl, detect_coding_charset): Change argument MASK
11858 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
11859 sequence is valid in this coding system. Change callers.
11860 (MAX_ANNOTATION_LENGTH): New macro.
11861 (ADD_ANNOTATION_DATA): New macro.
11862 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
11863 ADD_ANNOTATION_DATA. Change the format of annotation data.
11864 (ADD_CHARSET_DATA): New macro.
11865 (emacs_mule_char): New argument ID. Change callers.
11866 (decode_coding_emacs_mule, decode_coding_iso_2022)
11867 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11868 Produce charset annotation data in coding->charbuf.
11869 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
11870 to charset annotation data in coding->charbuf.
11871 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
11872 coding->common_flags if the coding system is iso-2022 based and
11873 uses designation.
11874 (produce_composition): Adjust for the new annotation data format.
11875 (produce_charset): New function.
11876 (produce_annotation): Handle charset annotation.
11877 (handle_composition_annotation, handle_charset_annotation): New
11878 functions.
11879 (consume_chars): Handle charset annotation. Utilize the above two
11880 functions.
11881 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
11882 buffer, get the deleted text as a string and set
11883 coding->src_object to that string.
11884 (detect_coding, detect_coding_system): Use the new struct
11885 coding_detection_info.
11886
11887 * coding.h (struct coding_detection_info): New structure.
11888 (struct coding_system): Adjust prototype of the member `detector'.
11889 (CODING_ANNOTATE_CHARSET_MASK): New macro.
11890
118912008-02-01 Kenichi Handa <handa@m17n.org>
11892
11893 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
11894
118952008-02-01 Dave Love <fx@gnu.org>
11896
11897 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
11898 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
11899 to new local and nullify apropos_accumulate before returning.
11900 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
11901
119022008-02-01 Kenichi Handa <handa@m17n.org>
11903
11904 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
11905 correctly.
e3eea1fc 11906
aac0c6e3
MR
119072008-02-01 Dave Love <fx@gnu.org>
11908
11909 * fns.c (Flanginfo): Call synchronize_system_time_locale.
11910
119112008-02-01 Kenichi Handa <handa@m17n.org>
11912
11913 The following changes are to make character composition happen
11914 automatically on displaying.
11915
11916 * Makefile.in (lisp, shortlisp): Add composite.elc.
11917
11918 * composite.h (Qauto_composed, Vauto_composition_function)
11919 (Qauto_composition_function): Extern them.
11920
11921 * composite.c (Vcomposition_function_table)
11922 (Qcomposition_function_table): Delete variables.
11923 (Qauto_composed, Vauto_composition_function)
11924 (Qauto_composition_function): New variables.
11925 (run_composition_function): Don't call
11926 compose-chars-after-function.
11927 (update_compositions): Clear `auto-composed' text property.
11928 (compose_chars_in_text): Delete this function.
11929 (syms_of_composite): Staticpro Qauto_composed and
11930 Qauto_composition_function. Declare Vauto_composition_function as
11931 a Lisp variable.
11932
11933 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
11934
11935 * xdisp.c (it_props): Add an entry for Qauto_composed.
11936 (handle_auto_composed_prop): New function.
11937
11938 * xselect.c (selection_data_to_lisp_data): Don't call
11939 compose_chars_in_text.
11940
119412008-02-01 Dave Love <fx@gnu.org>
11942
11943 * keyboard.c (read_char): Modify checking around use of
11944 Vkeyboard_translate_table.
11945
11946 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11947 and fix C types.
11948
119492008-02-01 Kenichi Handa <handa@m17n.org>
11950
11951 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
11952 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11953 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
11954 the case that the last byte is '\r' correctly.
11955 (decode_coding): Flush out the unprocessed data correctly.
11956 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
11957
119582008-02-01 Dave Love <fx@gnu.org>
11959
11960 * xterm.c (XTread_socket): Fix changes for defined keysyms.
11961 Add XK_ISO... case.
11962 (xaw_scroll_callback): Revert last change.
11963
119642008-02-01 Kenichi Handa <handa@m17n.org>
11965
11966 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
11967
119682008-02-01 Kenichi Handa <handa@m17n.org>
11969
11970 * xfaces.c (Vface_resizing_fonts): New variable.
11971 (struct font_name): New member `resizing_ratio'.
11972 (font_resizing_ratio): New function.
11973 (split_font_name): Set font->resizing_ratio.
11974 (better_font_p): Pay attention to font->resizing_ratio.
11975 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
11976 RESX, and RESY fields.
11977 (try_alternative_families): Try scalable fonts if
11978 Vscalable_fonts_allowed is not Qt.
11979 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
11980
119812008-02-01 Dave Love <fx@gnu.org>
11982
11983 * xterm.c (xaw_scroll_callback): Cast correctly.
11984
119852008-02-01 Dave Love <fx@gnu.org>
11986
11987 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
11988 (lispy_kana_keys): Comment out.
11989 (make_lispy_event) [XK_kana_A]: Comment out.
11990
11991 * xterm.c (xaw_scroll_callback): Cast call_data.
11992 (XTread_socket): Deal with ASCII keysyms.
11993 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
11994
119952008-02-01 Dave Love <fx@gnu.org>
11996
11997 * xterm.c (Vx_keysym_table): New.
11998 (syms_of_xterm): Initialize it.
11999 (XTread_socket): Use it.
12000 From head: Eliminate incorrect optimization that tried to avoid
12001 decoding the output of X*LookupString.
12002 (x_get_font_repertory): Delete charset declaration.
12003
120042008-02-01 Kenichi Handa <handa@m17n.org>
12005
12006 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12007 return 0.
12008 (Fdefine_coding_system_internal): Setup
12009 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12010
120112008-02-01 Dave Love <fx@gnu.org>
12012
12013 * coding.c (Fcheck_coding_system): Doc fix.
12014
12015 * editfns.c (Finsert_byte): Return a proper value.
12016
120172008-02-01 Kenichi Handa <handa@m17n.org>
12018
12019 * coding.c (decode_coding): Fix args to translate_chars. Pay
12020 attention to Vstandard_translation_table_for_decode.
12021 (encode_coding): Fix args to translate_chars. Pay attention to
12022 Vstandard_translation_table_for_encode.
12023
12024 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12025 SINGLE_BYTE_CHAR_P.
12026
12027 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12028 not by SINGLE_BYTE_CHAR_P.
12029
12030 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12031 SINGLE_BYTE_CHAR_P.
12032
12033 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12034 SINGLE_BYTE_CHAR_P.
12035
12036 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12037 by SINGLE_BYTE_CHAR_P.
12038
12039 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12040 SINGLE_BYTE_CHAR_P.
12041
120422008-02-01 Dave Love <fx@gnu.org>
12043
12044 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12045
120462008-02-01 Dave Love <fx@gnu.org>
12047
12048 * fns.c (Flanginfo): Fix typo.
12049
12050 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12051
120522008-02-01 Kenichi Handa <handa@m17n.org>
12053
12054 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12055 (detect_coding_emacs_mule, detect_coding_iso_2022)
12056 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12057 incomplete byte sequence. Don't update *mask when correctly detected.
12058 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12059 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12060 (detect_coding, detect_coding_system): Adjust for the changes above.
12061
120622008-02-01 Kenichi Handa <handa@m17n.org>
12063
12064 * character.c (char_string): Rename from
12065 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12066 (string_char): Rename from string_char.
12067
12068 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12069 if C is greater than MAX_3_BYTE_CHAR.
12070 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12071 string_char instead of string_char_with_unification.
12072
120732008-02-01 Dave Love <fx@gnu.org>
12074
12075 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12076
120772008-02-01 Kenichi Handa <handa@m17n.org>
12078
12079 * keymap.c (push_key_description): Pay attention to force_multibyte.
12080
12081 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12082
120832008-02-01 Dave Love <fx@gnu.org>
12084
12085 * charset.c (define_charset_internal): Rename `supprementary'.
12086
12087 * Makefile.in (lisp, shortlisp): Remove latin-N.
12088
120892008-02-01 Dave Love <fx@gnu.org>
12090
12091 * xfns.c (x_window, x_window): Use use_xim.
12092
12093 * xterm.c (use_xim): Initialize.
12094 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12095 (x_term_init): Maybe set use_xim.
12096
12097 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12098
120992008-02-01 Kenichi Handa <handa@m17n.org>
12100
12101 * search.c (search_buffer): Fix case-fold-search of multibyte
12102 characters.
12103 (boyer_moore): Rename the last argument to char_high_bits.
12104
121052008-02-01 Kenichi Handa <handa@m17n.org>
12106
12107 * xdisp.c (display_string): Fix for the case of zero width glyph.
12108
12109 * xfns.c (x_set_font): Change the error message of the case that
12110 x_new_fontset returns Qt.
12111
12112 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
12113 (Finternal_set_lisp_face_attribute): Use signal_error for the
12114 error of invalid fontset.
12115
12116 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
12117 fontset, return Qt.
12118
121192008-02-01 Dave Love <fx@gnu.org>
12120
12121 * unexelf.c (unexec): Make .got handling not SGI-specific.
12122
12123 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
12124
12125 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
12126
12127 * keyboard.c (read_key_sequence): Fix type error.
12128
12129 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
12130 type error.
12131
12132 * fontset.c (fontset_add): Return Lisp_Object.
12133
121342008-02-01 Dave Love <fx@gnu.org>
12135
12136 * charset.h (charset_ordered_list_tick): Declare extern.
12137
121382008-02-01 Kenichi Handa <handa@m17n.org>
12139
12140 The following changes (and some of 2008-02-01 changes of mine) are
12141 for handling syntax, category, and case conversion for unibyte
12142 characters by converting them to multibyte on the fly. With these
12143 changes, we don't have to setup syntax and case tables for unibyte
12144 characters in each language environment.
12145
12146 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
12147 multibyte if necessary.
12148
12149 * bytecode.c (Fbyte_code): Likewise.
12150
12151 * character.h (LEADING_CODE_LATIN_1_MIN)
12152 (LEADING_CODE_LATIN_1_MAX): New macros.
12153 (unibyte_to_multibyte_table): Extern it.
12154 (unibyte_char_to_multibyte): New macro.
12155 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
12156 (CHAR_LEADING_CODE): New macro.
12157 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
12158
12159 * character.c (unibyte_to_multibyte_table): New variable.
12160 (unibyte_char_to_multibyte): Move to character.h and define as macro.
12161 (multibyte_char_to_unibyte): If C is an eight-bit character,
12162 convert it to the corresponding byte value.
12163
12164 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
12165 not 1, signals an error. Update the elements of
12166 unibyte_to_multibyte_table.
12167 (init_charset_once): Initialize unibyte_to_multibyte_table.
12168 (syms_of_charset): Define the charset `iso-8859-1'.
12169
12170 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
12171 as is without converting it to unibyte. In a unibyte buffer,
12172 convert C to multibyte before checking the syntax.
12173
12174 * lisp.h (unibyte_char_to_multibyte): Delete extern.
12175
12176 * minibuf.c (Fminibuffer_complete_word): Use the macro
12177 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
12178
12179 * regex.h (struct re_pattern_buffer): New member target_multibyte.
12180
12181 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
12182 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
12183 that is zero, convert an eight-bit char to multibyte.
12184 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
12185 non-emacs case.
12186 (PATFETCH): Convert an eight-bit char to multibyte.
12187 (HANDLE_UNIBYTE_RANGE): New macro.
12188 (regex_compile): Setup the compiled pattern for multibyte chars
12189 even if the given regex string is unibyte. Use PATFETCH_RAW
12190 instead of PATFETCH in many places. To handle `charset'
12191 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
12192 only for ASCII chars.
12193 (analyse_first) <exactn>: Simplify because the compiled pattern
12194 is multibyte.
12195 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
12196 <charset>: Use CHAR_LEADING_CODE to get leading codes.
12197 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
12198 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
12199 multibyte always 1.
12200 (re_search_2): In emacs, set the locale variable multibyte to 1,
12201 otherwise to 0. New local variable target_multibyte. Check it
12202 to decide the multibyteness of STR1 and STR2. If
12203 target_multibyte is zero, convert unibyte chars to multibyte
12204 before translating and checking fastmap.
12205 (TARGET_CHAR_AND_LENGTH): New macro.
12206 (re_match_2_internal): In emacs, set the locale variable multibyte
12207 to 1, otherwise to 0. New local variable target_multibyte. Check
12208 it to decide the multibyteness of STR1 and STR2. Use
12209 TARGET_CHAR_AND_LENGTH to fetch a character from D.
12210 <charset, charset_not>: If multibyte is nonzero, check fastmap
12211 only for ASCII chars. Call bcmp_translate with
12212 target_multibyte, not with multibyte.
12213 <begline>: Declare the local variable C as `unsigned'.
12214 (bcmp_translate): Change the last arg name to target_multibyte.
12215
12216 * search.c (compile_pattern_1): Don't adjust the multibyteness of
12217 the regexp pattern and the matching target. Set cp->buf.multibyte
12218 to the multibyteness of the regexp pattern. Set
12219 cp->but.target_multibyte to the multibyteness of the matching target.
12220 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
12221 FETCH_STRING_CHAR_ADVANCE.
12222 (Freplace_match): Convert unibyte chars to multibyte.
12223
12224 * syntax.c (char_quoted, back_comment, scan_words)
12225 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
12226 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
12227 unibyte chars to multibyte.
12228 (skip_chars): Delete the arg syntaxp, and move the code for
12229 handling syntaxes to skip_syntaxes. Change callers.
12230 Fix the case that the multibyteness of STRING and the current
12231 buffer doesn't match.
12232 (skip_syntaxes): New function.
12233 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
12234 SINGLE_BYTE_CHAR_P.
12235
122362008-02-01 Kenichi Handa <handa@m17n.org>
12237
12238 * xfaces.c (QCfontset): New variable.
12239 (LFACE_FONTSET): New macro.
12240 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
12241 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
12242 (Finternal_set_lisp_face_attribute)
12243 (Finternal_get_lisp_face_attribute): Handle QCfontset.
12244 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
12245 check also LFACE_FONTSET_INDEX.
12246 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
12247 attrs[LFACE_FONT_INDEX].
12248 (syms_of_xfaces): Intern and staticpro QCfontset.
12249
12250 * dispextern.h (enum lface_attribute_index): New member
12251 LFACE_FONTSET_INDEX.
12252
12253 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
12254
122552008-02-01 Kenichi Handa <handa@m17n.org>
12256
12257 * coding.c (coding_set_destination): Fix coding->destination for
12258 the case converting a region.
12259 (encode_coding_utf_8): Encode eight-bit chars as single byte.
12260 (encode_coding_object): Fix coding->dst_pos and
12261 coding->dst_pos_byte for the case converting a region.
12262
12263 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
12264
12265 * character.h (BYTE8_STRING): New macro.
12266
12267 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
12268
122692008-02-01 Kenichi Handa <handa@m17n.org>
12270
12271 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
12272 characters by octal form.
12273
12274 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12275
12276 * buffer.h (_fetch_multibyte_char_len): Delete extern.
12277 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
12278 _fetch_multibyte_char_len.
12279 (FETCH_CHAR_AS_MULTIBYTE): New macro.
12280
12281 * casetab.c (set_canon, set_identity, shuffle): Simplify.
12282
12283 * casefiddle.c (casify_object): Simplify. Handle the case that
12284 the case conversion change the byte length.
12285 (casify_region): Likewise.
12286
12287 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
12288
12289 * character.c (_fetch_multibyte_char_len): Delete this variable.
12290 (syms_of_character): Setup Vprintable_chars.
12291
12292 * editfns.c (Fchar_equal): Fix for the unibyte case.
12293 (Finsert_byte): New function.
12294 (syms_of_editfns): Defsubr it.
12295
12296 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
12297 of direct code 0x3ffff.
12298
12299 * search.c (Freplace_match): Fix for the unibyte case.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * lread.c (safe_to_load_p): Fix the logic.
12304
12305 * syntax.c (scan_words): Don't treat characters belonging to
12306 different scripts as constituting a word.
12307
12308 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12309
12310 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
12311
12312 * emacs.c (main): In the case of --unibyte, instead of aborting on
12313 finding non-empty buffer, make it unibyte.
12314
123152008-02-01 Kenichi Handa <handa@m17n.org>
12316
12317 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
12318 to create a fontset.
12319
123202008-02-01 Dave Love <fx@gnu.org>
12321
12322 * character.c (Funibyte_char_to_multibyte): Doc fix.
12323
12324 * xfns.c [HAVE_STDLIB_H]: Fix last change.
12325
123262008-02-01 Kenichi Handa <handa@m17n.org>
12327
12328 * fontset.c (fontset_add): Make the type `int'.
12329 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
12330
12331 * character.c (unibyte_char_to_multibyte)
12332 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
12333 charset_unibyte, not charset_primary.
12334
12335 * charset.h (charset_unibyte): Extern it instead of charset_primary.
12336
12337 * charset.c (charset_unibyte): Rename from charset_primary.
12338 (Funibyte_charset): Rename from Fprimary_charset.
12339 (Fset_unibyte_charset): Rename from Fset_primary_charset.
12340 (syms_of_charset): Adjust for the above changes.
12341
12342 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12343 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12344 it->multibyte_p is zero.
12345
12346 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
12347 Delete extern.
12348
123492008-02-01 Kenichi Handa <handa@m17n.org>
12350
12351 * coding.c (Fdefine_coding_system_internal): Fix category setting
12352 for a coding system of type iso-2022.
12353
123542008-02-01 Kenichi Handa <handa@m17n.org>
12355
12356 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
12357
123582008-02-01 Kenichi Handa <handa@m17n.org>
12359
12360 * syntax.c (Vnext_word_boundary_function_table): New variable.
12361 (next-word-boundary-function-table): Declare it as a Lisp variable
12362 in syms_of_syntax.
12363 (scan_words): Call functions in Vnext_word_boundary_function_table
12364 if any.
12365
12366 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
12367
12368 * fontset.c (fs_load_font): If fontp->charset is not negative,
12369 return fontp without setting its members.
12370
123712008-02-01 Dave Love <fx@gnu.org>
12372
12373 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
12374
12375 * m/sparc.h (HAVE_ALLOCA): Delete.
12376
12377 * s/irix6-5.h: Don't include strings.h.
12378 (bcopy, bzero, bcmp): Don't undef.
12379
12380 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
12381
12382 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
12383 (TIOCSIGSEND): Don't test IRIX6.
12384 (bcopy, bzero, bcmp): Define conditionally.
12385
123862008-02-01 Kenichi Handa <handa@m17n.org>
12387
12388 * buffer.c (Qas, Qmake, Qto): New variables.
12389 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
12390 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
12391
12392 * callproc.c (Fcall_process): Don't call insert_1_both directly if
12393 we are inserting a process output into a multibyte buffer.
12394
12395 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
12396 multibyte_char_to_unibyte.
12397
12398 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
12399 by the primary charset, make it eight-bit char.
12400 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
12401
12402 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
12403 (charset_8_bit__control, charset_8_bit_graphic)
12404 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
12405 (define_charset_internal): New function.
12406 (syms_of_charset): Call define_charset_internal for pre-defined
12407 charsets.
12408
12409 * charset.h (charset_8_bit): Extern it.
12410
12411 * coding.c (make_conversion_work_buffer): Adjust for the change
12412 of Fset_buffer_multibyte.
12413 (encode_coding_raw_text): Increment p0 in the loop.
12414
12415 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
12416
12417 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
12418 for the change of Fset_buffer_multibyte.
12419
12420 * fns.c (Fstring_to_multibyte): New function.
12421 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
12422
124232008-02-01 Dave Love <fx@gnu.org>
12424
12425 * xfns.c (x_put_x_image): Declare args.
12426
12427 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
12428 (try_font_list): Declare an arg.
12429
12430 * xdisp.c (message2_nolog, set_message): Declare an arg.
12431
12432 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
12433
12434 * syntax.c (scan_sexps_forward): Declare an arg.
12435
12436 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12437 Declare an arg.
12438
12439 * lisp.h (Fnew_fontset): Declare.
12440
12441 * keymap.c (push_key_description): Call CHARACTERP correctly.
12442
12443 * fontset.c (fontset_add): Declare args. Call make_number correctly.
12444 (face_for_char): Delete unused vars.
12445 (Fset_fontset_font): Doc fix. Delete unused vars.
12446
12447 * doc.c (Fsubstitute_command_keys): Delete unused vars.
12448
12449 * composite.c (update_compositions): Declare arg.
12450
12451 * cm.c (calccost, cmgoto): Declare args.
12452
12453 * charset.c: Remove `emacs' conditional. Doc fixes.
12454 (map_char_table_for_charset): Declare.
12455
12456 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
12457
12458 * ccl.c: Remove `emacs' conditional.
12459
124602008-02-01 Kenichi Handa <handa@m17n.org>
12461
12462 The following changes are to allow specifying multiple font
12463 patterns for a character range (specified by script or charset).
12464
12465 * Makefile.in (abbrev.o): Depend on syntax.h.
12466 (xfaces.o): Depend on charset.h.
12467
12468 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
12469 SINGLE_BYTE_CHAR_P.
12470
12471 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
12472
12473 * character.h (Vchar_script_table): Extern it.
12474
12475 * character.c (Vscript_alist): Delete.
12476 (Vchar_script_table, Qchar_script_table): New variable.
12477 (syms_of_character): Declare Vchar_script_table as a lisp variable
12478 and initialize it.
12479
12480 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
12481 have property char-table-extra-slots, make no extra slot.
12482
12483 * dispextern.h (struct face): Delete member `charset'.
12484 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
12485 SINGLE_BYTE_CHAR_P.
12486 (choose_face_font, lookup_non_ascii_face, font_name_registry):
12487 Add prototypes.
12488 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
12489 (generate_ascii_font_name): Rename from generate_ascii_font.
12490
12491 * fontset.h (get_font_repertory_func): New prototype.
12492 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
12493 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
12494
12495 * fontset.c (Qprepend, Qappend): New variables.
12496 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
12497 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
12498 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
12499 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
12500 (fontset_ref_and_range, fontset_add, reorder_font_vector)
12501 (load_font_get_repertory): New functions.
12502 (fontset_set): Delete.
12503 (fontset_face): New arg FACE. Return face ID, not face.
12504 Complete re-write to handle new fontset structure. Change caller.
12505 (free_face_fontset): Use ASET istead of AREF (X) = Y.
12506 (face_for_char): Don't call lookup_face.
12507 (make_fontset_for_ascii_face): New arg FACE.
12508 (fs_load_font): New arg CHARSET_ID. Don't check
12509 Vfont_encoding_alist here.
12510 (find_font_encoding): New function.
12511 (list_fontsets): Use STRINGP, not ! NILP.
12512 (accumulate_script_ranges): New function.
12513 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
12514 re-written to handle new fontset structure.
12515 (Ffontset_font): Return a copy of element.
12516 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
12517 docstring of font-encoding-alist.
12518
12519 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
12520 (Fset_fotset_font): Fix arguments to 5.
12521
12522 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
12523
12524 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
12525 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12526 (highlight_trailing_whitespace): Adjust for the change of
12527 lookup_named_face.
12528
12529 * xfaces.c: Include charset.h.
12530 (load_face_font): Delete argument C. Change caller.
12531 (generate_ascii_font_name): Rename from generate_ascii_font.
12532 (font_name_registry): New function.
12533 (cache_face): Store ascii faces before non-ascii faces in buckets.
12534 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
12535 Lookup only ascii faces.
12536 (lookup_non_ascii_face): New function.
12537 (lookup_named_face): Delete argument C. Change caller.
12538 (lookup_derived_face): Delete argument C. Change caller.
12539 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
12540 a string, just call font_list with it.
12541 (choose_face_font): Delete arguments FACE and C. New arg
12542 FONT_SPEC. Change caller.
12543 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
12544 Change caller.
12545 (realize_non_ascii_face): New function.
12546 (realize_x_face): Call load_face_font here.
12547 (realize_tty_face): Delete argument C. Change caller.
12548 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
12549 get a face ID.
12550 (dump_realized_face): Don't print charset of FACE.
12551
12552 * xfns.c (x_set_font): Always call x_new_fontset and
12553 store_frame_parameter.
12554 (Fx_create_frame): Call x_new_fontset, not x_new_font.
12555 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
12556
12557 * xterm.h (x_get_font_repertory): Extern it.
12558
12559 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12560 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12561 it->multibyte_p is zero.
12562 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12563 (x_new_fontset): If FONTSETNAME doesn't match any existing
12564 fontsets, create a new one.
12565 (x_get_font_repertory): New function.
12566
125672008-02-01 Kenichi Handa <handa@m17n.org>
12568
12569 * coding.c (Ffind_coding_systems_region_internal): Detect an
12570 ASCII only string correctly.
12571
12572 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
12573 version is 0.
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * lread.c: Include "coding.h".
12578 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
12579 (load_each_byte, unread_char): New variables.
12580 (readchar_backlog): Delete.
12581 (readchar): Return a character unless load_each_byte is nonzero.
12582 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
12583 cons. If unread_char is not -1, simply return it.
12584 (unreadchar): Handle the case that readcharfun is
12585 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
12586 (read_multibyte): Delete.
12587 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
12588 (read_emacs_mule_char): New functions.
12589 (Fload): Even if the file doesn't have the extension ".elc", if
12590 safe_to_load_p returns a positive version number, assume that the
12591 file contains bytecompiled code. If the version is less than 22,
12592 load the file while decoding multibyte sequences by emacs-mule.
12593 (readevalloop): Don't use readchar_backlog.
12594 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
12595 (Fread_from_string): Pay attention to the case that STREAM is a cons.
12596 (read_escape): Delete the arg BYTEREP.
12597 (read1): Set load_each_byte to 1 temporarily while handling
12598 #@NUMBER. Don't call read_multibyte.
12599 (read_vector): Call Fread with a cons. If readcharfun is
12600 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
12601 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
12602 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
12603 and Qload_force_doc_strings.
12604
126052008-02-01 Kenichi Handa <handa@m17n.org>
12606
12607 * xdisp.c (face_before_or_after_it_pos): Call
12608 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12609
126102008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * character.h (TRAILING_CODE_P): New macro.
12613 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
12614 (string_char_with_unification): Fix prototype.
12615 (Vscript_alist): Extern it.
12616
12617 * character.c (Vscript_alist): New variable.
12618 (string_char_with_unification, str_as_unibyte)
12619 (string_escape_byte8): Add `const' to local variables.
12620 (syms_of_character): Declare script-alist as a Lisp variable.
12621
12622 * charset.h (Vcharset_ordered_list): Extern it.
12623 (charset_ordered_list_tick): Extern it.
12624 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
12625 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
12626 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
12627 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
12628 (Funify_charset): Adjust for the change of Funify_charset.
12629
12630 * charset.c (charset_ordered_list_tick): New variable.
12631 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
12632 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
12633 deunify intead of unify a charset.
12634 (string_xstring_p): Add `const' to local variables.
12635 (find_charsets_in_text): Add `const' to arguments and local variables.
12636 (encode_char): Adjust for the change of Funify_charset. Fix
12637 detecting of invalid code.
12638 (Fset_charset_priority): Increment charset_ordered_list_tick.
12639 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
12640 and TO_CODE.
12641
12642 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
12643 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
12644 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
12645 (decode_coding_ccl, consume_chars)
12646 (Ffind_coding_systems_region_internal)
12647 (Fcheck_coding_systems_region): Add `const' to local variables.
12648
12649 * print.c (print_object): Use octal form for printing the
12650 contents of a bool vector.
12651
126522008-02-01 Dave Love <fx@gnu.org>
12653
12654 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
12655 <version == 20>: Refuse to load.
12656
126572008-02-01 Dave Love <fx@gnu.org>
12658
12659 * fns.c: Move coding.h.
12660 (Qcodeset, Qdays, Qmonths): New.
12661 (concat): Use CHARACTERP instead of INTEGERP.
12662 (Flocale_codeset): Delete.
12663 (Flanginfo): New function.
12664 (syms_of_fns): Change accordingly.
12665
12666 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
12667
126682008-02-01 Dave Love <fx@gnu.org>
12669
12670 * casetab.c (init_casetab_once, init_casetab_once): Fix
12671 CHAR_TABLE_SET call.
12672
12673 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
12674
12675 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
12676
12677 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
12678 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
12679 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
12680
12681 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
12682
12683 * coding.c (ENCODE_DESIGNATION, decode_eol)
12684 (make_conversion_work_buffer, code_conversion_restore)
12685 (Fdefine_coding_system_internal): Convert Lisp types.
12686 (code_conversion_restore): Use EQ, not ==.
12687 (Fencode_coding_string): Fix code_convert_string call.
12688
12689 * coding.h (code_convert_region): Fix prototype.
12690
12691 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
12692
12693 * fontset.c (fontset_ref, fontset_set, fs_load_font)
12694 (Ffontset_info): Convert Lisp types.
12695
12696 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
12697
12698 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
12699
12700 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
12701
12702 * chartab.c: Include "...h", not <...h> in some cases.
12703
12704 * callproc.c (Fcall_process): Remove unused variables.
12705
127062008-02-01 Dave Love <fx@gnu.org>
12707
12708 * coding.c (Fset_coding_system_priority): Allow null arg list.
12709
127102008-02-01 Dave Love <fx@gnu.org>
12711
12712 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12713 (Fself_insert_and_exit): Use CHARACTERP.
12714
12715 * callproc.c (Fcall_process): Remove unused vars.
12716
12717 * xterm.c (XTread_socket): Add extra dead keysyms.
12718
12719 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
12720
12721 * dispextern.h: Remove prototypes for redraw_frame,
12722 redraw_garbaged_frames.
12723
12724 * cmds.c (Fself_insert_command): Use CHARACTERP.
12725
12726 * chartab.c (make_sub_char_table): Remove unused var.
12727 (Fset_char_table_default, Fmap_char_table): Doc fix.
12728
12729 * keymap.c (access_keymap): Remove generic char code.
12730 (push_key_description): Use CHARACTERP.
12731
127322008-02-01 Dave Love <fx@gnu.org>
12733
12734 * charset.c: Doc fixes.
12735 (Funify_charset): Extra checking.
12736
127372008-02-01 Dave Love <fx@gnu.org>
12738
12739 * lread.c: Remove some unused variables.
12740 (safe_to_load_p): If safe, return the magic number version byte.
12741 (Fload): Maybe use load-with-code-conversion.
12742
127432008-02-01 Kenichi Handa <handa@m17n.org>
12744
12745 * category.c (Fmodify_category_entry): Don't modify the contents
12746 of category_set for characters out of the range. Avoid
12747 unnecessary modification.
12748
12749 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
12750 Vchar_unify_table. The default value of the table is now nil.
12751
12752 * character.c (syms_of_character): Setup Vchar_width_table for
12753 eight-bit-control and raw-byte chars.
12754
12755 * charset.h (enum define_charset_arg_index): Delete
12756 charset_arg_parents and add charset_arg_subset and
12757 charset_arg_superset.
12758 (enum charset_attr_index): Delete charset_parents and add
12759 charset_subset and charset_superset.
12760 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
12761 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
12762 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
12763 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
12764 (CHARSET_SUPERSET): New macros.
12765 (charset_work): Extern it.
12766 (ENCODE_CHAR): Use charset_work.
12767 (CHAR_CHARSET_P): Adjust for the change of encoder format.
12768 (map_charset_chars): Extern it.
12769
12770 * charset.c (load_charset_map): Set the default value of encoder
12771 and deunifier char-tables to nil.
12772 (map_charset_chars): Change argument. Change callers. Use
12773 map_char_table_for_charset instead of map_char_table.
12774 (Fmap_charset_chars): New optional args from_code and to_code.
12775 (Fdefine_charset_internal): Adjust for the change of
12776 `define-charset' (:parents -> :subset or :superset).
12777 (charset_work): New variable.
12778 (encode_char, syms_of_charset): Adjust for the change of
12779 Fdefine_charset_internal.
12780 (Ffind_charset_string): Setup the vector `charsets' correctly.
12781
12782 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
12783 the previous change.
12784 (char_table_ref_and_range): Adjust for the above change.
12785 (map_sub_char_table_for_charset): New function.
12786 (map_char_table_for_charset): New function.
12787
12788 * keymap.c (describe_vector): Handle a char-table directly here.
12789 (describe_char_table): Delete.
12790
12791 * lisp.h (map_charset_chars): Delete.
12792
127932008-02-01 Dave Love <fx@gnu.org>
12794
12795 * fns.c (count_combining): Comment out (unused).
12796 (Flocale_codeset): New.
12797 (syms_of_fns): Defsubr it.
12798
12799 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
12800 (size_t): Remove.
12801
128022008-02-01 Dave Love <fx@gnu.org>
12803
12804 * Makefile.in (chartab.o): Depend on charset.h.
12805
128062008-02-01 Kenichi Handa <handa@m17n.org>
12807
12808 * character.c (syms_of_character): Set the default value of
12809 Vprintable_chars to Qnil.
12810
128112008-02-01 Dave Love <fx@gnu.org>
12812
12813 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
12814
128152008-02-01 Kenichi Handa <handa@m17n.org>
12816
12817 * charset.c (load_charset_map): Handle the case that from < to
12818 correctly.
12819
12820 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
12821 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
12822 Pay attention to raw-8-bit chars.
12823
128242008-02-01 Kenichi Handa <handa@m17n.org>
12825
12826 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
12827 It is not bytecompiled now.
12828
12829 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
12830 (charset_jisx0208): New variables.
12831 (Fdefine_charset_internal): Setup them if appropriate.
12832 (init_charset_once): Initialize them to -1.
12833
12834 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
12835 (charset_jisx0208): Extern them.
12836
12837 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
12838 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
12839 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
12840 (setup_iso_safe_charsets): Fix arguments to Fassq.
12841 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
12842 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
12843 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
12844 (encode_coding_iso_2022): Change the 1st arg to
12845 ENCODE_ISO_CHARACTER to a variable.
12846
128472008-02-01 Kenichi Handa <handa@m17n.org>
12848
12849 * charset.h (enum define_charset_arg_index): New enums
12850 charset_arg_min_code and charset_arg_max_code.
12851 (struct charset): New member char_index_offset.
12852
12853 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
12854 Take charset->char_index_offset into account.
12855 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
12856 args[charset_arg_max_code]. Setup charset.char_index_offset.
12857 (syms_of_charset): Fix args to Fdefine_charset_internal.
12858
128592008-02-01 Dave Love <fx@gnu.org>
12860
12861 * coding.c (decode_coding_utf_8): Reject overlong sequences.
12862
128632008-02-01 Dave Love <fx@gnu.org>
12864
12865 * coding.c: Doc fixes.
12866 (Fcoding_system_aliases): Fix return value.
12867 (Qmac): Remove (duplicated) definition.
12868
128692008-02-01 Dave Love <fx@gnu.org>
12870
12871 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
12872 functions.
12873
12874 * character.c (Fstring): Doc fix.
12875
12876 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
12877
12878 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
12879 ids.
12880 (font-encoding-alist): Doc fix.
12881
128822008-02-01 Dave Love <fx@gnu.org>
12883
12884 * term.c (costs_set): Declare static, non-initialized for pcc.
12885 (encode_terminal_code): Remove unused var.
12886
12887 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12888 for K&R.
12889
12890 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
12891
12892 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
12893 (suffixes): Move out of make_subsidiaries for K&R.
12894
12895 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
12896
12897 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
12898
128992008-02-01 Dave Love <fx@gnu.org>
12900
12901 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
12902
12903 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
12904
129052008-02-01 Yong Lu <lyongu@asia-infonet.com>
12906
12907 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
12908
12909 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
12910
129112008-02-01 Kenichi Handa <handa@m17n.org>
12912
12913 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
12914 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
12915
129162008-02-01 Kenichi Handa <handa@m17n.org>
12917
12918 * coding.c (decode_coding_charset): Adjust for the change of
12919 Fdefine_coding_system_internal.
12920 (Fdefine_coding_system_internal): For a coding system of
12921 `charset' type, store a list of charset IDs in
12922 `charset_attr_charset_valids' element of coding attributes.
12923
129242008-02-01 Kenichi Handa <handa@m17n.org>
12925
12926 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
12927 (emacs_mule_char): New arg src. Delete arg `composition'. Change
12928 caller. Handle 2-byte and 3-byte charsets correctly.
12929 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
12930 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
12931 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
12932 (DECODE_EMACS_MULE_21_COMPOSITION): Call
12933 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
12934 sequence.
12935 (decode_coding_emacs_mule): Handle composition correctly. Rewind
12936 `src' and `consumed_chars' correctly before calling emacs_mule_char.
12937 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
12938 and alt&rule composition.
12939 (decode_coding_iso_2022): Handle composition correctly.
12940 (init_coding_once): Setup emacs_mule_bytes for private charsets.
12941
12942 * charset.c (Fdefine_charset_internal): Fix bug for the case of
12943 re-defining a charset. If the charset has :emacs-mule-id, setup
12944 emacs_mule_bytes.
12945 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
12946
129472008-02-01 Kenichi Handa <handa@m17n.org>
12948
12949 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
12950 (encode_coding_big5, encode_coding_charset): If coding requires safe
12951 encoding, produce a character specified by
12952 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12953
129542008-02-01 Dave Love <fx@gnu.org>
12955
12956 * xterm.c (XSetIMValues): Declare.
12957
12958 * process.c: Conditionally include sys/wait.h, pty.h.
12959
12960 * print.c (print_object): Fix print format for 64-bit systems.
12961
12962 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
12963
12964 * buffer.c (emacs_strerror): Declare.
12965
12966 * fontset.c (Fclear_face_cache): Declare.
12967 (accumulate_font_info): Comment-out (unused).
12968 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
12969 variables.
12970
12971 * character.h (string_escape_byte8): Declare.
12972
12973 * charset.c (load_charset_map, load_charset_map_from_file): Remove
12974 unused vars.
12975 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
12976 (Fmap_charset_chars): Doc fix.
12977
12978 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
12979 (Fset_coding_system_priority, Fset_coding_system_priority)
12980 (Fdefine_coding_system_internal): Doc fix.
12981
129822008-02-01 Dave Love <fx@gnu.org>
12983
12984 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
12985
129862008-02-01 Kenichi Handa <handa@m17n.org>
12987
12988 * character.c (string_escape_byte8): Make multibyte string with
12989 correct size.
12990
12991 * charset.c (Fmake_char): Delete unnecessary code.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * xfns.c (x_encode_text): Allocate coding.destination here, and
12996 call encode_coding_object with dst_object Qnil.
12997
12998 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
12999 multibyte form correctly.
13000
13001 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13002 against Vfont_encoding_alist.
13003
13004 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13005 handling of charset list.
13006 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13007 (decode_coding_object): Move point to coding->dst_pos before
13008 calling post-read-conversion function.
13009 (encode_coding_object): Give correct arguments to
13010 pre-write-conversion. Ignore the return value of
13011 pre-write-conversion function. Pay attention to the case that
13012 pre-write-conversion changes the current buffer. If dst_object is
13013 Qt, even if coding->src_bytes is zero, allocate at least one byte
13014 to coding->destination.
13015
13016 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13017
13018 * charset.c (Fmake_char): Make it more backward compatible.
13019 (Fmap_charset_chars): Fix docstring.
13020
130212008-02-01 Dave Love <fx@gnu.org>
13022
13023 * coding.c: Doc fixes.
13024 (Fdefine_coding_system_alias): Use names, not symbols, in
13025 coding-system-alist.
13026
130272008-02-01 Kenichi Handa <handa@m17n.org>
13028
13029 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13030 of calling free_realized_face.
13031
130322008-02-01 Yong Lu <lyongu@asia-infonet.com>
13033
13034 * charset.c (read_hex): Don't treat SPC as a comment starter.
13035 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13036 (Fdecode_char): Fix typo.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * charset.h (struct charset): New member `code_space_mask'.
13041
13042 * coding.c (coding_set_source): Delete the local variable beg_byte.
13043 (encode_coding_charset, Fdefine_coding_system_internal):
13044 Delete the local variable charset.
13045 (Fdefine_coding_system_internal): Setup
13046 attrs[coding_attr_charset_valids] correctly.
13047
13048 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13049 member to check if CODE is valid or not.
13050 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13051 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13052 is within the range of charset->min_code and carset->max_code.
13053
130542008-02-01 Dave Love <fx@gnu.org>
13055
13056 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13057
13058 * dispextern.h (generate_ascii_font): Fix return type.
13059
13060 * xfaces.c (generate_ascii_font): Fix arg declaration.
13061
13062 * coding.c (coding_inherit_eol_type)
13063 (Fset_terminal_coding_system_internal)
13064 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13065
130662008-02-01 Kenichi Handa <handa@m17n.org>
13067
13068 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13069 multiple charsets correctly.
13070
130712008-02-01 Kenichi Handa <handa@m17n.org>
13072
13073 * search.c (boyer_moore): Fix handling of multibyte character
13074 translation.
13075
13076 * xdisp.c (display_mode_element): When the variable `elt' is
13077 changed, update `this' and `lisp_string'.
13078
130792008-02-01 Kenichi Handa <handa@m17n.org>
13080
13081 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13082
13083 * callproc.c (Fcall_process): Be sure to give the current buffer
13084 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13085
13086 * charset.c (struct charset_map_entries): New struct.
13087 (load_charset_map): Rename from parse_charset_map. New args
13088 entries and n_entries. Change caller.
13089 (load_charset_map_from_file): Rename from load_charset_map.
13090 Change caller. New arg control_flag. Call load_charset_map at
13091 the tail.
13092 (load_charset_map_from_vector): New function.
13093 (Fdefine_charset_internal): Setup charset.compact_codes_p.
13094 (encode_char): If the charset is compact, change a character index
13095 to a code point.
13096
13097 * coding.c (coding_alloc_by_making_gap): Check the case that the
13098 source and destination are the same correctly.
13099 (decode_coding_raw_text): Set coding->consumed_char and
13100 coding->consumed to 0.
13101 (produce_chars): If coding->chars_at_source is nonzero, update
13102 coding->consumed_char and coding->consumed before calling
13103 alloc_destination.
13104 (Fdefine_coding_system_alias): Register ALIAS in
13105 Vcoding_system_alist.
13106 (syms_of_coding): Define `no-conversion' coding system at the tail.
13107
13108 * fileio.c (Finsert_file_contents): Set coding_system instead of
13109 val. If the current buffer is multibyte, always call
13110 decode_coding_gap.
13111
13112 * xfaces.c (try_font_list): Give higher priority to fontset's
13113 family than face's family.
13114
131152008-02-01 Kenichi Handa <handa@m17n.org>
13116
13117 * callproc.c (Fcall_process): Be sure to give the current buffer
13118 to decode_coding_c_string.
13119
13120 * xfaces.c (try_font_list): Give a family specified in a fontset
13121 higher priority than a family specified in a face.
13122
131232008-02-01 Kenichi Handa <handa@m17n.org>
13124
13125 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
13126 Fix arguments to insert_from_buffer.
13127
13128 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
13129
131302008-02-01 Kenichi Handa <handa@m17n.org>
13131
13132 * coding.c (produce_chars): Set the variable `multibytep' correctly.
13133 (decode_coding_gap): Set coding->dst_multibyte correctly.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
13138 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
13139 (encode_coding_utf_16): Substitute coding->default_char for
13140 non-Unicode characters.
13141 (decode_coding): Don't call record_insert here.
13142 (setup_coding_system): Initialize `surrogate' of
13143 coding->spec.utf_16 to 0.
13144 (EMIT_ONE_BYTE): Fix for multibyte case.
13145
13146 * insdel.c (insert_from_gap): Call record_insert.
13147
131482008-02-01 Kenichi Handa <handa@m17n.org>
13149
13150 * casefiddle.c (casify_region): Fix multibyte case.
13151
13152 * character.c (c_string_width): Add return type `int'.
13153 (char_string_with_unification): Delete arg ADVANCED.
13154
13155 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
13156 (CHAR_STRING): Adjust for the change of char_string_with_unification.
13157 (CHAR_STRING_ADVANCE): Make it do-while statement.
13158
13159 * chartab.c (sub_char_table_set_range): Optimize for the case
13160 DEPTH == 3. Add workaround code for a GCC optimization bug.
13161
13162 * charset.c (parse_charset_map): Remove an unused variable.
13163
13164 * coding.c: Delete unused variables.
13165
13166 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
13167 earlier. If inserted is zero and the coding system doesn't
13168 require flushing, don't call decode_coding_gap.
13169
13170 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
13171
131722008-02-01 Kenichi Handa <handa@m17n.org>
13173
13174 The following changes are for using Unicode as an internal
13175 character model, and use UTF-8 format for buffer/string
13176 representation.
13177
13178 * .gdbinit (xchartable): Adjust for the change of char table structure.
13179 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
13180
13181 * Makefile.in (obj): Add character.o and chartab.o.
13182 (lisp, shortlisp): Remove utf-8.elc.
13183 (*.o): For many files, change dependency on charset.h to
13184 character.h, and add dependency on character.h.
13185 (character.o, chartab.o): New targets.
13186
13187 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
13188 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
13189 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
13190 of "charset.h".
13191
13192 * dired.c, filelock.c: Include "character.h".
13193
13194 * alloc.c: Include "character.h" instead of "charset.h".
13195 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
13196 (syms_of_alloc): Remove defsubr for Smake_char_table.
13197
13198 * buffer.c: Include "character.h" instead of "charset.h", don't
13199 include "coding.h".
13200 (Fset_buffer_multibyte): Adjust for UTF-8.
13201
13202 * buffer.h: EXFUN Fbuffer_live_p.
13203
13204 * callproc.c: Include "character.h" instead of "charset.h".
13205 (Fcall_process): Big change for the new code-conversion APIs.
13206
13207 * casetab.c: Include "character.h" instead of "charset.h".
13208 (set_canon, set_identity, shuffle): Adjust for the new
13209 map_char_table spec.
13210 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
13211 accessing the char table structure.
13212
13213 * chartab.c: New file that implements char table.
13214
13215 * category.c: Include "character.h".
13216 (copy_category_entry): New function.
13217 (copy_category_table): Call map_char_table and copy_category_entry.
13218 (Fmake_category_table): Initialize all top-level slots.
13219 (char_category_set): New function.
13220 (modify_lower_category_set): Delete.
13221 (Fmodify_category_entry): Call char_table_ref_and_range.
13222
13223 * category.h (CATEGORY_SET): Just call char_category_set.
13224
13225 * ccl.c: Include "character.h".
13226 (Qccl, Qcclp): New variables.
13227 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
13228 it's less than 256.
13229 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
13230 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
13231 and DST type.
13232 (ccl_driver): Change types of argument, adjust code accordingly.
13233 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
13234 ccl_driver.
13235 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
13236
13237 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
13238 New members src_multibyte, dst_multibyte, consumed, and produced.
13239 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
13240 (CODING_SPEC_CCL_PROGRAM): New macro.
13241 (ccl_driver): Update prototype.
13242 (Qccl, Qcclp, Fccl_program_p): Extern them.
13243 (CHECK_CCL_PROGRAM): New macro.
13244
13245 * character.c, character.h, chartab.c: New files.
13246
13247 * charset.c: Mostly re-written. Move character and multibyte sequence
13248 handling codes to character.c.
13249
13250 * charset.h: Mostly re-written. Move character and multibyte sequence
13251 handling codes to character.h.
13252
13253 * coding.c, coding.h: Mostly re-written.
13254
13255 * composite.c: Include "character.h" instead of "charset.h".
13256 (CHAR_WIDTH): Move to character.h.
13257 (HASH_KEY, HASH_VALUE): Delete.
13258
13259 * composite.h (enum composition_method): Change order of enumeration
13260 symbols.
13261
13262 * data.c: Include "character.h" instead of "charset.h".
13263 (Faref): Call CHAR_TABLE_REF for a char table.
13264 (Faset): Call CHAR_TABLE_SET for a char table.
13265
13266 * dispextern.h (free_realized_face, check_face_attribytes)
13267 (generate_ascii_font): Extern them.
13268 (free_realized_multibyte_face): Delete extern.
13269
13270 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
13271 table structure.
13272
13273 * editfns.c: Include "character.h" instead of "charset.h".
13274 (Fchar_to_string): Always call CHAR_STRING.
13275
13276 * emacs.c (main): Call init_charset_once, init_charset,
13277 syms_of_chartab, and syms_of_character.
13278
13279 * fileio.c: Include "character.h" instead of "charset.h".
13280 (Finsert_file_contents): Big change for the new code-conversion API.
13281 (choose_write_coding_system, Fwrite_region): Likewise.
13282 (build_annotations_2): Delete.
13283 (e_write): Big change for the new code-conversion API.
13284
13285 * fns.c: Include "character.h" instead of "charset.h".
13286 (copy_sub_char_table): Move to chartab.c.
13287 (Fcopy_sequence): Call copy_char_table for a char table.
13288 (concat): Delete codes calling count_multibyte.
13289 (string_char_to_byte, string_byte_to_char): Adjust for the new
13290 multibyte form.
13291 (internal_equal): Adjust for the change of char table structure.
13292 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
13293 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
13294 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
13295 (char_table_translate, optimize_sub_char_table)
13296 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
13297 chartab.c.
13298 (char_table_ref_and_index): Delete.
13299 (HASH_KEY, HASH_VALUE): Move to lisp.h.
13300 (Fmd5): Call preferred_coding_system instead of accessing
13301 Vcoding_category_list. Adjust for the new code-conversion API.
13302 (syms_of_fns): Move defsubr for char table related functions to
13303 chartab.c.
13304
13305 * fontset.c: Mostly re-written.
13306
13307 * fontset.h (struct font_info): Change type of the member encoding_type.
13308 (enum FONT_SPEC_INDEX): New enum.
13309 (fontset_font_pattern, fs_load_font): Update prototype.
13310 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
13311
13312 * indent.c: Include "character.h" instead of "charset.h".
13313 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
13314
13315 * insdel.c: Include "character.h" instead of "charset.h".
13316 (copy_text): Don't refer to Vnonascii_translation_table.
13317 (insert_from_gap): New function.
13318
13319 * keyboard.c: Include "character.h" instead of "charset.h".
13320 (command_loop_1): Never call direct_output_forward_char before
13321 a non-ASCII character.
13322 (read_char): If Vkeyboard_translate_table is a char table, always
13323 translate a character.
13324
13325 * keymap.c: Include "character.h".
13326 (store_in_keymap): Handle the case that IDX is a cons.
13327 (Fdefine_key): Handle the case that KEY is a cons and the car part
13328 is also a cons (range).
13329 (push_key_description): Adjust for the new character code.
13330 (describe_vector): Call describe_char_table for a char table.
13331 (describe_char_table): New function.
13332
13333 * keymap.h (describe_char_table): Extern it.
13334
13335 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
13336 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
13337 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
13338 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
13339 Delete.
13340 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
13341 structure.
13342 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
13343 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
13344 (CHARTAB_SIZE_BITS_3): New macros.
13345 (chartab_size): Extern it.
13346 (struct Lisp_Char_Table): Re-design.
13347 (struct Lisp_Sub_Char_Table): New structure.
13348 (HASH_KEY, HASH_VALUE): Move from fns.c.
13349 (CHARACTERBITS): Define as 22.
13350 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
13351 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
13352 (GC_SUB_CHAR_TABLE_P): New macro.
13353 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
13354 (code_convert_string_norecord): Deleted extern.
13355 (init_character_once, syms_of_character, init_charset)
13356 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
13357
13358 * lread.c: Include "character.h".
13359 (read_multibyte): New arg NBYTES.
13360 (read_escape): Change the meaning of returned *BYTEREP.
13361 (to_multibyte): Delete.
13362 (read1): Adjust the handling of char table and string.
13363
13364 * print.c: Include "character.h" instead of "charset.h".
13365 (print_string): Convert 8-bit raw bytes to octal form by
13366 string_escape_byte8.
13367 (print_object): Adjust for the new multibyte form. Print 8-bit
13368 raw bytes always in octal form. Handle sub char table correctly.
13369
13370 * process.c: Include "character.h" instead of "charset.h".
13371 (read_process_output, send_process): Adjust for the new
13372 code-conversion API.
13373
13374 * puresize.h (BASE_PURESIZE): Increase.
13375
13376 * regex.c: Include "character.h" instead of "charset.h".
13377 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
13378 (regex_compile): Accept a range whose starting and ending
13379 character have different leading bytes.
13380 (analyse_first): Adjust for the above change.
13381
13382 * search.c: Include "character.h" instead of "charset.h".
13383 (search_buffer, boyer_moore): Adjust for the new multibyte form.
13384 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
13385
13386 * syntax.c: Include "character.h" instead of "charset.h".
13387 (syntax_parent_lookup): Delete.
13388 (Fmodify_syntax_entry): Accept a cons as CHAR.
13389 (skip_chars): Adjust for the new multibyte form.
13390 (init_syntax_once): Call char_table_set_range instead of directly
13391 accessing the structure of a char table.
13392
13393 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
13394 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
13395 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
13396 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
13397
13398 * term.c: Include "buffer.h" and "character.h".
13399 (encode_terminal_code, write_glyphs): Adjust for the new
13400 code-conversion API.
13401 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
13402
13403 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
13404
13405 * xdisp.c: Include "character.h".
13406 (get_next_display_element): Adjust for the new multibyte form.
13407 (disp_char_vector): Adjust for the new char table structure.
13408 (decode_mode_spec_coding): Adjust for the new structure of
13409 coding system.
13410 (decode_mode_spec): Adjust for the new code-conversion API.
13411
13412 * xfaces.c: Include "character.h" instead of "charset.h".
13413 (load_face_font): Adjust for the change of choose_face_font and
13414 FS_LOAD_FONT.
13415 (generate_ascii_font): New function.
13416 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
13417 (set_font_frame_param): Adjust for the change of choose_face_font.
13418 (free_realized_face): Make it public.
13419 (free_realized_faces_for_fontset): Rename from
13420 free_realized_multibyte_face. Free also faces realized for ASCII.
13421 (choose_face_font): Change arguments. Adjust for the change of
13422 fontset_font_pattern and FS_LOAD_FONT.
13423
13424 * xfns.c: Include "character.h".
13425 (x_encode_text): Adjust for the new code-conversion API.
13426
13427 * xselect.c: Don't include "charset.h".
13428 (selection_data_to_lisp_data): Adjust for the new code conversion API.
13429
13430 * xterm.c: Include "character.h".
13431 (x_encode_char): New argument CHARSET. Change caller.
13432 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
13433 Call ENCODE_CHAR instead of SPLIT_CHAR.
13434 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
13435 CHAR_WIDTH instead of CHARSET_WIDTH.
13436 (XTread_socket): Adjust for the new code-conversion API.
13437 (x_new_font): Adjust for the change of FS_LOAD_FONT.
13438 (x_load_font): Adjust for the change of struct font.
13439
134402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13441
13442 * xfaces.c (face_at_buffer_position): Remove unused vars.
13443
134442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13445
13446 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
13447 Fix overflow checking.
13448
134492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13450
13451 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
13452 Cancel previous change.
13453
134542008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13455
13456 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
13457 ccl->eight_bit_control. Fix check for buffer overflow.
13458 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
13459 (ccl_driver): Initialize extra_bytes to 0.
13460
134612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13462
13463 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
13464 return it ORed with ctrl_modifier.
13465
134662008-01-29 Miles Bader <miles@gnu.org>
13467
13468 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
13469
134702008-01-28 Jason Rumney <jasonr@gnu.org>
13471
13472 * w32.c (stat): Don't double check for networked drive.
13473
134742008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
13475
13476 * window.c (run_window_configuration_change_hook): New function.
13477 Code extracted from set_window_buffer. Set the selected frame.
13478 (set_window_buffer): Use it.
13479 * window.h (run_window_configuration_change_hook): Declare.
13480 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
13481
13482 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
13483
134842008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
13485
13486 * Makefile.in: Remove references to unused macros.
13487
134882008-01-26 Eli Zaretskii <eliz@gnu.org>
13489
13490 * w32.c (g_b_init_get_sid_sub_authority)
13491 (g_b_init_get_sid_sub_authority_count): New static variables.
13492 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
13493 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
13494 (init_user_info): Use them to retrieve uid and gid.
13495 Use 500/513, the Windows defaults, as Administrator's uid/gid.
13496 (fstat): Use pw_uid and pw_gid from the_passwd structure for
13497 st_uid and st_gid of the file.
13498
134992008-01-26 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32.c (logon_network_drive): New function.
13502 (stat): Use it.
13503
135042008-01-26 Chong Yidong <cyd@stupidchicken.com>
13505
13506 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
13507 invisible text covered with an ellipsis.
13508
135092008-01-25 Richard Stallman <rms@gnu.org>
13510
13511 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
13512 jump back to beginning. Move some other initializations after that.
13513 (Qwindow_text_change_functions, Vwindow_text_change_functions):
13514 New variables.
13515 (syms_of_xdisp): Init them.
13516
13517 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
13518
13519 * buffer.c (reset_buffer_local_variables):
13520 Implement `permanent-local-hook'.
13521 (Qpermanent_local_hook): New variable.
13522 (syms_of_buffer): Init and staticpro it.
13523
135242008-01-25 Michael Albinus <michael.albinus@gmx.de>
13525
13526 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
13527
135282008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
13529
13530 * fns.c (Fclrhash): Return TABLE.
13531
135322008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13533
13534 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
13535 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
13536 is set even without positional changes.
13537 (x_scroll_bar_clear): Set bar->redraw_needed_p.
13538
13539 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
13540
135412008-01-23 Jason Rumney <jasonr@gnu.org>
13542
13543 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
13544
13545 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
13546 the unicode range available in MULE by locale-coding-system.
13547 Improve dbcs lead byte detection. Set event timestamp and modifiers
13548 earlier.
13549
135502008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13551
13552 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
13553 [MAC_OSX] (init_mac_osx_environment): Initialize it.
13554 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
13555 when used on child processes.
13556
135572008-01-21 Michael Albinus <michael.albinus@gmx.de>
13558
13559 * dbusbind.c (Fdbus_method_return_internal): Rename from
13560 Fdbus_method_return.
13561 (Fdbus_unregister_object): Move to dbus.el.
13562 (Fdbus_call_method, Fdbus_method_return_internal)
13563 (Fdbus_send_signal): Improve debug messages.
13564
135652008-01-20 Martin Rudalics <rudalics@gmx.at>
13566
13567 * undo.c (undo_inhibit_record_point): New variable.
13568 (syms_of_undo): Initialize it.
13569 (record_point): Don't record point when undo_inhibit_record_point
13570 is set.
13571
135722008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
13573
13574 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
13575
13576 * xdisp.c (Qauto_hscroll_mode): New var.
13577 (syms_of_xdisp): Initialize it.
13578 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
13579 window's buffer.
13580 (hscroll_windows): Don't check automatic_hscrolling_p here.
13581
13582 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
13583 vscroll if we're setting window-buffer to the value it already has.
13584
135852008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
13586
13587 * m/intel386.h: Remove references to XENIX.
13588
135892008-01-17 Andreas Schwab <schwab@suse.de>
13590
13591 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
13592 instead of HAVE_X86_64_LIB64_DIR.
13593 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
13594
135952008-01-17 Glenn Morris <rgm@gnu.org>
13596
13597 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
13598 to HAVE_X86_64_LIB64_DIR.
13599
136002008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
13601
13602 * s/irix3-3.h:
13603 * s/irix4-0.h:
13604 * s/386-ix.h:
13605 * s/domain.h:
13606 * s/hpux9-x11r4.h:
13607 * s/hpux9shxr4.h: Remove files for systems no longer supported.
13608
13609 * sysdep.c: Remove code containing references to symbols defined
13610 by unsupported systems.
13611
136122008-01-16 Glenn Morris <rgm@gnu.org>
13613
13614 * coding.c (select-safe-coding-system-function): Doc fix.
13615
136162008-01-15 Glenn Morris <rgm@gnu.org>
13617
13618 * config.in: Revert 2008-01-13 change: this is a generated file.
13619
136202008-01-13 Tom Tromey <tromey@redhat.com>
13621
13622 * lisp.h: Fix typo.
13623
136242008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13625
13626 * m/sequent-ptx.h:
13627 * m/sequent.h:
13628 * s/ptx.h:
13629 * s/ptx4-2.h:
13630 * s/ptx4.h: Remove files for systems no longer supported.
13631
13632 * callproc.c (Fcall_process): Fix previous change.
13633
136342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13635
13636 * unexsunos4.c: Remove file, system not supported anymore.
13637
13638 * m/mips.h:
13639 * m/intel386.h:
13640 * callproc.c:
13641 * config.in:
13642 * ecrt0.c:
13643 * emacs.c:
13644 * fileio.c:
13645 * frame.c:
13646 * getpagesize.h:
13647 * keyboard.c:
13648 * lread.c:
13649 * process.c:
13650 * puresize.h:
13651 * sysdep.c:
13652 * systty.h:
13653 * syswait.h:
13654 * unexec.c:
13655 * xdisp.c:
13656 * alloc.c: Remove code containing references to symbols defined by
13657 unsupported systems.
13658
136592008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
13660
13661 * coding.c (detect_coding_mask): Fix previous change.
13662
136632008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
13664
13665 * coding.c (detect_coding_iso2022): New arg
13666 latin_extra_code_state. Allow Latin extra codes only
13667 when *latin_extra_code_state is nonzero.
13668 (detect_coding_mask): If there is a NULL byte, detect the encoding
13669 as UTF-16 or binary. If Latin extra codes exist, detect the
13670 encoding as ISO-2022 only when there's no other proper encoding is
13671 found.
13672
136732008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13674
13675 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
13676 #ifdef MAC_OS.
13677
136782008-01-08 Richard Stallman <rms@gnu.org>
13679
13680 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
13681
136822008-01-06 Nick Roberts <nickrob@snap.net.nz>
13683
13684 * keyboard.c (parse_menu_item): Don't enclose key bindings on
13685 menu bar in parentheses.
13686
136872008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
13688
13689 * m/7300.h:
13690 * m/acorn.h:
13691 * m/alliant-2800.h:
13692 * m/alliant.h:
13693 * m/alliant1.h:
13694 * m/alliant4.h:
13695 * m/altos.h:
13696 * m/amdahl.h:
13697 * m/apollo.h:
13698 * m/att3b.h:
13699 * m/aviion-intel.h:
13700 * m/aviion.h:
13701 * m/celerity.h:
13702 * m/clipper.h:
13703 * m/cnvrgnt.h:
13704 * m/convex.h:
13705 * m/cydra5.h:
13706 * m/delta88k.h:
13707 * m/dpx2.h:
13708 * m/dual.h:
13709 * m/elxsi.h:
13710 * m/f301.h:
13711 * m/gould-np1.h:
13712 * m/gould.h:
13713 * m/i860.h:
13714 * m/ibmps2-aix.h:
13715 * m/ibmrt-aix.h:
13716 * m/ibmrt.h:
13717 * m/irist.h:
13718 * m/is386.h:
13719 * m/isi-ov.h:
13720 * m/mega68.h:
13721 * m/mg1.h:
13722 * m/news-r6.h:
13723 * m/news-risc.h:
13724 * m/news.h:
13725 * m/nh3000.h:
13726 * m/nh4000.h:
13727 * m/ns16000.h:
13728 * m/ns32000.h:
13729 * m/nu.h:
13730 * m/orion.h:
13731 * m/orion105.h:
13732 * m/paragon.h:
13733 * m/pfa50.h:
13734 * m/plexus.h:
13735 * m/pyramid.h:
13736 * m/pyrmips.h:
13737 * m/sh3el.h:
13738 * m/sps7.h:
13739 * m/sr2k.h:
13740 * m/stride.h:
13741 * m/sun1.h:
13742 * m/sun2.h:
13743 * m/sun3-68881.h:
13744 * m/sun3-fpa.h:
13745 * m/sun3-soft.h:
13746 * m/sun3.h:
13747 * m/sun386.h:
13748 * m/symmetry.h:
13749 * m/tad68k.h:
13750 * m/tahoe.h:
13751 * m/targon31.h:
13752 * m/tek4300.h:
13753 * m/tekxd88.h:
13754 * m/tower32.h:
13755 * m/tower32v3.h:
13756 * m/ustation.h:
13757 * m/wicat.h:
13758 * m/xps100.h:
13759 * s/cxux.h:
13760 * s/cxux7.h:
13761 * s/dgux.h:
13762 * s/dgux4.h:
13763 * s/dgux5-4-3.h:
13764 * s/dgux5-4r2.h:
13765 * s/esix.h:
13766 * s/esix5r4.h:
13767 * s/hiuxmpp.h:
13768 * s/hiuxwe2.h:
13769 * s/iris3-5.h:
13770 * s/iris3-6.h:
13771 * s/isc2-2.h:
13772 * s/isc3-0.h:
13773 * s/isc4-0.h:
13774 * s/isc4-1.h:
13775 * s/newsos5.h:
13776 * s/newsos6.h:
13777 * s/osf1.h:
13778 * s/osf5-0.h:
13779 * s/riscix1-1.h:
13780 * s/riscix12.h:
13781 * s/sco4.h:
13782 * s/sco5.h:
13783 * s/sunos4-0.h:
13784 * s/sunos4-1.h:
13785 * s/sunos413.h:
13786 * s/sunos4shr.h:
13787 * s/umax.h:
13788 * s/unipl5-2.h:
13789 * s/xenix.h:
13790 * cxux-crt0.s:
13791 * unexapollo.c:
13792 * unexconvex.c:
13793 * unexenix.c:
13794 * unexsni.c: Remove files for systems no longer supported.
13795
13796 * m/intel386.h: Remove references to unsupported systems.
13797
13798 * w32.c (get_emacs_configuration): Remove reference to i860.
13799
13800 * sysdep.c: Remove dead code.
13801
138022008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
13803
13804 * s/rtu.h:
13805 * m/masscomp.h: Remove files. Platform is obsolete.
13806
138072008-01-04 Michael Albinus <michael.albinus@gmx.de>
13808
13809 * dbusbind.c (Fdbus_method_return): New function.
13810 (xd_read_message): Add the serial number to the event.
13811 (Fdbus_register_method): Activate the function.
13812
138132008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
13814
13815 * keyboard.c (read_key_sequence): Fix typo.
13816
138172008-01-03 Michael Albinus <michael.albinus@gmx.de>
13818
13819 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
13820 (xd_signature, xd_append_arg): Handle element type detection for
13821 empty arrays.
13822 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
13823 SDATA () calls; this must be solved more general.
13824 (Fdbus_register_signal): Use SBYTES instead of strlen.
13825
138262008-01-03 Magnus Henoch <magnus@zemdatav>
13827
13828 * dbusbind.c (xd_append_arg): Use unsigned char instead of
13829 unsigned int for byte values (necessary for big-endian platform).
13830 (Fdbus_call_method): Handle the case of no returned arguments.
13831
138322007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
13833
13834 * dbusbind.c (xd_read_message): Use non-static input_event struct.
13835
138362007-12-31 Magnus Henoch <mange@freemail.hu>
13837
13838 * dbusbind.c (xd_signature): Signature of variant is just "v".
13839
138402007-12-30 Michael Albinus <michael.albinus@gmx.de>
13841
13842 * dbusbind.c: Fix several errors and compiler warnings.
13843 Reported by Tom Tromey <tromey@redhat.com>.
13844 (XD_ERROR, XD_DEBUG_MESSAGE)
13845 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
13846 (xd_append_arg): Part for basic D-Bus types rewritten.
13847 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
13848 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
13849 appropriate.
13850 (xd_read_message): Return Qnil. Don't signal an error; it is not
13851 useful during event reading.
13852 (Fdbus_register_signal): Signal an error if the check for
13853 FUNCTIONP fails.
13854 (Fdbus_register_method): New function. The implementation is not
13855 complete, the call of the function signals an error therefore.
13856 (Fdbus_unregister_object): New function, renamed from
13857 Fdbus_unregister_signal. The initial check signals an error, if
13858 the object is not well formed.
13859
138602007-12-30 Richard Stallman <rms@gnu.org>
13861
13862 * textprop.c (get_char_property_and_overlay):
13863 Signal error if POSITION is out of range in a buffer.
13864
138652007-12-29 Martin Rudalics <rudalics@gmx.at>
13866
13867 * w32fns.c (Fx_create_frame): Make copy of frame parameters
13868 because the original parameters are in pure storage now.
13869
138702007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13871
13872 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
13873
138742007-12-22 Eli Zaretskii <eliz@gnu.org>
13875
13876 * callint.c (syms_of_callint) <command-history>: Add reference to
13877 history-length in the doc string.
13878
138792007-12-17 Jason Rumney <jasonr@gnu.org>
13880
13881 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
13882 before passing as wParam.
13883
138842007-12-22 Michael Albinus <michael.albinus@gmx.de>
13885
13886 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
13887 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
13888 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
13889 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
13890 as number.
13891 (Fdbus_call_method): Fix docstring.
13892
138932007-12-21 Michael Albinus <michael.albinus@gmx.de>
13894
13895 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
13896 New macros.
13897 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
13898 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
13899 Simplify.
13900 (xd_signature): New function.
13901 (xd_append_arg): Compute also signatures. Major rewrite.
13902 (xd_retrieve_arg): Make debug messages friendly.
13903 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
13904 Check for signatures of arguments.
13905
139062007-12-19 Michael Albinus <michael.albinus@gmx.de>
13907
13908 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
13909 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
13910 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
13911 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
13912 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
13913 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
13914 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
13915 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
13916 (xd_retrieve_value): Remove. Functionality included in ...
13917 (xd_append_arg): New function.
13918 (Fdbus_call_method, Fdbus_send_signal): Apply it.
13919
139202007-12-16 Michael Albinus <michael.albinus@gmx.de>
13921
13922 * dbusbind.c (top): Include <stdio.h>.
13923 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
13924 dbus_message_new_method_call and dbus_message_new_signal.
13925 (Fdbus_register_signal): Rename unique_name to uname.
13926 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
13927 non-existing unique name. Fix typos in matching rule. Return an
13928 object which is useful in Fdbus_unregister_signal.
13929 (Fdbus_unregister_signal): Reimplementation, in order to remove
13930 only the corresponding entry.
13931 (Vdbus_registered_functions_table): Change the order of entries.
13932 Apply these changes in xd_read_message and Fdbus_register_signal.
13933
139342007-12-16 Andreas Schwab <schwab@suse.de>
13935
13936 * fileio.c (Finsert_file_contents): Fix overflow check to not
13937 depend on undefined integer overflow.
13938
139392007-12-14 Jason Rumney <jasonr@gnu.org>
13940
13941 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
13942 for characters above 127.
13943
139442007-12-13 Jason Rumney <jasonr@gnu.org>
13945
13946 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
13947 before dereferencing array.
13948 (lookup_vk_code): Remove zero comparison.
13949
139502007-12-14 Michael Albinus <michael.albinus@gmx.de>
13951
13952 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
13953 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
13954 Use `unsigned int' instead of `uint'.
13955 (xd_read_message, Fdbus_register_signal): Split expressions into
13956 multiple lines before operators "&&" and "||", according to the
13957 GNU Coding Standards.
13958
139592007-12-14 Eli Zaretskii <eliz@gnu.org>
13960
13961 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
13962
139632007-12-12 Juri Linkov <juri@jurta.org>
13964
13965 * buffer.c (Frename_buffer): In interactive spec replace
13966 `read-buffer' with `read-string' that uses `buffer-name-history'
13967 as history, and the current buffer's name as default.
13968
139692007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
13970
13971 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
13972 manipulating the backtrace manually.
13973 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
13974 (struct backtrace, backtrace_list): Remove.
13975 (command_loop_1): Remove dead var `no_direct'.
13976
13977 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
13978 preserve non-built-in buffer-local variables.
13979 (Fkill_all_local_variables): Don't re-create&re-set permanent
13980 buffer-local variables.
13981
139822007-12-09 Juri Linkov <juri@jurta.org>
13983
13984 * buffer.c (Frename_buffer): Change interactive spec from "s" to
13985 Lisp code that uses `read-buffer' with current buffer as default.
13986
139872007-12-08 Michael Albinus <michael.albinus@gmx.de>
13988
13989 * dbusbind.c (xd_read_message): Generate an event for every
13990 registered handler. There might be several handlers registered
13991 for the same signal.
13992 (Fdbus_register_signal): Don't overwrite a registration for the
13993 same signal. Add a new registration if handlers are different.
13994 (Vdbus_registered_functions_table): Rework doc string.
13995
139962007-12-07 Michael Albinus <michael.albinus@gmx.de>
13997
13998 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
13999 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14000 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14001 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14002 Unify argument lists.
14003 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14004 arguments and hash table keys. Use unique name for service.
14005 (Fdbus_unregister_signal): Remove checks.
14006 (Vdbus_registered_functions_table): Fix doc string.
14007
140082007-12-05 Magnus Henoch <mange@freemail.hu>
14009
14010 * process.c (make_process): Initialize pty_flag to 0.
14011
140122007-12-05 Jason Rumney <jasonr@gnu.org>
14013
14014 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14015 specified XBMs.
14016
140172007-12-05 Richard Stallman <rms@gnu.org>
14018
14019 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14020
140212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14022
14023 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14024 New variable.
14025 (mac_try_close_socket) [MAC_OSX]: New function.
14026 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14027 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14028
14029 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14030 Use mac_try_close_socket.
14031
140322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14033
14034 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14035 reloc_base.
14036 (copy_dysymtab): Compute relocation base here.
14037 (rebase_reloc_address) [__ppc64__]: New function.
14038 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14039 changed.
14040
140412007-12-05 Jason Rumney <jasonr@gnu.org>
14042
14043 * w32proc.c (sys_spawnve): Quote args with wildcards.
14044
140452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14046
14047 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14048 __objc_* sections.
14049 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14050
140512007-12-05 Michael Albinus <michael.albinus@gmx.de>
14052
14053 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14054 Move check for Vdbus_registered_functions_table to
14055 xd_read_queued_messages.
14056 (xd_read_queued_messages): Protect xd_read_message calls by
14057 internal_condition_case_1.
14058
140592007-12-04 Michael Albinus <michael.albinus@gmx.de>
14060
14061 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14062 Qdbus_system_bus and Qdbus_session_bus, respectively.
14063 (Vdbus_intern_symbols): Remove.
14064 (Vdbus_registered_functions_table): New hash table.
14065 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14066 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14067 Rewrite in order to manage registered functions by hash table
14068 Vdbus_registered_functions_table.
14069
140702007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14071
14072 * xterm.c: Update URL to Window Manager Specification in comment.
14073
140742007-12-02 Michael Albinus <michael.albinus@gmx.de>
14075
14076 * config.in (HAVE_DBUS): Add.
14077
14078 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14079 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14080 (obj): Add $(DBUS_OBJ).
14081 (LIBES): Add $(DBUS_LIBS).
14082 (dbusbind.o): New target.
14083
14084 * dbusbind.c: New file.
14085
14086 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14087
14088 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14089 (Qdbus_event): New Lisp symbol.
14090 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14091 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14092 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14093
14094 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
14095
140962007-12-01 Richard Stallman <rms@gnu.org>
14097
14098 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
14099
141002007-11-30 Jason Rumney <jasonr@gnu.org>
14101
14102 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
14103 (w32con_reset_terminal_modes): Clear screen buffer.
14104 (w32_face_attributes): Don't use color indexes that are out of range.
14105 Only reverse the default colors.
14106
14107 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
14108 WINDOWSNT.
14109
14110 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
14111
141122007-11-29 Jason Rumney <jasonr@gnu.org>
14113
14114 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
14115 (w32_face_attributes): Use Vtty_defined_color_alist to determine
14116 if the terminal colors are initialized.
14117 (unspecified_fg, unspecified_bg): Remove unused declarations.
14118
141192007-11-29 Andreas Schwab <schwab@suse.de>
14120
14121 * keyboard.c (apply_modifiers): Fix typo.
14122
141232007-11-29 Richard Stallman <rms@gnu.org>
14124
14125 * keymap.c (Fcurrent_local_map): Doc fix.
14126
141272007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
14128
14129 * s/gnu-kfreebsd.h: New file.
14130
141312007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
14132
14133 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
14134 Don't cast redundantly.
14135
14136 * keyboard.c (KEY_TO_CHAR): New macro.
14137 (parse_modifiers, apply_modifiers): Accept integer arguments.
14138 (read_key_sequence): Use them to unify the "shift->unshift" mapping
14139 for chars and symbol keys.
14140 After doing such remapping, apply function-key-map again.
14141
141422007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
14143
14144 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
14145 compiled anymore.
14146
141472007-11-26 Andreas Schwab <schwab@suse.de>
14148
14149 * process.c (list_processes_1): Fix indentation level of the
14150 command column.
14151
141522007-11-23 Andreas Schwab <schwab@suse.de>
14153
14154 * editfns.c (Fformat): Handle %c specially since it requires the
14155 argument to be of type int.
14156
141572007-11-23 Markus Triska <markus.triska@gmx.at>
14158
14159 * emacs.c (main): Call init_editfns before init_process, since
14160 init_process sets Vprocess_connection_type depending on OS release.
14161
141622007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
14163
14164 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
14165 (find_symbol_value): Use do_symval_forwarding.
14166
14167 * data.c (set_internal): Set the value in the `cons-cell' (for
14168 Buffer_Local_values) not only for frame-local variables.
14169
141702007-11-22 Andreas Schwab <schwab@suse.de>
14171
14172 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
14173 values to sprintf.
14174 * keymap.c (Fsingle_key_description): Likewise.
14175 * print.c (print_object): Likewise.
14176
141772007-11-22 Jan Djärv <jan.h.d@swipnet.se>
14178
14179 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
14180 file for image is nil.
14181
141822007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
14183
14184 * term.c: Include stdarg.h.
14185 (fatal): Implement using varargs.
14186 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
14187
141882007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14189
14190 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
14191 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
14192 Update call to buffer_slot_type_mismatch.
14193 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
14194 (buffer_slot_type_mismatch): Update.
14195 * buffer.c (buffer_local_types): Remove.
14196 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
14197 (defvar_per_buffer): Set the type in the buffer_objfwd.
14198
141992007-11-21 Jason Rumney <jasonr@gnu.org>
14200
14201 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
14202 CreateFileMapping returns NULL on failure.
14203
142042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * search.c (Fset_match_data): Remove the `evaporate' feature.
14207 (unwind_set_match_data): Don't use the `evaporate' feature.
14208
142092007-11-21 Jason Rumney <jasonr@gnu.org>
14210
14211 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
14212
14213 * w32console.c (w32con_write_glyphs): Remove unused variables.
14214
142152007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
14216
14217 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
14218
14219 * s/darwin.h (MULTI_KBOARD): Remove.
14220
14221 * macfns.c (x_create_tip_frame, Fx_create_frame)
14222 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
14223
142242007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
14225
14226 * buffer.c (Fbuffer_local_value): Remove redundant test.
14227 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
14228 than in `current-buffer' to match the comment.
14229 Do the swap using swap_in_global_binding.
14230
14231 * data.c (store_symval_forwarding, set_internal):
14232 * eval.c (specbind): Remove dead code.
14233
14234 * coding.c (detect_coding, Fupdate_coding_systems_internal):
14235 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
14236 Since we do not want to see internal Lisp_*fwd objects here.
14237
142382007-11-18 Jan Djärv <jan.h.d@swipnet.se>
14239
14240 * sysdep.c (init_system_name): Use getaddrinfo if available.
14241
14242 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
14243 (x_scroll_bar_note_movement): start, end, with, height in struct
14244 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
14245
142462007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
14247
14248 * puresize.h (BASE_PURESIZE): Increase to 1190000.
14249
142502007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
14251
14252 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
14253 This undoes Richard's change of 14-Oct-2002.
14254
14255 * alloc.c (allocate_other_vector):
14256 * lisp.h (allocate_other_vector): Remove.
14257
14258 * window.c (struct save_window_data): Move non-lisp data to the end
14259 and make it `int' rather than Lisp_Object.
14260 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
14261 Done wrap/unwrap integer values.
14262 (Fset_window_configuration, compare_window_configurations):
14263 Update use of fields to their new types.
14264
14265 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
14266 Turn integer fields into `int'. Merge x_window_low and x_window_high.
14267 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
14268 (SET_SCROLL_BAR_X_WINDOW): Remove.
14269 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
14270 Access the new x_window field directly.
14271 * xterm.c (x_scroll_bar_create): Use a pseudovector.
14272 Don't wrap/unwrap integers into Lisp_Objects.
14273 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
14274 (x_scroll_bar_report_motion):
14275 Don't wrap/unwrap integers into Lisp_Objects.
14276 (x_term_init): Use SDATA.
14277 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
14278 (x_scroll_bar_set_handle, x_scroll_bar_remove)
14279 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
14280 (x_scroll_bar_report_motion, x_scroll_bar_clear):
14281 * xfns.c (x_set_background_color):
14282 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
14283 Access the new x_window field directly.
14284
14285 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
14286 (allocate_pseudovector): Make non-static.
14287
14288 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
14289 (allocate_pseudovector): Declare.
14290 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
14291
142922007-11-15 Andreas Schwab <schwab@suse.de>
14293
14294 * editfns.c (Fformat): Correctly format EMACS_INT values.
14295 Also take precision into account when formatting an integer.
14296
14297 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
14298
142992007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
14300
14301 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
14302 (syms_of_keyboard): Defsubr it.
14303
14304 * data.c (swap_in_global_binding): Fix longstanding bug where
14305 store_symval_forwarding was not called with the right second argument,
14306 thus causing objfwd-ing from being dropped.
14307
143082007-11-14 Juanma Barranquero <lekktu@gmail.com>
14309
14310 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
14311 (Fx_display_pixel_height, Fx_display_planes)
14312 (Fx_display_color_cells, Fx_server_max_request_size)
14313 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14314 (Fx_display_visual_class, Fx_display_save_under):
14315 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
14316 (Fx_display_pixel_height, Fx_display_planes)
14317 (Fx_display_color_cells, Fx_server_max_request_size)
14318 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14319 (Fx_display_mm_height, Fx_display_mm_width)
14320 (Fx_display_backing_store, Fx_display_visual_class)
14321 (Fw32_select_font, Fx_display_save_under):
14322 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
14323 (Fx_display_pixel_height, Fx_display_planes)
14324 (Fx_display_color_cells, Fx_server_max_request_size)
14325 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14326 (Fx_display_save_under): Fix typos in docstrings.
14327
143282007-11-14 Juanma Barranquero <lekktu@gmail.com>
14329
14330 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
14331 corresponding to deleted entries; they are an implementation detail.
14332 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
14333 Remove variables.
14334 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
14335 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
14336 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
14337 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
14338 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
14339 (Fw32_define_rgb_color, Fw32_load_color_file)
14340 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
14341 Fix typos in docstrings.
14342 (Fx_server_version): Reflow docstring.
14343 (Fw32_shell_execute): Doc fixes.
14344
143452007-11-13 Juanma Barranquero <lekktu@gmail.com>
14346
14347 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
14348 if w32_parse_hot_key returned nil.
14349
143502007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
14351
14352 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
14353
143542007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 14355
aac0c6e3
MR
14356 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
14357
14358 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
14359
14360 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
14361 Remove W32_SCROLL_BAR_CLICK_EVENT.
14362
14363 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
14364 Add MULTIMEDIA_KEY_EVENT.
14365
14366 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
14367 (lispy_multimedia_keys) [WINDOWSNT]: New array.
14368 (make_lispy_event) [WINDOWSNT]: Use it to translate
14369 MULTIMEDIA_KEY_EVENT.
14370
14371 * w32term.h (WM_APPCOMMAND): Define if not already.
14372 (GET_APPCOMMAND_LPARAM): Likewise.
14373
14374 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
14375 WM_APPCOMMAND.
14376
14377 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
14378 (syms_of_w32fns): Export and initialize it.
14379 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
14380
143812007-11-09 Chong Yidong <cyd@stupidchicken.com>
14382
14383 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
14384 twice.
14385
14386 * xdisp.c (handle_face_prop): Fix last change.
14387
143882007-11-09 Richard Stallman <rms@gnu.org>
14389
14390 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
14391 not just for after-strings and before-strings.
14392 Call face_for_overlay_string and pass the overlay to it.
14393 (handle_display_prop): Determine whether property came from an overlay.
14394 Pass OVERLAY arg to handle_single_display_spec.
14395 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
14396 (load_overlay_strings): Fill in it->string_overlays.
14397 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
14398
14399 * xfaces.c (face_for_overlay_string): Function renamed from
14400 face_at_buffer_position_no_overlays, and add arg OVERLAY.
14401
14402 * dispextern.h (struct it): New elt string_overlays.
14403 New elt from_overlay, also in stack.
14404 Rearrange a few elements.
14405 (face_for_overlay_string): Decl renamed from
14406 face_at_buffer_position_no_overlays, and add argument.
14407
144082007-11-09 Richard Stallman <rms@gnu.org>
14409
14410 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
14411 to get the base face for an overlay string.
14412
14413 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
14414
14415 * xfaces.c (face_at_buffer_position_no_overlays): New function.
14416
14417 * xdisp.c (handle_stop): Move some code out of loop.
14418
144192007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14420
14421 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
14422 Fix conversion from Lisp object to ATSUFontID.
14423
144242007-11-09 Jason Rumney <jasonr@gnu.org>
14425
14426 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
14427
144282007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14429
14430 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
14431 Don't assume regions are aligned to page boundary.
14432 (print_load_command_name): Add LC_UUID if defined.
14433
144342007-11-09 Richard Stallman <rms@gnu.org>
14435
14436 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
14437
144382007-11-07 Jason Rumney <jasonr@gnu.org>
14439
14440 * s/windows95.h: Remove.
14441
144422007-11-06 Jan Djärv <jan.h.d@swipnet.se>
14443
14444 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
14445 abort with a message on unhandled store_type values.
14446
144472007-11-01 Jan Djärv <jan.h.d@swipnet.se>
14448
14449 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
14450 Remove HAVE_X11R5 and HAVE_X11R4.
14451
144522007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14453
14454 * Makefile.in: Remove references to sunfns.c and sunfns.o.
14455
144562007-11-01 Johan Bockgård <bojohan@gnu.org>
14457
14458 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
14459 Don't set s->stippled_p here, since it has already been set by
14460 x_set_glyph_string_gc from x_draw_glyph_string.
14461
144622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14463
14464 * sunfns.c: Remove file.
14465
14466 * m/sun386.h:
14467 * m/sun2.h:
14468 * m/sparc.h: Remove Sun windows code.
14469
144702007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
14471
14472 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
14473 (init_keyboard): Set current_kboard's window-system to nil.
14474 (tty_read_avail_input): Typo.
14475 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
14476
144772007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
14478
14479 * s/usg5-4.h:
14480 * s/usg5-3.h:
14481 * s/ptx.h:
14482 * m/is386.h:
14483 * m/ibmps2-aix.h:
14484 * Makefile.in: Remove all mentions of X10.
14485
14486 * dispnew.c (syms_of_display): Don't mention version 10.
14487
144882007-10-28 Juanma Barranquero <lekktu@gmail.com>
14489
14490 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
14491 ($(BLD)/abbrev.$(O)): Remove.
14492
144932007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14494
14495 Rewrite abbrev.c in Elisp.
14496 * image.c (Qcount): Don't declare as extern.
14497 (syms_of_image): Initialize and staticpro `Qcount'.
14498 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
14499 * emacs.c (main): Don't call syms_of_abbrev.
14500 * Makefile.in (obj): Remove abbrev.o.
14501 (abbrev.o): Remove.
14502 * abbrev.c: Remove.
14503
145042007-10-26 Martin Rudalics <rudalics@gmx.at>
14505
14506 * window.c (window_min_size_2): Don't count header-line.
14507
145082007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
14509
14510 * frame.h (struct frame): Move all bit fields after the first bit
14511 field to take advantage of the available space. Group all the
14512 chars together to reduce wasted space due to padding.
14513
145142007-10-26 Juanma Barranquero <lekktu@gmail.com>
14515
14516 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
14517
14518 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
14519 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
14520 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
14521 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
14522 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
14523 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
14524 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
14525 (last_marked, mark_object_loop_halt): Make static.
14526
14527 * frame.c (syms_of_frame) <delete-frame-functions>:
14528 Fix typo in docstring.
14529
145302007-10-25 Juanma Barranquero <lekktu@gmail.com>
14531
14532 * w32.c (init_environment): Fix tiny memory leak.
14533 (w32_get_resource): Remove unused variable `ok'.
14534
145352007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
14536
14537 Make `window-system' into a keyboard-local variable (rather than
14538 frame-local as done originally by multi-tty).
14539
14540 * keyboard.h (struct kboard): Add Vwindow_system.
14541 * keyboard.c (init_kboard): Set a default for Vwindow_system.
14542 (mark_kboards): Mark Vwindow_system.
14543
14544 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
14545 (init_display): Don't set the obsolete `window-system' frame-param.
14546
14547 * xterm.c (x_term_init):
14548 * w32term.c (w32_create_terminal):
14549 * term.c (init_tty): Set Vwindow_system.
14550 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
14551 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
14552
14553 * xfns.c (Fx_create_frame, x_create_tip_frame):
14554 * w32fns.c (Fx_create_frame, x_create_tip_frame):
14555 * macfns.c (Fx_create_frame):
14556 Don't set the obsolete `window-system' frame-param.
14557
14558 * frame.h (Qwindow_system): Remove.
14559 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
14560 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
14561
145622007-10-24 Richard Stallman <rms@gnu.org>
14563
14564 * frame.c (x_figure_window_size): For fullscreen case,
14565 set USPosition | PPosition without clobbering rest of window_prompting.
14566
14567 * keyboard.c (Fcurrent_idle_time): Doc fix.
14568
14569 * print.c (Fwith_output_to_temp_buffer): Doc fix.
14570
145712007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
14572
14573 * process.c (unwind_request_sigio): Only define if __ultrix__.
14574
14575 * callproc.c (child_setup): Remove spurious *.
14576
14577 * lisp.h (Fget_text_property): Declare.
14578 (have_menus_p): Declare it here rather than in sys-dep header files.
14579 * macterm.h (have_menus_p):
14580 * msdos.h (have_menus_p):
14581 * xterm.h (have_menus_p): Remove.
14582
14583 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14584 (Fmake_variable_frame_local): Just check the variable's const-ness
14585 rather than checking nil or t.
14586
145872007-10-22 Jason Rumney <jasonr@gnu.org>
14588
14589 * w32fns.c: Include math.h.
14590 (w32_abort): Declaration moved to nt/config.nt.
14591
14592 * s/ms-w32.h (HAVE_STDLIB_H): Define.
14593 (abort): Redefinition moved to nt/config.nt.
14594
14595 * m/windowsnt.h: Remove.
14596
145972007-10-22 Juanma Barranquero <lekktu@gmail.com>
14598
14599 * emacs.c (Fdump_emacs): Fix typo in message.
14600 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
14601 <installation-directory>: Reflow docstring.
14602
146032007-10-22 Juri Linkov <juri@jurta.org>
14604
14605 * minibuf.c: Allow minibuffer default to be a list of default values.
14606 With empty input use the first element of this list as returned default.
14607 (string_to_object)
14608 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
14609 (read_minibuf): If defalt is cons, set histstring to its car.
14610 (Fread_string): If default_value is cons, set val to its car.
14611 (Fread_buffer): If def is cons, use its car.
14612 (Fcompleting_read): If defalt is cons, set val to its car.
14613
146142007-10-21 Michael Albinus <michael.albinus@gmx.de>
14615
14616 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
14617
146182007-10-20 Juanma Barranquero <lekktu@gmail.com>
14619
14620 * doc.c (Fdocumentation): Check for advice in all cases.
14621
146222007-10-19 Chong Yidong <cyd@stupidchicken.com>
14623
14624 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
14625
146262007-10-19 Richard Stallman <rms@gnu.org>
14627
14628 * doc.c (Fdocumentation): Check for and handle an advised function.
14629
146302007-10-19 Juanma Barranquero <lekktu@gmail.com>
14631
14632 * process.c (Fset_process_filter): Doc fix.
14633
146342007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
14635
14636 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
14637 which caused key-translation-map to applied repeatedly (thus breaking
14638 double-mode).
14639
146402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14641
14642 * xselect.c (x_own_selection, x_handle_selection_clear)
14643 (x_clear_frame_selections):
14644 * w32menu.c (list_of_panes, list_of_items):
14645 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
14646 * textprop.c (validate_plist, interval_has_all_properties)
14647 (interval_has_some_properties, interval_has_some_properties_list)
14648 (add_properties, text_property_list):
14649 * process.c (Fget_buffer_process, list_processes_1, status_notify):
14650 * minibuf.c (Fassoc_string):
14651 * macselect.c (x_own_selection, x_clear_frame_selections)
14652 (Fx_disown_selection_internal):
14653 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
14654 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
14655
146562007-10-17 Chong Yidong <cyd@stupidchicken.com>
14657
14658 * process.c: Link to libs for calling res_init() if available.
14659 (Fmake_network_process): Call res_init() before getaddrinfo or
14660 gethostbyname, if possible.
14661
146622007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14663
14664 * lread.c (read1): Set pvectype for char_tables.
14665
14666 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
14667 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
14668 Add type checks.
14669 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
14670
14671 * alloc.c (free_misc): Use XMISCTYPE.
14672 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
14673
146742007-10-17 Glenn Morris <rgm@gnu.org>
14675
14676 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
14677 (syms_of_minibuf): Add Qcompletion_ignore_case.
14678 * dired.c (Qcompletion_ignore_case): Change to external.
14679 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
14680 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
14681 (Fread_file_name): Use it rather than intern'ing.
14682
14683 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
14684 (Fread_coding_system): Ignore case of user input.
14685
146862007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14687
14688 * xdisp.c (handle_display_prop): Ignore display specs after
14689 replacing one when string text is being replaced.
14690 (handle_single_display_spec): Pretend as if characters with display
14691 property haven't been consumed only when buffer text is being replaced.
14692
146932007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
14694
14695 * xfns.c (Fx_create_frame, Fx_display_list):
14696 * window.c (window_fixed_size_p, enlarge_window)
14697 (shrink_window_lowest_first):
14698 * macterm.c (init_font_name_table):
14699 * macfns.c (Fx_create_frame, Fx_display_list):
14700 * lread.c (close_load_descs):
14701 * keyboard.c (read_char_x_menu_prompt):
14702 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
14703 * coding.c (code_convert_region_unwind): Test the type of an object
14704 rather than just !NILP before extracting data from it.
14705
14706 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
14707
14708 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
14709 (XMISCANY): New macro.
14710 (XMISCTYPE): Use it.
14711 (struct Lisp_Misc_Any): New type.
14712 (union Lisp_Misc): Use it.
14713 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
14714 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
14715 (find_symbol_value, set_internal, default_value, Fset_default)
14716 (Fmake_variable_buffer_local, Fmake_local_variable)
14717 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
14718 (Flocal_variable_if_set_p, Fvariable_binding_locus):
14719 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
14720 * alloc.c (allocate_buffer): Set the size and tag.
14721 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
14722 Use XMISCANY.
14723 (die): Follow the GNU convention for error messages.
14724 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
14725 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
14726 tag any more.
14727 (set_buffer_internal_1):
14728 * frame.c (store_frame_param):
14729 * eval.c (specbind):
14730 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
14731
14732 * doc.c (Fsnarf_documentation): Simplify.
14733
147342007-10-14 Juanma Barranquero <lekktu@gmail.com>
14735
14736 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
14737 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
14738
147392007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
14740
14741 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
14742
147432007-10-14 Juanma Barranquero <lekktu@gmail.com>
14744
14745 * eval.c (do_autoload): Don't save autoloads.
14746
14747 * data.c (Ffset): Save autoload of the function being set.
14748
147492007-10-07 John Paul Wallington <jpw@pobox.com>
14750
14751 * xfns.c (x_create_tip_frame): Set the `display-type' frame
14752 parameter before setting up faces.
14753
147542007-10-13 Eli Zaretskii <eliz@gnu.org>
14755
14756 * ccl.c (Fregister_code_conversion_map):
14757 * keyboard.c (append_tool_bar_item): Reformat last change.
14758
14759 * lisp.h (eabs): Rename from `abs'. All callers changed.
14760
147612007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
14762
14763 * buffer.c (add_overlay_mod_hooklist):
14764 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
14765 * fontset.c (make_fontset):
14766 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
14767 (append_tool_bar_item):
14768 * macmenu.c (grow_menu_items):
14769 * w32menu.c (grow_menu_items):
14770 * xmenu.c (grow_menu_items): Use larger_vector.
14771
147722007-10-13 Eli Zaretskii <eliz@gnu.org>
14773
14774 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
14775 selected frame'' on MSDOS).
14776
147772007-10-12 Martin Rudalics <rudalics@gmx.at>
14778
14779 * frame.c (Qexplicit_name): New variable.
14780 (x_report_frame_params): Report it in parameter alist.
14781 (syms_of_frame): Intern and staticpro it.
14782
147832007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
14784
14785 * macfns.c (x_create_tip_frame): Set terminal for frame.
14786
147872007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
14788
14789 * frame.c (Qenvironment): Remove.
14790 (syms_of_frame) <Qenvironment>: Don't initialize.
14791 (Fdelete_frame): Don't treat the `environment' param specially.
14792 * frame.h (Qenvironment): Don't declare.
14793 * callproc.c (set_initial_environment): Don't set unused frame param.
14794
14795 * frame.c (Fframe_with_environment): Remove.
14796 (syms_of_frame) <Sframe_with_environment>: Don't declare.
14797
14798 * lisp.h (Fframe_with_environment): Don't declare.
14799
148002007-10-10 Juanma Barranquero <lekktu@gmail.com>
14801
14802 * indent.c (indent_tabs_mode, last_known_column)
14803 (last_known_column_modified): Make static.
14804 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
14805
148062007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
14807
14808 * puresize.h (BASE_PURESIZE): Increase to 1170000.
14809
148102007-10-09 Jason Rumney <jasonr@gnu.org>
14811
14812 * w32term.c (x_set_window_size): Disable code that attempts to tell
14813 Lisp code about a size change before it actually happens.
14814
148152007-10-09 Richard Stallman <rms@gnu.org>
14816
14817 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
14818 return HANDLED_RETURN.
14819
148202007-10-08 Martin Rudalics <rudalics@gmx.at>
14821
14822 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
14823 when there's an unread command event.
14824
14825 * frame.c (focus_follows_mouse): Move here from frame.el to allow
14826 window autoselection act appropriately when leaving selected frame.
14827 (syms_of_frame): Initialize focus_follows_mouse.
14828 * frame.h (focus_follows_mouse): Extern it.
14829 * macterm.c (XTread_socket): When focus_follows_mouse is nil
14830 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
14831 * msdos.c (dos_rawgetc): Likewise.
14832 * w32term.c (w32_read_socket): Likewise.
14833 * xterm.c (handle_one_xevent): Likewise.
14834 * xdisp.c (syms_of_xdisp): In doc-string of
14835 mouse-autoselect-window mention focus-follows-mouse.
14836
148372007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14838
14839 * macterm.c (mac_load_query_font): Fix missing return value.
14840 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
14841 Add BLOCK_INPUT.
14842
148432007-10-08 Richard Stallman <rms@gnu.org>
14844
14845 * xdisp.c (get_window_cursor_type): Implement documented behavior
14846 for cursor-in-non-selected-windows = t.
14847
148482007-10-08 Jason Rumney <jasonr@gnu.org>
14849
14850 * w32.c (w32_get_resource): Always close registry keys.
14851
148522007-10-08 Jason Rumney <jasonr@gnu.org>
14853
14854 * makefile.w32-in (LIBS): Add COMCTL32.
14855
14856 * w32fns.c (globals_of_w32fns): Init common controls.
14857
148582007-10-08 Richard Stallman <rms@gnu.org>
14859
14860 * image.c (our_memory_buffer): Rename from omfib_buffer.
14861
148622007-10-08 Richard Stallman <rms@gnu.org>
14863
14864 * buffer.c (Foverlays_at): Doc fix.
14865
148662007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
14867
14868 * fns.c (Fplist_put): Preserve uneven tail data.
14869
148702007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
14871
14872 * termhooks.h (enum event_kind): Remove trailing comma.
14873
14874 * frame.h (enum): Remove trailing comma.
14875
148762007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14877
14878 * w32proc.c (delete_child): Don't terminate threads of zombies.
14879
148802007-10-08 Martin Rudalics <rudalics@gmx.at>
14881
14882 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
14883
14884 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
14885 last-repeatable-command.
14886 (init_kboard): Initialize Vlast_repeatable_command.
14887 (command_loop_1): Set it to real_this_command unless that was
14888 bound to an input event.
14889 (mark_kboards): Mark it.
14890
148912007-10-08 Richard Stallman <rms@gnu.org>
14892
14893 * eval.c (condition-case): Doc fix.
14894
148952007-10-08 Masatake YAMATO <jet@gyve.org>
14896
14897 * xfaces.c (tty_supports_face_attributes_p): Fix code
14898 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
14899 was copied and not edited.
14900
149012007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
14902
14903 Add new `input-decode-map' keymap and use it for terminal
14904 escape sequences.
14905 * keyboard.h (struct kboard): Add Vinput_decode_map.
14906 Remove Vlocal_key_translation_map.
14907 * keyboard.c (read_key_sequence): Add support for input-decode-map.
14908 (init_kboard): Init input-decode-map.
14909 Replace local-key-translation-map back with key-translation-map.
14910 (syms_of_keyboard): Declare input-decode-map.
14911 Remove local-key-translation-map. Update docstrings.
14912 (mark_kboards): Mark Vinput_decode_map.
14913 Don't mark Vlocal_key_translation_map.
14914 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
14915 Replace local-key-translation-map back with key-translation-map.
14916 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
14917 Bind in input-decode-map rather than function-key-map.
14918
14919 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
14920 This was made redundant by the previous introduction of XSETPVECTYPE.
14921
149222007-10-09 Richard Stallman <rms@gnu.org>
14923
14924 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
14925
149262007-09-29 Richard Stallman <rms@gnu.org>
14927
14928 * eval.c (internal_condition_case_2, internal_condition_case_1)
14929 (internal_condition_case): Reenable abort if x_catching_errors ()
14930 to see if that really happens and why.
14931
149322007-10-06 Andreas Schwab <schwab@suse.de>
14933
14934 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
14935
149362007-10-04 Juanma Barranquero <lekktu@gmail.com>
14937
14938 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
14939
149402007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
14941
14942 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
14943
149442007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
14945
14946 * window.h (struct window):
14947 * window.c (struct save_window_data, struct saved_window):
14948 * termhooks.h (struct terminal):
14949 * process.h (struct Lisp_Process):
14950 * frame.h (struct frame):
14951 * buffer.h (struct buffer):
14952 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
14953 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
14954 The size field of (pseudo)vectors is now unsigned.
14955 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
14956
14957 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
14958 Turn `count' into an integer.
14959
14960 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
14961 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
14962 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
14963 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
14964 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
14965
14966 * alloc.c (allocate_pseudovector): New fun.
14967 (ALLOCATE_PSEUDOVECTOR): New macro.
14968 (allocate_window, allocate_terminal, allocate_frame)
14969 (allocate_process): Use it.
14970 (mark_vectorlike): New function.
14971 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
14972 (mark_terminals): Use it.
14973 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
14974 (Fmake_byte_code): Use XSETPVECTYPE.
14975
14976 * frame.c (Fframe_parameters): Minor simplification.
14977
14978 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
14979
14980 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
14981
14982 * buffer.c (Fget_buffer_create, init_buffer_once):
14983 * lread.c (defsubr):
14984 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
14985
14986 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
14987 defined differently in the m/*.h files.
14988 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
14989 (XSETPVECTYPE): New macro.
14990 (XSETPSEUDOVECTOR): Use it.
14991
14992 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
14993 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
14994
14995 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
14996 * lread.c (defvar_per_buffer):
14997 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
14998
14999 * window.c (candidate_window_p): Only consider as visible frames that
15000 are on the same terminal.
15001
15002 * m/ibms390x.h (MARKBIT): Remove unused macro.
15003
150042007-10-01 Juanma Barranquero <lekktu@gmail.com>
15005
15006 * lread.c (Fload): Fix typo in docstring.
15007
150082007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15009
15010 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15011 of a non-zero value can't yield zero.
15012
150132007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15014
15015 * term.c (term_clear_mouse_face, term_mouse_highlight)
15016 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15017
15018 * print.c (safe_debug_print): Use XHASH.
15019
15020 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15021 Lisp elements such as tags.
15022 (XHASH): New macro.
15023 (EQ): Use it.
15024 (SREF, SSET, STRING_COPYIN): Use SDATA.
15025 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15026
15027 * alloc.c (mark_terminal): Remove left-over declaration.
15028 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15029 (allocate_vectorlike): Remove type argument. Adjust callers.
15030 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15031 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15032
15033 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15034 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15035 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15036 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15037 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15038 Use them.
15039
15040 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15041 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15042 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15043
150442007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15045
15046 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15047 loaded by default.
15048
150492007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15050
15051 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15052 on this tty.
15053 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15054
15055 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15056 Update all users.
15057 (handle_one_term_event): Use Gpm_DrawPointer.
15058 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15059 Signal errors instead of returning nil. Always return nil.
15060 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15061 Make it a noop if gpm-mouse was not activated.
15062 (syms_of_term): Update names.
15063
150642007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15065
15066 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15067 (init_sys_modes): Check that gpm_tty is the current tty.
15068
15069 * alloc.c (allocate_terminal): Set the vector size to only count the
15070 lisp fields. Initialize those to nil.
15071 (mark_object): Don't treat terminals specially.
15072 (mark_terminal): Remove.
15073 (mark_terminals): Use mark_object instead.
15074
15075 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15076 the GC to the beginning.
15077
15078 * indent.h:
15079 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15080
15081 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15082
150832007-09-25 Jason Rumney <jasonr@gnu.org>
15084
15085 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15086
15087 * w32console.c (create_w32cons_output): Remove.
15088
15089 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15090
15091 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15092 (reset_sys_modes): Use reset_terminal_modes_hook.
15093
150942007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
15095
15096 * eval.c (do_autoload): Don't output any message.
15097
150982007-09-24 Juri Linkov <juri@jurta.org>
15099
15100 * emacs.c (standard_args): Change priority of "--no-splash"
15101 from 40 to 3. Add "--no-desktop" with the same priority.
15102
151032007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
15104
15105 * alloc.c (gc_sweep): Check cons cell mark bits word by word
15106 and optimize the case where they are all 1.
15107
151082007-09-23 Johannes Weiner <hannes@saeurebad.de>
15109
15110 * lisp.h (abs): Define if not defined.
15111 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
15112 Don't define `abs', since it's defined in lisp.h.
15113
151142007-09-22 Eli Zaretskii <eliz@gnu.org>
15115
15116 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
15117 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
15118 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
15119 (init_tty): Use DEV_TTY instead of "/dev/tty".
15120 [WINDOWSNT]: No need to protect from NAME arg being null.
15121
151222007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15123
15124 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
15125 up the tty state.
15126
151272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15128
15129 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
15130 (gpm_tty): Change its type.
15131 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
15132 (gpm_tty): Change its type and initialize it.
15133 (Fterm_open_connection): Check the frame is indeed a tty.
15134 Use the new gpm_tty.
15135 (Fterm_close_connection): Use the new gpm_tty.
15136 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
15137 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
15138
151392007-09-21 Juanma Barranquero <lekktu@gmail.com>
15140
15141 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
15142 underline_color, to draw strike-through.
15143
151442007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15145
15146 * lisp.h (allocate_terminal): Declare.
15147
15148 * window.c (candidate_window_p): Consider frames that are being placed
15149 by the user as somewhere between visible and iconified.
15150 (window_loop): Prefer windows on the current frame.
15151 (Fselect_window): Move the use of select-frame to the beginning so we
15152 can just delegate all the work (it'll call us back anyway).
15153
15154 * frame.c (Qdisplay_environment_variable):
15155 * frame.h (Qdisplay_environment_variable): Delete.
15156
15157 * .gdbinit (xbacktrace): Print the arg's address rather than the value
15158 of the first arg, since that value may be a union.
15159
15160 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
15161 parameter rather than Qdisplay_environment_variable. If all else
15162 fails, look for DISPLAY in initial-environment.
15163
151642007-09-21 Glenn Morris <rgm@gnu.org>
15165
15166 * Makefile.in (emacstool): Remove target.
15167 (lisp, shortlisp): Remove termdev.elc.
15168
151692007-09-21 Markus Triska <markus.triska@gmx.at>
15170
15171 * xterm.c (x_delete_display): Compile session management conditionally.
15172
151732007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
15174
15175 * callproc.c (getenv_internal_1): New function.
15176 (getenv_internal): Use it.
15177 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
15178
15179 * terminal.c (get_terminal): Don't accept ints to represent terminals.
15180 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
15181 (Fset_terminal_parameter): Work with dead terminals as well.
15182 (Fmodify_terminal_parameters): Remove.
15183
15184 * terminal.c (get_terminal): Handle terminals.
15185 Make sure the terminal returned is live.
15186 (create_terminal): Use allocate_terminal.
15187 (mark_terminals): Move to alloc.c.
15188 (delete_terminal): Use terminal->name as liveness status.
15189 NULL out fields after freeing their contents.
15190 Don't deallocate the object.
15191 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
15192 rather than an int.
15193 (Fterminal_live_p): Accept non-integer arguments.
15194 (Fterminal_list): Return terminal objects rather than an ints.
15195
15196 * alloc.c (enum mem_type): New member for `terminal' objects.
15197 (allocate_terminal): New function.
15198 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
15199 Handle terminals.
15200 (mark_terminal): New fun.
15201 (mark_terminals): Move from terminal.c.
15202
15203 * term.c (get_tty_terminal): Don't treat output_initial specially.
15204 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
15205 (delete_tty): Use terminal->name as liveness status.
15206
15207 * termhooks.h (struct terminal): Make it into a pseudovector.
15208 Remove `deleted' replaced by checking `name's nullness.
15209
15210 * print.c (print_object): Handle terminals.
15211
15212 * lisp.h (enum pvec_type): New `terminal' pseudovector.
15213 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
15214
15215 * frame.c (make_terminal_frame):
15216 * keyboard.c (tty_read_avail_input):
15217 * w32term.c (x_delete_terminal):
15218 * xfns.c (Fx_create_frame, x_create_tip_frame):
15219 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
15220
152212007-09-20 Glenn Morris <rgm@gnu.org>
15222
15223 * process.c (Fmake_network_process): Doc fix.
15224
152252007-09-19 Jason Rumney <jasonr@gnu.org>
15226
15227 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
15228
152292007-09-19 Michaël Cadilhac <michael@cadilhac.name>
15230
15231 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
15232 Fix a C warning regarding variable constness.
15233
15234 * xterm.c (handle_one_xevent): Fix a C warning.
15235
152362007-09-18 Jason Rumney <jasonr@gnu.org>
15237
15238 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
15239
152402007-09-17 Jan Djärv <jan.h.d@swipnet.se>
15241
15242 * gtkutil.c (gdpy_def): New variable.
15243 (xg_initialize): Initialize gdpy_def.
15244 (xg_display_close): If no other display exists, set gdpy_def to a
15245 new connection.
15246
152472007-09-16 Jan Djärv <jan.h.d@swipnet.se>
15248
15249 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
15250 when we have no file name for the icon.
15251 (xg_tool_bar_expose_callback): Remove.
15252 (xg_create_tool_bar): Don't connect expose signal to
15253 xg_tool_bar_expose_callback.
15254 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
15255
152562007-09-16 Andreas Schwab <schwab@suse.de>
15257
15258 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
15259 values instead of zapping them.
15260
152612007-09-14 Glenn Morris <rgm@gnu.org>
15262
15263 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
15264 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
15265 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
15266 scope and rename to omfib_buffer for clarity.
15267 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
15268
152692007-09-14 Kenichi Handa <handa@m17n.org>
15270
15271 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
15272
152732007-09-13 Jason Rumney <jasonr@gnu.org>
15274
15275 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
15276
15277 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
15278
15279 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
15280 (mac_term_init): Call here instead, passing rif.
15281
152822007-09-13 Glenn Morris <rgm@gnu.org>
15283
15284 * s/hpux.h: No longer define `static' as nothing.
15285
152862007-09-13 Johan Bockgård <bojohan@gnu.org>
15287
15288 * callint.c (Fcall_interactively): Remove unused var `fun'.
15289
152902007-09-12 Romain Francoise <romain@orebokech.com>
15291
15292 * window.c (prefer_window_split_horizontally, display_buffer):
15293 Revert 2007-09-08 change.
15294
152952007-09-12 Glenn Morris <rgm@gnu.org>
15296
15297 * alloca.c: Remove file.
15298 * Makefile.in (alloca): Do not undef.
15299 (allocaobj, alloca.o): Remove.
15300 (otherobj): Remove allocaobj.
15301 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
15302 * regex.c (C_ALLOCA): Remove all references and code that was only
15303 used when this was defined.
15304 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
15305 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
15306 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
15307
15308 * Makefile.in (SOURCES, unlock, relock): Delete.
15309
15310 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
15311 (menu_grab_callback): All uses changed.
15312
15313 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
15314 (x_reply_selection_request): All uses changed.
15315
153162007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * lread.c (load_warn_old_style_backquotes): Change message to look
15319 better when it appears in the middle of byte-compiler messages.
15320
153212007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
15322
15323 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
15324
15325 * xterm.c (x_create_terminal): Add comment.
15326
15327 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
15328
153292007-09-10 Richard Stallman <rms@gnu.org>
15330
15331 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
15332
153332007-09-10 Michaël Cadilhac <michael@cadilhac.name>
15334
15335 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
15336 (DEFUN): Document `intspec', use it instead of `prompt'.
15337
15338 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
15339
15340 * data.c (Finteractive_form): If the interactive specification starts
15341 with a `(', use it as a Lisp form.
15342
15343 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
15344 name and file modes.
15345
15346 * callint.c (Fcall_interactively): Comment fixes.
15347
153482007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
15349
15350 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
15351 and compiled functions.
15352
153532007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
15354
15355 * window.c (prefer_window_split_horizontally): New variable.
15356 (display_buffer): Consider splitting window horizontally depending
15357 on prefer_window_split_horizontally.
15358
153592007-09-08 Eli Zaretskii <eliz@gnu.org>
15360
15361 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
15362
153632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15364
15365 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
15366
15367 * frame.c (x_set_frame_parameters): Check number is positive before
15368 using XFASTINT.
15369
15370 * window.c (freeze_window_start): Don't presume selected_window holds
15371 a window object.
15372 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
15373
153742007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
15375
15376 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
15377
153782007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15379
15380 * window.c (Vsplit_window_preferred_function): New var.
15381 (Fdisplay_buffer): Use it.
15382 (syms_of_window): Export, and initialize it.
15383
153842007-09-06 Pixel <pixel@mandriva.com> (tiny change)
15385
15386 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
15387
153882007-09-06 Glenn Morris <rgm@gnu.org>
15389
15390 * gtkutil.c (menu_grab_callback) <cnt>:
15391 * xselect.c (x_reply_selection_request) <cnt>: Move static
15392 variable to file scope.
15393
153942007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
15395
15396 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
15397 consistent values of selected_frame and selected_window.
15398
153992007-09-04 Jason Rumney <jasonr@gnu.org>
15400
15401 * w32console.c (initialize_w32_display): Zero unused hooks.
15402
154032007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15404
15405 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
15406 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
15407
154082007-09-04 Jason Rumney <jasonr@gnu.org>
15409
15410 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
15411 in w32console.c. Set up input. Remove XXX comments that have been
15412 confirmed as correct.
15413
15414 * s/ms-w32.h (MULTI_KBOARD): Define.
15415
15416 * w32console.c (one_and_only_w32cons): Remove.
15417 (initialize_w32_display): Take terminal argument.
15418
15419 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
15420 initialize_w32_display.
15421 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
15422
15423 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
15424
15425 * keyboard.c (discard_mouse_events): Discard it.
15426 (make_lispy_event): Translate it to a lisp event.
15427 (lispy_wheel_names): Add wheel-left and right events.
15428 (syms_of_keyboard): Enlarge wheel_syms.
15429
15430 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
15431 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
15432
15433 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
15434
15435 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
15436 from WM_MOUSEHWHEEL.
15437 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
15438
15439 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
15440 terminal.
15441
15442 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
15443 keyboard for the terminal.
15444
154452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15446
15447 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
15448 (Vresume_tty_hook): Rename from Vresume_tty_functions.
15449 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
15450 and resume-tty-function to resume-tty-hook.
15451 (Fsuspend_tty, Fresume_tty): Use new names.
15452
154532007-09-02 Jan Djärv <jan.h.d@swipnet.se>
15454
15455 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
15456 if it starts with "n:".
15457
154582007-08-31 Jan Djärv <jan.h.d@swipnet.se>
15459
15460 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
15461
154622007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15463
15464 * frame.h:
15465 * frame.c (Qterm_environment_variable): Remove.
15466 (syms_of_frame): Don't init and staticpro it.
15467
15468 * callproc.c (getenv_internal): Remove special case for $TERM.
15469
15470 * callproc.c (Vinitial_environment): New variable.
15471 (set_initial_environment): Initialize it.
15472 (syms_of_callproc): Declare it.
15473 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
15474 TERM under which a process runs is never related to the TERM in which
15475 Emacs is running.
15476
154772007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15478
15479 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
15480 * s/darwin.h: ... do it here.
15481
154822007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
15483
15484 * lisp.h (set_initial_environment): Rename from set_global_environment.
15485
15486 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
15487 removed by mistake on the multi-tty branch.
15488
15489 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
15490 (Fmodify_frame_parameters): Return a value.
15491
15492 * image.c (png_load): Comment-out var only used in commented-out code.
15493
15494 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
15495 before passing it to mark_object.
15496
15497 * xfaces.c (internal_resolve_face_name): Return a value.
15498 (internal_resolve_face_name, resolve_face_name_error): Comment out.
15499
15500 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
15501 (x_icon): Comment-out var only used in commented-out code.
15502
155032007-08-29 Romain Francoise <romain@orebokech.com>
15504
15505 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
15506 QUIT hasn't been provided.
15507
155082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15509
15510 * callproc.c (child_setup, getenv_internal): Use the
15511 display-environment-variable and term-environment-variable frame params.
15512 (set_initial_environment): Initialise Vprocess_environment.
15513
15514 * config.in: Disable multi-keyboard support on a mac.
15515
15516 * frame.c (Qterm_environment_variable)
15517 (Qdisplay_environment_variable): New variables.
15518 (syms_of_frame): Intern and staticpro them.
15519 (Fmake_terminal_frame): Disable output method test.
15520
15521 * frame.h: Declare them here.
15522
15523 * macfns.c (x_set_mouse_color): Get rif from the frame.
15524 (x_set_tool_bar_lines): Don't use updating_frame.
15525 (mac_window): Add 2 new parameters for consistency with other systems.
15526 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
15527 frame parameters following what is done in X11 and w32. Don't use
15528 FRAME_MAC_DISPLAY_INFO.
15529 (Fx_open_connection, start_hourglass): Remove window-system check.
15530 (x_create_tip_frame): Get the keyboard from the terminal.
15531
15532 * macmenu.c: Reorder includes.
15533 (Fx_popup_menu): Use terminal specific mouse_position_hook.
15534
15535 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
15536 terminal parameter.
15537 (x_clear_frame): Add a frame parameter.
15538 (note_mouse_movement): Get rif from the frame.
15539 (mac_term_init): Initialize the terminal.
15540 (mac_initialize): Make static and move terminal initialization ...
15541 (mac_create_terminal): ... to this new function.
15542
15543 * macterm.h (struct mac_display_info): Add terminal.
15544 (mac_initialize): Delete declaration.
15545
15546 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
15547
15548 * sysdep.c: Comment out text after #endif.
15549
15550 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
15551 is defined. Better initialize ttys in windows. Use terminal
15552 specific mouse_position_hook.
15553
15554 * termhooks.h (union display_info): Add mac_display_info.
15555
15556 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
15557 Set the default minibuffer frame, window_system and the rest of the
15558 frame parameters following what is done in X11.
15559
15560 * w32term.c (w32_initialize): Make static.
15561
15562 * xselect.c (x_handle_selection_clear): Only access
15563 terminal->kboard when MULTI_KBOARD is defined.
15564
15565 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
15566 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
15567
155682007-08-29 Jason Rumney <jasonr@gnu.org>
15569
15570 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
15571 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
15572
15573 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
15574 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
15575
15576 * keyboard.c (restore_kboard_configuration): Only define when
15577 MULTI_KBOARD defined.
15578
15579 * makefile.w32-in: Update dependancies from Makefile.in.
15580 (OBJ1): Add terminal.$(O)
15581
15582 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
15583 Don't define function body.
15584 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
15585
15586 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
15587
15588 * w32.c (request_sigio, unrequest_sigio): Remove.
15589
15590 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
15591 (w32con_clear_frame, w32con_clear_end_of_line)
15592 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
15593 (w32con_delete_glyphs, w32con_set_terminal_window)
15594 (scroll_line, w32_sys_ring_bell): Add frame arg.
15595 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
15596 Add terminal arg.
15597 (PICK_FRAME): Remove.
15598 (w32con_write_glyphs): Use frame specific terminal coding.
15599 (one_and_only_w32cons): New global variable.
15600 (initialize_w32_display): Use it for storing hooks.
15601 (create_w32cons_output): New function.
15602
15603 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
15604 arg a frame.
15605
15606 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
15607 Set window_system.
15608 (x_set_tool_bar_lines): Don't use updating_frame.
15609 (Fx_create_frame): Set terminal and ref count.
15610 (Fx_open_connection): Remove window-system check.
15611
15612 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
15613
15614 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
15615 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
15616 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
15617 Add frame arg.
15618 (x_delete_terminal, w32_create_terminal): New functions.
15619 (w32_term_init): Create a terminal.
15620 (w32_initialize): Move terminal specific initialization to
15621 w32_create_terminal.
15622
15623 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
15624 (w32_clear_rect, w32_clear_area): Use background from frame.
15625 (w32_display_info): Add terminal.
15626 (w32_sys_ring_bell, x_delete_display): Declare here.
15627
15628 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
15629
15630 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
15631
156322007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
15633
15634 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
15635 Fix get_named_tty calls for the controlling tty.
15636
156372007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
15638
15639 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
15640
156412007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
15642
15643 * term.c (tty_insert_glyphs): Add missing first parameter.
15644
156452007-08-29 Károly Lőrentey <karoly@lorentey.hu>
15646
15647 * buffer.c (Fbuffer_list, Fbury_buffer):
15648 Take frame->buried_buffer_list into account.
15649
15650 * cm.c (current_tty): New variable, for cmputc().
15651 (cmputc): Use it.
15652 (cmcheckmagic): Add tty parameter, look up terminal streams there.
15653 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
15654 (cmgoto): Add tty parameter. Pass it on to calccost().
15655 Use emacs_tputs() instead of tputs().
15656
15657 * cm.h (emacs_tputs): New macro to set current_tty, and then call
15658 tputs().
15659 (current_tty): New variable, for cmputc().
15660 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
15661
15662 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
15663 (internal_condition_case, internal_condition_case_1)
15664 (internal_condition_case_2): Don't abort when x_catching_errors.
15665
15666 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
15667 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
15668 prevent crashes caused by bogus longjmps in read_char.
15669
15670 * keymap.h (Fset_keymap_parent): Add EXFUN.
15671
15672 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
15673 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15674 Remove redundant definition.
15675
15676 * macfns.c (x_set_mouse_color, x_make_gc):
15677 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15678
15679 * w32term.c (x_free_frame_resources):
15680 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15681 (w32_initialize): Use the accessor macros for terminal characteristics.
15682
15683 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
15684 Use the accessor macros for terminal characteristics.
15685 * msdos.c (internal_terminal_init): Use the accessor macros for
15686 terminal characteristics.
15687 (ScreenVisualBell, internal_terminal_init):
15688 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15689
15690 * termopts.h (no_redraw_on_reenter): Declare.
15691
15692 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
15693 (mark_terminals, mark_ttys): Declare.
15694 (Fgarbage_collect): Call them.
15695 (mark_object): Mark buried_buffer_list.
15696
15697 * prefix-args.c: Include stdlib.h for exit.
15698
15699 * syssignal.h: Add comment.
15700
15701 * indent.c: Include stdio.h.
15702
15703 * window.h (Vinitial_window_system): Declare.
15704 (Vwindow_system): Delete declaration.
15705
15706 * fontset.c (Finternal_char_font): Use FRAME_RIF.
15707
15708 * image.c (lookup_image): Don't initialize `c' until the xasserts
15709 have been run.
15710
15711 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
15712 FRAME_FOREGROUND_PIXEL.
15713
15714 * print.c (print_preprocess): Don't lose print_depth levels while
15715 iterating.
15716
15717 * widget.c (update_from_various_frame_slots):
15718 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15719
15720 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
15721 frames.
15722 (window_internal_height): Remove bogus make_number call.
15723 (init_window_once): Call make_terminal_frame with two zero parameters.
15724
15725 * fileio.c (Fread_file_name): Update comment.
15726
15727 * callint.c (Fcall_interactively):
15728 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
15729 Make sure it is correctly unwound.
15730
15731 * xsmfns.c (x_session_close): New function.
15732
15733 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
15734 Delete declarations.
15735
15736 * xterm.h: Remove declaration for x_fully_uncatch_errors.
15737 (x_output): Remove background_pixel and foreground_pixel fields.
15738 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
15739 (x_delete_device, x_session_close): Declare.
15740
15741 * lread.c: Include setjmp.h. Update declaration of `read_char'.
15742 (read_filtered_event): Call `read_char' with a local
15743 `wrong_kboard_jmpbuf'.
15744
15745 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
15746 Don't call single_kboard_state. Use FRAME_RIF.
15747
15748 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
15749 systems.
15750
15751 * lisp.h (set_process_environment): Rename to `set_global_environment'.
15752 (Fframe_with_environment, Fset_input_meta_mode)
15753 (Fset_quit_char): EXFUN.
15754 (x_create_device, tty_output, terminal, tty_display_info): Declare.
15755 (init_sys_modes, reset_sys_modes): Update prototypes.
15756 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
15757
15758 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
15759 Vlocal_key_translation_map, and Vkeyboard_translate_table.
15760 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
15761 Delete declarations.
15762 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
15763 (temporarily_switch_to_single_kboard, tty_read_avail_input):
15764 New declarations.
15765
15766 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
15767 already does that during init_display(). Call syms_of_keymap
15768 before syms_of_keyboard. Call `syms_of_terminal'.
15769 Call set_initial_environment, not set_process_environment.
15770 (shut_down_emacs): Call reset_all_sys_modes() instead of
15771 reset_sys_modes().
15772
15773 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
15774 (internal_resolve_face_name, resolve_face_name_error): New functions.
15775 (resolve_face_name): Protect against loops and errors thrown by Fget.
15776 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
15777 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
15778
15779 * scroll.c: Replace CURTTY() with local variables throughout the
15780 file (where applicable).
15781 (calculate_scrolling, calculate_direct_scrolling)
15782 (scrolling_1, scroll_cost): Use the accessor macros for terminal
15783 characteristics.
15784
15785 * keymap.c (Vfunction_key_map): Remove.
15786 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
15787 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
15788 (Vkey_translation_map): Remove.
15789 (syms_of_keymap): Remove DEFVAR for key-translation-map.
15790 (Fdescribe_buffer_bindings)
15791 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
15792 Update for terminal-local key-translation-map.
15793
15794 * Makefile.in (callproc.o): Update dependencies.
15795 (lisp, shortlisp): Add termdev.elc.
15796 (obj): Add terminal.o.
15797 (terminal.o): Add dependencies.
15798 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
15799 (data.o, fns.o): Add termhooks.h dependency.
15800 (SOME_MACHINE_LISP): Add dnd.elc.
15801 (minibuf.o): Fix typo.
15802 Update dependencies.
15803
15804 * data.c (do_symval_forwarding, store_symval_forwarding)
15805 (find_symbol_value): Use the selected frame's keyboard, not
15806 current_kboard.
15807
15808 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
15809 Vwindow_system.
15810
15811 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
15812 Fmenu_bar_open.
15813 (syms_of_xmenu): Update defsubr.
15814 (mouse_position_for_popup, Fx_popup_menu)
15815 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
15816 (set_frame_menubar, free_frame_menubar)
b97439ce 15817 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
15818 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
15819 an X frame.
15820
15821 * xselect.c (x_own_selection): Abort if not an X frame.
15822 (some_frame_on_display): Check if it is an X frame.
15823 (x_handle_selection_clear): Deal with MULTI_KBOARD.
15824
15825 * coding.c: Include frame.h and termhooks.h.
15826 (terminal_coding, keyboard_coding): Delete.
15827 (Fset_terminal_coding_system_internal)
15828 (Fset_keyboard_coding_system_internal)
15829 (Fkeyboard_coding_system)
15830 (Fterminal_coding_system): Add a terminal parameter.
15831 Get terminal_coding from the terminal.
15832 (init_coding_once): Don't call setup_coding_system here.
15833
15834 * dispextern.h (set_scroll_region, turn_off_insert)
15835 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
15836 (tty_clear_end_of_line, tty_setup_colors)
15837 (delete_tty, updating_frame)
15838 (produce_special_glyphs, produce_glyphs, write_glyphs)
15839 (insert_glyphs): Remove.
15840 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
15841 (tty_turn_off_highlight, get_tty_size): Add declaration.
15842 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
15843
15844 * frame.h (enum output_method): Add output_initial.
15845 (struct x_output): Delete.
15846 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15847 Access foreground_pixel and background_pixel directly from the frame.
15848 (tty_display): Delete.
15849 (struct frame): Add buried_buffer_list, foreground_pixel,
15850 background_pixel and terminal. Delete kboard.
15851 (union output_data): Add tty.
15852 (FRAME_KBOARD): Get the kboard from the terminal.
15853 (FRAME_INITIAL_P): New macro.
15854 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
15855 (Qterm_environment_variable, Qdisplay_environment_variable)
15856 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
15857 New declarations.
15858
15859 * termchar.h (tty_output, tty_display_info): New structures.
15860 (tty_list): Declare.
15861 (FRAME_TTY, CURTTY): New macros.
15862 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
15863 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
15864 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
15865 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
15866
15867 * callproc.c: Include frame.h and termhooks.h, for terminal
15868 parameters.
15869 (add_env): New function.
15870 (child_setup): Use it.
15871 (child_setup, getenv_internal): Handle the new Vprocess_environment.
15872 (getenv_internal): Fix get_terminal_param call.
15873 (Fgetenv_internal, egetenv): Update doc.
15874 (syms_of_callproc): Initialize Vprocess_environment to nil.
15875 Register and initialize them. Remove obsolete defvars. Update doc
15876 strings.
15877 (child_setup): Handle Vlocal_environment_variables.
15878 (getenv_internal): Add terminal parameter.
15879 Handle Vlocal_environment_variables.
15880 (Fgetenv_internal): Add terminal parameter.
15881 (child_setup, getenv_internal, Fgetenv_internal): Store the local
15882 environment in a frame (not terminal) parameter. Update doc strings.
15883 (set_initial_environment): Rename from set_global_environment.
15884 Store Emacs environment in initial frame parameter.
15885
15886 * xdisp.c (redisplay_internal): Update references to
15887 `previous_terminal_frame'.
15888 (display_mode_line, Fformat_mode_line): Replace calls to
15889 `push_frame_kboard' with `push_kboard'.
15890 (get_glyph_string_clip_rects): Add extra parentheses and
15891 braces to prevent compiler warnings.
15892 (calc_pixel_width_or_height): Add xassert to check that the
15893 frame is alive. Don't call `lookup_image' on a termcap frame.
15894 (message2_nolog, message3_nolog, redisplay_internal)
15895 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
15896 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
15897 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
15898 (Fx_display_pixel_width, Fx_display_pixel_height)
15899 (Fx_display_planes, Fx_display_color_cells)
15900 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
15901 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
15902 (Fx_display_backing_store, Fx_display_visual_class)
15903 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
15904 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
15905
15906 * xfns.c (x_set_foreground_color x_set_background_color)
15907 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
15908 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15909 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
15910 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
15911 terminal that is being deleted.
15912 (Fx_create_frame): Use `store_frame_param' to set `window-system'
15913 frame parameter, and make sure it overrides any user-supplied setting.
15914 (Fx_close_connection, Fx_synchronize): Unify argument names with
15915 the rest of the DEFUNs.
15916
15917 * dispnew.c (Fsend_string_to_terminal): Update call to
15918 `get_tty_terminal'.
15919 (Fredraw_frame, Fsend_string_to_terminal)
15920 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
15921 FRAME_TERMCAP_P and FRAME_TTY.
15922 (window_change_signal): Don't believe width/height values that are
15923 impossibly small.
15924 (Vinitial_window_system): Rename from Vwindow_system.
15925 (termscript, Wcm, rif): Delete.
15926
15927 * termhooks.h (struct terminal): New struct containing the
15928 previously global text display hooks and new members NAME,
15929 DELETED and PARAM_ALIST.
15930 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
15931 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
15932 (FRAME_RIF): New macros.
15933 (get_terminal_param, get_device): New declarations.
15934 (termscript): Delete declaration.
15935
15936 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
15937 (XTflash, x_free_frame_resources, x_scroll_bar_create)
15938 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
15939 FRAME_FOREGROUND_PIXEL.
15940 (x_fully_uncatch_errors): Disable definition.
15941 (x_scroll_bar_expose): Fix reference to foreground pixel.
15942 (XTread_socket): Disable loop on all X displays.
15943 (x_delete_terminal): Don't set terminal->deleted and let
15944 delete_terminal delete the frames on the terminal.
15945 (x_delete_display): Doc update to reflect changes in
15946 delete_terminal.
15947 (x_display_info) <terminal>: Move member earlier in the struct.
15948 (deleting_tty): Remove old variable.
15949 (Fsuspend_tty): Call clear_tty_hooks.
15950 (Fresume_tty, init_tty): Call set_tty_hooks.
15951 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
15952 errors on X frames.
15953 (x_catch_errors_unwind): Abort if x_error_message is NULL.
15954 (handle_one_xevent): Initialize `f' to NULL.
15955 (x_delete_terminal, x_create_terminal): New functions.
15956 (XTset_terminal_modes, XTreset_terminal_modes)
15957 (XTread_socket, x_connection_closed, x_term_init)
15958 (x_term_init, x_delete_display): Add terminal parameter.
15959 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
15960 X connections.
15961
15962 * frame.c: Include termchar.h.
15963 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
15964 (Qwindow_system, Qenvironment, Qterm_environment_variable)
15965 (Qdisplay_environment_variable): New vars.
15966 (Fframep): Deal with output_initial.
15967 (Fframe-live-p): Doc fix.
15968 (Fwindow-system): New function.
15969 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
15970 (make_terminal_frame): Don't create frames on a terminal that is
15971 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15972 (store_frame_param): Check for found_for_frame before calling XFRAME.
15973 (Fmake_terminal_frame): Handle NULL tty names correctly.
15974 (syms_of_frame): Enhance doc string of `default-frame-alist'.
15975 (Fdelete_frame): Remove unused variable `count'. Don't allow other
15976 frames to refer to a deleted frame in their 'environment parameter.
15977 (Fframe_with_environment): New function.
15978 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
15979 (get_future_frame_param): New function.
15980 (Fmake_terminal_frame): Use it.
15981 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
15982
15983 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
15984 * sysdep.c (reset_sys_modes): Update for renames.
15985
15986 * keyboard.c (tty_read_avail_input): New function.
15987 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
15988 (syms_of_keyboard): Defsubr them.
15989 (Fset_input_meta_mode, Fset_quit_char): New functions.
15990 (Fset_input_mode): Split to above functions.
15991 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
15992 parameter. Use it in call to `read_char'.
15993 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
15994 Set wrong_kboard_jmpbuf correctly in recursive calls.
15995 Use current_kboard to access Vkeyboard_translate_table.
15996 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
15997 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
15998 Update longjmp invocations. Remember the original current_kboard,
15999 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16000 changes it. Comment out unnecessary calls to
16001 `record_single_kboard_state' and `any_kboard_state'.
16002 Update recursive calls.
16003 (wrong_kboard_jmpbuf): Remove global variable.
16004 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16005 Handle deleted interrupted_kboards correctly; that is a legal
16006 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16007 and read_char calls. Abort if interrupted_kboard died in read_char.
16008 (any_kboard_state, single_kboard_state)
16009 (push_frame_kboard): Remove function.
16010 (pop_kboard): Switch out of single_kboard mode if the kboard has
16011 been deleted. Remove unused variable. Help debugging by not
16012 changing current_kboard unnecessarily. Set current_kboard to the
16013 kboard of the selected frame when the stored kboard object has
16014 been deleted before pop_kboard.
16015 (temporarily_switch_to_single_kboard): Change first parameter to a
16016 frame pointer. Throw an error when caller wants to change kboards
16017 while in single_kboard mode. Don't push_kboard if we weren't in
16018 single kboard state. Don't pop_kboard if we popped into any
16019 kboard state.
16020 (restore_kboard_configuration): Abort if pop_kboard changed the
16021 kboard in single_kboard mode. Call pop_kboard only after setting
16022 up single_kboard mode.
16023 (Frecursive_edit): Switch to single_kboard mode only in nested
16024 command loops.
16025 (cmd_error, command_loop, command_loop_1, timer_check):
16026 Comment out unnecessary call to `any_kboard_state' and
16027 `record_single_kboard_state'.
16028 (delete_kboard): Exit single_kboard mode if we have just deleted
16029 that kboard. Use FRAME_KBOARD.
16030 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16031 `fatal_error_signal'.
16032 (record_single_kboard_state): Don't push_kboard if we weren't in
16033 single kboard state. Don't pop_kboard if we popped into any
16034 kboard state.
16035 (push_frame_kboard): Rename to push_kboard.
16036 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16037 (read_avail_input): Read input from all terminals.
16038 (mark_kboards): Also mark Vkeyboard_translate_table.
16039 (kbd_buffer_store_event_hold): Simplify condition.
16040 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16041 (Vkeyboard_translate_table): Move to struct kboard.
16042 (init_kboard): Initialize Vkeyboard_translate_table.
16043 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16044 Vkeyboard_translate_table. Update doc strings. Update docs of
16045 local-function-key-map and function-key-map.
16046
16047 * terminal.c: New file.
16048
16049 * term.c: Include errno.h.
16050 (Vring_bell_function, device_list, initial_device)
16051 (next_device_id, ring_bell, update_begin, update_end)
16052 (set_terminal_window, cursor_to, raw_cursor_to)
16053 (clear_to_end, clear_frame, clear_end_of_line)
16054 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16055 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16056 (syms_of_term): Move their initialization to terminal.c.
16057 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16058 (Ftty_display_color_cells)
16059 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16060 (clear_tty_hooks, set_tty_hooks)
16061 (init_tty, maybe_fatal): New functions.
16062 (Ftty_type): Return nil if terminal is not on a tty instead of
16063 throwing an error. Doc update.
16064 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16065 Doc update. Initialize new subrs and variables.
16066 (delete_tty): Use terminal->deleted.
16067 (tty_set_terminal_modes): Rename from set_terminal_modes.
16068 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16069 (set_scroll_region): Rename to `tty_set_scroll_region'.
16070 (turn_on_insert): Rename to `tty_turn_on_insert'.
16071 (turn_off_insert): Rename to `tty_turn_off_insert'.
16072 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16073 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16074 (toggle_highligh): Rename to `tty_toggle_highlight'.
16075 (background_highlight): Rename to `tty_background_highlight'.
16076 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16077 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16078 (tty_set_scroll_region, tty_background_highlight)
16079 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16080 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16081 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16082 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16083 Add static modifier.
16084 (tty_reset_terminal_modes, tty_set_terminal_window)
16085 (tty_set_scroll_region, tty_background_highlight)
16086 (tty_highlight_if_desired, tty_cursor_to)
16087 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16088 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16089 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16090 renames.
16091
160922007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16093
16094 * keyboard.c: Qrtl is new.
16095 (parse_tool_bar_item): Handle :rtl keyword.
16096 (syms_of_keyboard): Intern :rtl keyword.
16097
16098 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
16099
16100 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
16101 so no Lisp code is executed.
16102 (file_for_image, find_rtl_image): New functions.
16103 (xg_get_image_for_pixmap): Use file_for_image.
16104 (update_frame_tool_bar): If direction is RTL, use RTL image if
16105 defined. Use Gtk stock images if defined.
16106
161072007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16108
16109 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
16110 for nonexistent or zero-width glyph in composition glyph.
16111
161122007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
16113
16114 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
16115
16116 * xdisp.c (Finvisible_p): New function.
16117 (syms_of_xdisp): defsubr it.
16118
161192007-08-24 Juanma Barranquero <lekktu@gmail.com>
16120
16121 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
16122 Doc fixes.
16123
161242007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16125
16126 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
16127
161282007-08-24 Martin Rudalics <rudalics@gmx.at>
16129
16130 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
16131 whether decoding has modified buffer contents.
16132
161332007-08-24 Jason Rumney <jasonr@gnu.org>
16134
16135 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
16136 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
16137 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
16138 (init_svg_functions) [HAVE_NTGUI]: New function.
16139 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
16140 (svg_load_image): Use them.
16141 (svg_load_image) [HAVE_NTGUI]: Implement background.
16142
161432007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16144
16145 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
16146 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
16147 (LIBX): Remove @RSVG_LIBS@.
16148 (LIBES): Add $(RSVG_LIBS).
16149
16150 * image.c (svg_load_image): Blend with specified background if exists.
16151 Use IMAGE_BACKGROUND. Add Mac OS Support.
16152
16153 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
16154 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
16155 Remove macros.
16156 [MAC_OSX] (socket_callback): Do nothing.
16157 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
16158 ReceiveNextEvent.
16159 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
16160 socket_callback.
16161 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
16162
161632007-08-22 Glenn Morris <rgm@gnu.org>
16164
16165 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
16166
161672007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
16168
16169 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
16170
16171 * image.c: Add support for SVG images. Some additional comments
16172 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
16173 (svg_image_p): New function to test for SVG image.
16174 (svg_load): New function to load SVG image.
16175 (svg_load_image): New function, helper for svg_load.
16176 (Qsvg): New Lisp_object.
16177 (svg_keyword_index): New enum.
16178 (svg_format): New static `image_keyword' struct.
16179 (svg_type): New static `image_type' struct.
16180 (librsvg/rsvg.h): Include it.
16181
161822007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
16183
16184 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
16185
161862007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16187
16188 * lread.c (Qold_style_backquotes): New var.
16189 (syms_of_lread): Init and staticpro it.
16190 (load_warn_old_style_backquotes): New fun.
16191 (Fload): Use them to warn about old style backquotes.
16192 (end_of_file_error, Fload): Remove unused vars.
16193
16194 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
16195
16196 * lread.c (Vold_style_backquotes): New var.
16197 (syms_of_lread): Init and export it to Elisp.
16198 (read1): Set it when we find an old-style (back)quote.
16199
162002007-08-22 Jason Rumney <jasonr@gnu.org>
16201
16202 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
16203
162042007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
16205
16206 * puresize.h (BASE_PURESIZE): Increase to 1140000.
16207
162082007-08-19 Richard Stallman <rms@gnu.org>
16209
16210 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
16211
162122007-08-19 Andreas Schwab <schwab@suse.de>
16213
16214 * alloc.c (pure): Round PURESIZE up.
16215
162162007-08-17 Jan Djärv <jan.h.d@swipnet.se>
16217
16218 * xterm.c (handle_one_xevent): Remove check that mouse click is in
16219 active frame.
16220
162212007-08-16 Richard Stallman <rms@gnu.org>
16222
16223 * eval.c (Fcommandp): Add parens to clarify.
16224
16225 * minibuf.c (Fall_completions): Use enum for type of table.
16226
16227 * emacs.c (USAGE2): Improve text.
16228
162292007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
16230
16231 * term.c (tty_default_color_capabilities): Declare static
16232 variables in file scope, to avoid HPUX compiler problem.
16233
162342007-08-13 Jan Djärv <jan.h.d@swipnet.se>
16235
16236 * gtkutil.c (update_frame_tool_bar): Use -1 as index
16237 to gtk_toolbar_insert.
16238
162392007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
16240
16241 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
16242
16243 * insdel.c (reset_var_on_error): New fun.
16244 (signal_before_change, signal_after_change):
16245 Use it to reset (after|before)-change-functions to nil in case of error.
16246 Bind inhibit-modification-hooks to t.
16247 Don't bind (after|before)-change-functions to nil while they run.
16248
162492007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16250
16251 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
16252 filling pixmap with stippled background.
16253
162542007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16255
16256 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
16257 Don't use invisible frame as parent window for repositioning.
16258
162592007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
16260
16261 * print.c (new_backquote_output): Rename from old_backquote_output.
16262 (print): Inverse its logic (according to its name) so as to match the
16263 behavior of new_backquote_flag in lread.c.
16264
162652007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16266
16267 * gmalloc.c (posix_memalign): New function.
16268
16269 * macterm.c (frame_highlight, frame_unhighlight): Don't call
16270 ActivateControl/DeactivateControl here.
16271 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
16272 frame-notice-user-settings is non-nil.
16273 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
16274 for kEventParamFMFontStyle.
16275 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
16276 mac_pass_command_to_system and mac_pass_control_to_system here.
16277 (XTread_socket): Call ActivateControl/DeactivateControl here.
16278 (XTread_socket) [TARGET_API_MAC_CARBON]:
16279 Check mac_pass_command_to_system and mac_pass_control_to_system here.
16280 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
16281 for window repositioning.
16282
162832007-08-08 Glenn Morris <rgm@gnu.org>
16284
16285 * Replace `iff' in doc-strings and comments.
16286
162872007-08-07 Chong Yidong <cyd@stupidchicken.com>
16288
16289 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
16290
162912007-08-07 Martin Rudalics <rudalics@gmx.at>
16292
16293 * fileio.c (Finsert_file_contents): Run format-decode and
16294 after_insert_file_functions on entire buffer when REPLACE is
16295 non-nil and inhibit modification_hooks and point_motion_hooks.
16296 For consistency, run after_insert_file_functions iff something
16297 got inserted. Move signal_after_change and update_compositions
16298 after code running after_insert_file_functions. Make sure that
16299 undo_list doesn't record intermediate steps of the decoding process.
16300
163012007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16302
16303 * emacs.c (main)
16304 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
16305 Call malloc_enable_thread on interactive startup.
16306
16307 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
16308 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
16309 [USE_PTHREAD]: Conditionalize with it.
16310 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
16311 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
16312 New functions.
16313
163142007-08-06 Chong Yidong <cyd@stupidchicken.com>
16315
16316 * xdisp.c (redisplay_window): When restoring original buffer
16317 position, make sure it is still valid.
16318
16319 * image.c (png_load): Ignore png-supplied background color.
16320
163212007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16322
16323 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
16324 Use kCFAbsoluteTimeIntervalSince1970.
16325
16326 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
16327 New variable.
16328 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
16329 event loop should be quit.
16330 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
16331 Quit dialog event loop if quit_dialog_event_loop is set.
16332
16333 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
16334 (Selection): New typedef. Use instead of ScrapRef.
16335 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
16336 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
16337 (mac_clear_selection): Rename from clear_scrap.
16338 (get_flavor_type_from_symbol): New argument SEL and subsume function of
16339 scrap_has_target_type. All uses changed.
16340 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16341 (mac_selection_has_target_p): New functions.
16342 (mac_put_selection_value): Rename from put_scrap_string.
16343 (mac_get_selection_value): Rename from get_scrap_string.
16344 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
16345 (put_scrap_private_timestamp, scrap_has_target_type)
16346 (get_scrap_private_timestamp): Remove functions.
16347 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
16348 (x_own_selection, x_get_local_selection):
16349 Use mac_valid_selection_value_p.
16350 (x_own_selection): Don't use put_scrap_private_timestamp.
16351 Record OWNERSHIP-INFO into Vselection_alist instead.
16352 (x_get_local_selection): Don't check type if request is local.
16353 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
16354 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
16355
163562007-08-04 Jan Djärv <jan.h.d@swipnet.se>
16357
16358 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
16359 add comment explaining why.
16360
163612007-08-03 Richard Stallman <rms@gnu.org>
16362
16363 * fileio.c (Fvisited_file_modtime): Use make_time.
16364
163652007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
16366
16367 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
16368 build.
16369
163702007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
16371
16372 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
16373
163742007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
16375
16376 * puresize.h (BASE_PURESIZE): Increase to 1130000.
16377
163782007-07-30 Richard Stallman <rms@gnu.org>
16379
16380 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
16381
163822007-07-29 Jan Djärv <jan.h.d@swipnet.se>
16383
16384 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
16385
163862007-07-28 Nick Roberts <nickrob@snap.net.nz>
16387
16388 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
16389 remote default-directory.
16390
16391 * buffer.c (mode-line-format): Update doc string.
16392
163932007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16394
16395 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
16396 scroll bar gap.
16397 (x_scroll_bar_create): Set bar->fringe_extended_p.
16398 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
16399 on frame edge. Check fringe background extension. Don't clear
16400 extended fringe background area.
16401
16402 * w32term.h (struct scroll_bar): New member fringe_extended_p.
16403 (w32_fill_area): Enclose multiple statements with do ... while (0).
16404
16405 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
16406 Extend fringe background to scroll bar gap.
16407 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
16408 Set bar->fringe_extended_p.
16409 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16410 Put leftmost/rightmost scroll bars on frame edge. Check fringe
16411 background extension. Don't clear extended fringe background area.
16412
16413 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16414 New member fringe_extended_p.
16415
164162007-07-25 Glenn Morris <rgm@gnu.org>
16417
16418 * Relicense all FSF files to GPLv3 or later.
16419
16420 * COPYING: Switch to GPLv3.
16421
164222007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
16425
16426 * data.c (Finteractive_form): Check for the presence of an
16427 `interactive-form' symbol property more thoroughly.
16428
16429 * data.c (Finteractive_form): Use an `interactive-form' property if
16430 present, analogous to the function-documentation property.
16431
164322007-07-24 Jason Rumney <jasonr@gnu.org>
16433
16434 * w32fns.c (x_real_positions): Get real position from OS instead of
16435 calculating it.
16436
164372007-07-23 Jason Rumney <jasonr@gnu.org>
16438
16439 * filelock.c (current_lock_owner): Allow for @ sign in username.
16440
164412007-07-22 Nick Roberts <nickrob@snap.net.nz>
16442
16443 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
16444 remote default-directory.
16445
16446 * buffer.c (mode-line-format): Describe above case in doc string.
16447
164482007-07-20 Eli Zaretskii <eliz@gnu.org>
16449
16450 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
16451 Define if not defined.
16452
164532007-07-18 Jason Rumney <jasonr@gnu.org>
16454
16455 * w32proc.c (w32_executable_type): Handle 64 bit executables.
16456
164572007-07-18 Richard Stallman <rms@gnu.org>
16458
16459 * data.c (Fsetq_default): Doc fix.
16460
16461 * eval.c (Fsetq): Doc fix.
16462
164632007-07-18 Juanma Barranquero <lekktu@gmail.com>
16464
16465 * coding.c (Ffind_operation_coding_system):
16466 * eval.c (For, Fand): Doc fixes.
16467 Reported by Johan Bockgård.
16468
164692007-07-18 Jan Djärv <jan.h.d@swipnet.se>
16470
16471 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
16472
16473 * xterm.h: Declare x_ewmh_activate_frame.
16474
16475 * xterm.c (x_ewmh_activate_frame): New function.
16476 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
16477
164782007-07-17 Martin Rudalics <rudalics@gmx.at>
16479
16480 * window.c (Fdisplay_buffer): If largest or LRU window is the
16481 only window, split it even if it is not eligible for splitting.
16482 This restores the original behavior broken by the 2007-07-15
16483 change.
16484
164852007-07-17 Glenn Morris <rgm@gnu.org>
16486
16487 * abbrev.c (abbrev_check_chars): New function.
16488 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16489 Call abbrev_check_chars to check abbrev characters are word
16490 constituents. Doc fix.
16491
164922007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16493
16494 * process.c (Fstart_process, Fmake_network_process)
16495 (read_process_output): Fix up last changes.
16496
164972007-07-16 Eli Zaretskii <eliz@gnu.org>
16498
16499 * makefile.w32-in (clean): Don't delete *~.
16500
165012007-07-16 Andreas Schwab <schwab@suse.de>
16502
16503 * window.c (Fdisplay_buffer): Use NILP.
16504 (Fset_window_scroll_bars): Likewise.
16505
165062007-07-15 Martin Rudalics <rudalics@gmx.at>
16507
16508 * window.c (window_min_size_2): New function.
16509 (window_min_size_1, size_window, Fdisplay_buffer)
16510 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
16511 windows without mode- or header-lines when window-min-height is
16512 too small.
16513 (size_window): Reset nodelete_p after testing it, following an
16514 earlier note by Kim F. Storm.
16515 (display_buffer): Do not set split_height_threshold to twice the
16516 value of window_min_height to avoid changing the value of a
16517 customizable variable. Rather explicitly check whether the
16518 height of the window that shall be splitted is at least as large
16519 as split_height_threshold.
16520 (Fwindow_full_width_p): New defun.
16521 (syms_of_window): Defsubr it.
16522
16523 * window.h: Add EXFUN for Fwindow_full_width_p.
16524
165252007-07-14 Jason Rumney <jasonr@gnu.org>
16526
16527 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
16528
165292007-07-14 Richard Stallman <rms@gnu.org>
16530
16531 * eval.c (maybe_call_debugger): New function.
16532 (find_handler_clause): Use maybe_call_debugger.
16533 Call it when the handler says `debug'.
16534 Eliminate DEBUGGER_VALUE_PTR.
16535 (Fsignal): Eliminate debugger_value.
16536 (Qdebug): New variable.
16537 (syms_of_eval): Initialize it.
16538
165392007-07-14 Juanma Barranquero <lekktu@gmail.com>
16540
16541 * eval.c (Fprogn):
16542 * keyboard.c (Ftrack_mouse):
16543 * print.c (Fwith_output_to_temp_buffer):
16544 * window.c (Fsave_window_excursion): Doc fix.
16545
165462007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
16547
16548 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
16549
165502007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * process.h (struct Lisp_Process): Turn slots infd, outfd,
16553 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
16554 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
16555 read_output_delay, and read_output_skip from Lisp_Objects to ints.
16556 Remove unused encoding_carryover.
16557 * process.c: Adjust all functions accordingly.
16558
165592007-07-12 Richard Stallman <rms@gnu.org>
16560
16561 * term.c: Include unistd.h only if HAVE_UNISTD_H.
16562
165632007-07-11 Jason Rumney <jasonr@gnu.org>
16564
16565 * makefile.w32-in (LIBS): Include OLE32.
16566
16567 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
16568 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
16569
165702007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
16571
16572 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
16573 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
16574 from a Lisp_Object into a bare pointer.
16575 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16576 Adjust the code correspondingly.
16577
16578 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
16579
16580 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
16581 (term_show_mouse_face): Remove unused var `j'.
16582 (handle_one_term_event): Remove unused vars `i' and `j'.
16583 Don't cast return value of ttyname since it's not necessary.
16584
165852007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
16586
16587 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
16588 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
16589
16590 * fns.c (map_char_table): Use an array of int for `indices' rather than
16591 an array of Lisp_Objects (which are only ever integers anyway).
16592 (Fmap_char_table): Update caller.
16593 * lisp.h: Update prototype.
16594 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
16595 * fontset.c (Ffontset_info):
16596 * casetab.c (set_case_table): Update callers.
16597
16598 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
16599
16600 * keymap.c (struct accessible_keymaps_data)
16601 (struct where_is_internal_data): New structures.
16602 (accessible_keymaps_1, where_is_internal_1): Use them to change
16603 interface to adhere to the one used by map_keymap.
16604 (Faccessible_keymaps, where_is_internal): Use map_keymap.
16605 (accessible_keymaps_char_table, where_is_internal_2): Remove.
16606
16607 * keymap.h (map_keymap_function_t): More informative prototype.
16608
166092007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
16610
16611 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
16612 (looking_at_1): Don't change search_regs and last_thing_searched
16613 if `inhibit-changing-match-data' is non-nil.
16614 (string_match_1, search_buffer, set_search_regs): Likewise.
16615 (syms_of_search): Add Lisp level definition for
16616 `inhibit-changing-match-data' and set it to nil.
16617 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
16618 start and end of the match, instead of using values in search_regs.
16619
166202007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
16621
16622 * minibuf.c (Fcompleting_read): New value `confirm-only'
16623 for `require-match'.
16624
166252007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
16626
16627 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
16628 part of the 2007-06-27 change to syms_of_fileio.
16629
166302007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16631
16632 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
16633 Check WINDOWP before using XWINDOW. Consolidate return statements.
16634
166352007-06-27 Richard Stallman <rms@gnu.org>
16636
16637 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
16638
166392007-06-27 Juanma Barranquero <lekktu@gmail.com>
16640
16641 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
16642
166432007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16644
16645 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
16646 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
16647 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
16648 (_free_internal, memalign): Use them.
16649 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
16650 Initialize to PTHREAD_MUTEX_INITIALIZER.
16651 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
16652 (morecore_nolock): Rename from morecore. All uses changed.
16653 Use only nolock versions of internal allocation functions.
16654 (_malloc_internal_nolock, _realloc_internal_nolock)
16655 (_free_internal_nolock): New functions created from
16656 _malloc_internal, _realloc_internal, and _free_internal.
16657 (_malloc_internal, _realloc_internal, _free_internal): Use them.
16658 Copy hook value to automatic variable before its use.
16659 (memalign): Copy hook value to automatic variable before its use.
16660
166612007-06-26 Kenichi Handa <handa@m17n.org>
16662
16663 * coding.c (Ffind_operation_coding_system): Docstring improved.
16664 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
16665
166662007-06-25 David Kastrup <dak@gnu.org>
16667
16668 * keymap.c (Fcurrent_active_maps): Add `position' argument.
16669 (Fwhere_is_internal): Adjust call to `current-active-maps' to
16670 cater for additional parameter.
16671
16672 * keymap.h: Adjust number of parameters to `current-active-maps'.
16673
16674 * doc.c (Fsubstitute_command_keys): Adjust call of
16675 `current-active-maps'.
16676
166772007-06-25 David Kastrup <dak@gnu.org>
16678
16679 * callint.c (Fcall_interactively): Make the parsing of interactive
16680 specs somewhat more readable.
16681
166822007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16683
16684 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
16685 to scroll bar gap also when bitmap fills fringe. Draw only foreground
16686 if extended background has already been filled.
16687
166882007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16689
16690 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
16691 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
16692
16693 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
16694 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
16695 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
16696 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
16697 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
16698 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
16699 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
16700 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
16701 Run timers during dialog popup.
16702 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
16703
167042007-06-21 Jason Rumney <jasonr@gnu.org>
16705
16706 * image.c (convert_mono_to_color_image): Swap fore and background.
16707
167082007-06-20 Jason Rumney <jasonr@gnu.org>
16709
16710 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
16711 (w32_free_bdf_font): Unmap memory not handle.
16712
167132007-06-20 Sam Steingold <sds@gnu.org>
16714
16715 * gmalloc.c (__morecore): Fix the declaration to comply with the
16716 definition.
16717
167182007-06-20 Juanma Barranquero <lekktu@gmail.com>
16719
16720 * w32term.c (w32_delete_display): Remove leftover declaration.
16721 (w32_define_cursor, w32_initialize): Make static.
16722
16723 * w32.c (_wsa_errlist): Fix typo in error message.
16724 (init_environment): Ignore any environment variable from the
16725 registry having a null value.
16726
167272007-06-20 Glenn Morris <rgm@gnu.org>
16728
16729 * Makefile.in (LIBGIF): Default to -lgif.
16730
167312007-06-17 Jason Rumney <jasonr@gnu.org>
16732
16733 * w32menu.c (add_menu_item): Don't use multibyte string functions on
16734 unicode strings.
16735
167362007-06-16 Juanma Barranquero <lekktu@gmail.com>
16737
16738 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
16739 Fix typo in docstring.
16740
167412007-06-16 Eli Zaretskii <eliz@gnu.org>
16742
16743 * w32menu.c (add_menu_item): Escape `&' characters in menu items
16744 and their keybindings.
16745
167462007-06-15 Chong Yidong <cyd@stupidchicken.com>
16747
16748 * composite.c (update_compositions): Fix last fix.
16749
167502007-06-14 Jason Rumney <jasonr@gnu.org>
16751
16752 * w32.c (get_process_times_fn): New function pointer.
16753 (globals_of_w32): Intialize it if present in kernel32.dll.
16754 (w32_get_internal_run_time): New function.
16755
16756 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
16757
167582007-06-14 Kenichi Handa <handa@etlken.m17n.org>
16759
16760 * composite.c (update_compositions): Check the validness of
16761 compositions.
16762
167632007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16764
16765 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
16766 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
16767
16768 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
16769 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
16770
16771 * macgui.h (USE_MAC_TOOLBAR): New define.
16772
16773 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16774 Return immediately unless popup is activated.
16775
16776 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
16777 background to scroll bar gap.
16778 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
16779 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
16780 scroll bars on frame edge. Check fringe background extension.
16781 Don't clear extended fringe background area.
16782 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
16783 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
16784 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
16785 [USE_MAC_TOOLBAR]: New macros.
16786 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
16787 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
16788 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
16789 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
16790 [USE_MAC_TOOLBAR]: New functions.
16791 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
16792 manually if previous repositioning has failed.
16793 (mac_handle_keyboard_event): Use precomputed event kind.
16794 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
16795 as tool bar item click. Handle mouse movement over tool bar items.
16796
16797 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
16798 toolbar_win_gravity.
16799 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
16800 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
16801 Add externs.
16802
16803 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
16804 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
16805
168062007-06-14 Chong Yidong <cyd@stupidchicken.com>
16807
16808 * image.c (search_image_cache): Remove unused variable.
16809
168102007-06-13 Chong Yidong <cyd@stupidchicken.com>
16811
16812 * xfns.c, xmenu.c: Link to xaw3d if available.
16813
168142007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16815
16816 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
16817 frame_foreground and frame_background.
16818
16819 * image.c (lookup_image): Save frame foreground and background colors.
16820 (search_image_cache): Check if saved and current frame colors match.
16821
168222007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16823
16824 * regex.c (regex_compile): Remove the `regnum' counter.
16825 Use bufp->re_nsub instead. Add support for \(?N:RE\).
16826
168272007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16828
16829 * term.c: Include intervals.h to declare Fget_text_property.
16830
168312007-06-10 Jason Rumney <jasonr@gnu.org>
16832
16833 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
16834
168352007-06-08 Juanma Barranquero <lekktu@gmail.com>
16836
16837 * callint.c (Fcall_interactively):
16838 * editfns.c (Fdelete_and_extract_region):
16839 * fileio.c (Fread_file_name):
16840 * fns.c (Fmapconcat):
16841 * keyboard.c (cmd_error_internal):
16842 * keymap.c (Fkey_description):
16843 * lread.c (openp):
16844 * minibuf.c (read_minibuf):
16845 * search.c (wordify):
16846 * sunfns.c (sel_read):
16847 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
16848 * xfns.c (x_default_scroll_bar_color_parameter):
16849 * xmenu.c (menu_help_callback):
16850 * xselect.c (Fx_get_atom_name):
16851 * xterm.c (x_term_init): Use empty_unibyte_string.
16852
168532007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
16854
16855 * alloc.c (init_strings): Initialize canonical empty strings.
16856 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
16857 canonical empty string when the requested size is 0.
16858
16859 * emacs.c (empty_unibyte_string): Rename from empty_string.
16860 (empty_multibyte_string): New canonical empty string.
16861 (syms_of_emacs): Don't initialize empty_string.
16862
16863 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
16864 string, if appropriate.
16865 (empty_unibyte_string, empty_multibyte_string): New externs.
16866 (empty_string): Remove extern.
16867
16868 * lread.c (syms_of_lread): Use empty_unibyte_string.
16869
168702007-06-07 Jason Rumney <jasonr@gnu.org>
16871
16872 * s/ms-w32.h: Don't define HAVE_TZNAME.
16873
16874 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
16875
168762007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16877
16878 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
16879
16880 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
16881 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
16882
16883 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16884 Don't call next handler.
16885 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
16886 Remove argument. Install handler to application.
16887 (set_frame_menubar): Don't change deep_p.
16888 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
16889 FRAME_OUTER_TO_INNER_DIFF_Y.
16890 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16891 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16892 [HAVE_DIALOGS]: New macros.
16893 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
16894 Use them.
16895 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
16896
16897 * macselect.c [MAC_OSX] (install_service_handler): Rename from
16898 init_service_handler. All callers changed. Return OSStatus value.
16899
16900 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
16901 All callers changed so as not to call SetPortWindowPort.
16902 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
16903 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
16904 mac_draw_string_common.
16905 (mac_draw_image_string_qd): Likewise.
16906 (mac_draw_string_common): Use them. Add INLINE.
16907 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
16908 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
16909 GetGlobalMouse.
16910 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
16911 and FRAME_OUTER_TO_INNER_DIFF_Y.
16912 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
16913 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
16914 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
16915 repositioning window to mac_handle_window_event.
16916 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
16917 saving window location to mac_handle_window_event
16918 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
16919 (install_menu_target_item_handler): Remove argument in extern.
16920 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
16921 Also accept command events.
16922 (do_keystroke): New function created from XTread_socket.
16923 (init_command_handler): Remove functions.
16924 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
16925 and save window location by kEventWindowShowing and kEventWindowHiding
16926 handlers here. Don't call next handler for window state change and
16927 focus events.
16928 (mac_handle_application_event, mac_handle_keyboard_event)
16929 [TARGET_API_MAC_CARBON]: New functions.
16930 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
16931 kEventWindowShowing and kEventWindowHiding events. Move installation
16932 of mouse, font, text input and menu target item handlers to
16933 install_application_handler.
16934 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
16935 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16936 New function.
16937 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16938 Register it.
16939 (XTread_socket) [TARGET_API_MAC_CARBON]:
16940 Consolidate SendEventToEventTarget calls.
16941 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
16942 Move application activation handler to mac_handle_application_event.
16943 Move keyboard handler to mac_handle_keyboard_event.
16944 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
16945 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
16946 init_command_handler. Call install_application_handler.
16947
16948 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
16949 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
16950
169512007-06-07 Glenn Morris <rgm@gnu.org>
16952
16953 * emacs.c (main): Use `emacs-copyright' in --version output.
16954
169552007-06-06 Chong Yidong <cyd@stupidchicken.com>
16956
16957 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
16958
169592007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16960
16961 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
16962
16963 * macgui.h: Replace WindowPtr with WindowRef.
16964
16965 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16966 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16967 Replace ControlHandle with ControlRef.
16968 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
16969
16970 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16971 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16972 Replace ControlHandle with ControlRef.
16973 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
16974 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
16975
16976 * macterm.h (struct scroll_bar): Rename member control_handle_low
16977 and control_handle_high to control_ref_low and control_ref_high.
16978 All uses changed.
16979 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
16980 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
16981 respectively. All uses changed.
16982 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
16983 (install_window_handler, remove_window_handler): Replace WindowPtr
16984 with WindowRef in externs.
16985
169862007-06-05 Juanma Barranquero <lekktu@gmail.com>
16987
16988 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
16989
169902007-06-03 Nick Roberts <nickrob@snap.net.nz>
16991
16992 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
16993
16994 * frame.c (Fmouse_position, Fmouse_pixel_position):
16995 Condition on HAVE_GPM too.
16996
16997 * term.c (term_mouse_highlight): Remove unused variables.
16998 (Fterm_open_connection): Set gpm_zerobased to 1.
16999 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17000 Use zero based co-ordinates.
17001 (handle_one_term_event): Report a drag as mouse movement too.
17002
17003 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17004
170052007-06-03 Chong Yidong <cyd@stupidchicken.com>
17006
17007 * image.c (search_image_cache): New function. Require background
17008 color match if background color is unspecified in the image spec.
17009 (uncache_image, lookup_image): Use it.
17010
170112007-06-01 Juanma Barranquero <lekktu@gmail.com>
17012
17013 * window.c (Fshrink_window): Reflow docstring.
17014
170152007-06-02 Chong Yidong <cyd@stupidchicken.com>
17016
17017 * Version 22.1 released.
17018
170192007-06-01 Richard Stallman <rms@gnu.org>
17020
17021 * xfns.c (x_encode_text): Add GCPRO.
17022
170232007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17024
17025 * xfns.c (x_set_name_internal): Save encoded name before
17026 x_encode_text in case string data is relocated.
17027
170282007-05-31 Richard Stallman <rms@gnu.org>
17029
17030 * buffer.c (syms_of_buffer): Doc fix.
17031
170322007-05-30 Nick Roberts <nickrob@snap.net.nz>
17033
17034 * sysdep.c (init_sys_modes): Add rather than replace with
17035 O_NONBLOCK.
17036
17037 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17038 term_mouse_moveto.
17039
17040 * termhooks.h (term_mouse_moveto): New extern.
17041
17042 * term.c (mouse_face_window): Rename...
17043 (Qmouse_face_window): ...to this.
17044 (term_show_mouse_face, term_clear_mouse_face)
17045 (term_mouse_highlight): Use Qmouse_face_window.
17046 (term_mouse_moveto): New function.
17047 (term_mouse_position): Make it work.
17048 (syms_of_term): Uncomment assignment to mouse_position_hook.
17049 Staticpro Qmouse_face_window.
17050
170512007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17052
17053 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17054 around current_column call.
17055
170562007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17057
17058 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17059 * xdisp.c (next_element_from_buffer):
17060 * window.c (delete_window):
17061 * term.c (term_mouse_highlight):
17062 * msdos.c (getdefdir):
17063 * macterm.c (mac_create_bitmap_from_bitmap_data)
17064 (init_font_name_table):
17065 * fns.c (Fsxhash):
17066 * data.c (Fmake_local_variable):
17067 * ccl.c (ccl_driver): Likewise.
17068
170692007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17070
17071 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17072 Call mac_wakeup_from_rne on window size change.
17073
170742007-05-25 Chong Yidong <cyd@stupidchicken.com>
17075
17076 * image.c (uncache_image): Fix typo.
17077
170782007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17079
17080 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17081
170822007-05-22 Richard Stallman <rms@gnu.org>
17083
17084 * xterm.c (x_connection_closed): Remove NO_RETURN.
17085
170862007-05-22 Martin Rudalics <rudalics@gmx.at>
17087
17088 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17089
170902007-05-21 Chong Yidong <cyd@stupidchicken.com>
17091
17092 * image.c (uncache_image): New function.
17093 (Fimage_refresh): New function.
17094
170952007-05-20 Jan Djärv <jan.h.d@swipnet.se>
17096
17097 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
17098
170992007-05-20 Nick Roberts <nickrob@snap.net.nz>
17100
17101 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
17102 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
17103
171042007-05-20 Nick Roberts <nickrob@snap.net.nz>
17105
17106 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
17107 conditional on [HAVE_GPM_H].
17108
171092007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17110
17111 * syntax.c (skip_chars): Update syntax-table only after we checked that
17112 the new location is valid.
17113
171142007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17115
17116 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
17117 mac_get_window_bounds.
17118
171192007-05-20 Nick Roberts <nickrob@snap.net.nz>
17120
17121 * Makefile.in (LIBGPM): Allow it to be set from configure.
17122 If set then link Emacs with it.
17123
17124 * config.in: Regenerate.
17125
17126 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
17127 New externs.
17128
17129 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
17130 Include gpm.h.
17131 (handle_one_term_event, term_gpm): New externs.
17132
17133 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
17134 and allow it to be interrupted by SIGIO.
17135
17136 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
17137 (wait_reading_process_output): Wait on gpm_fd too.
17138 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
17139 (add_gpm_wait_descriptor_called_flag): New variable.
17140 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
17141
17142 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
17143 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
17144 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
17145 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
17146 (make_lispy_event): Add case GPM_CLICK_EVENT.
17147 (read_avail_input): Handle mouse input.
17148
17149 * term.c (write_glyphs_with_face): New function.
17150 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
17151 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
17152 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
17153 (mouse_face_face_id, term_gpm, pos_x, pos_y)
17154 (last_mouse_x, last_mouse_y): New variables.
17155 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
17156 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
17157 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
17158 (Fterm_close_connection): New functions.
17159 (term_init): Initialise mouse_face_window.
17160
171612007-05-19 Chong Yidong <cyd@stupidchicken.com>
17162
17163 * xdisp.c (redisplay_window): If first window line is a
17164 continuation line, recompute the new window start instead of
17165 recentering.
17166
171672007-05-18 Glenn Morris <rgm@gnu.org>
17168
17169 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
17170 Suggested by Alfred M. Szmidt <ams@gnu.org>.
17171
171722007-05-17 Glenn Morris <rgm@gnu.org>
17173
17174 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
17175
171762007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17177
17178 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
17179 dead key repeat and up events.
17180
171812007-05-14 Chong Yidong <cyd@stupidchicken.com>
17182
17183 * image.c (pbm_load): Check image size for monochrome pbm.
17184
171852007-05-13 Chong Yidong <cyd@stupidchicken.com>
17186
17187 * xterm.c (XTread_socket): Revert last change.
17188
171892007-05-12 Chong Yidong <cyd@stupidchicken.com>
17190
17191 * image.c (pbm_load): Correctly check image size for greyscale pbm.
17192
17193 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
17194
171952007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17196
17197 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
17198 mixup (YAILOM).
17199
172002007-05-07 Andreas Schwab <schwab@suse.de>
17201
17202 * keymap.c (Flookup_key): Fix typo in last change.
17203
172042007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17205
17206 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
17207 mapping for unibyte strings.
17208
172092007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17210
17211 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
17212 (Fx_popup_dialog) [MAC_OSX]: Likewise.
17213
172142007-04-29 Richard Stallman <rms@gnu.org>
17215
17216 * insdel.c (replace_range): For undo, record insertion first.
17217
172182007-04-29 Andreas Schwab <schwab@suse.de>
17219
17220 * lisp.h (VECSIZE): Use OFFSETOF.
17221
172222007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17223
17224 * xdisp.c (try_window_reusing_current_matrix): Fix number of
17225 disabled lines.
17226
172272007-04-28 Richard Stallman <rms@gnu.org>
17228
17229 * lread.c (read_escape): In a string, \s is always space.
17230
172312007-04-27 Jan Djärv <jan.h.d@swipnet.se>
17232
17233 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
17234
17235 * gtkutil.c (xg_update_menubar, create_menus): Create empty
17236 submenu for menu bar items.
17237
17238See ChangeLog.10 for earlier changes.
17239
17240;; Local Variables:
17241;; coding: utf-8
17242;; add-log-time-zone-rule: t
17243;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
17244;; End:
17245
76b6f707 17246 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
17247
17248 This file is part of GNU Emacs.
17249
17250 GNU Emacs is free software: you can redistribute it and/or modify
17251 it under the terms of the GNU General Public License as published by
17252 the Free Software Foundation, either version 3 of the License, or
17253 (at your option) any later version.
17254
17255 GNU Emacs is distributed in the hope that it will be useful,
17256 but WITHOUT ANY WARRANTY; without even the implied warranty of
17257 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17258 GNU General Public License for more details.
17259
17260 You should have received a copy of the GNU General Public License
17261 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
17262
17263;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40