aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog777
1 files changed, 769 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1e537f3872e..21563806ece 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,764 @@
12011-07-14 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix minor problems found by static checking.
4 * bidi.c (bidi_cache_size): Now EMACS_INT, not size_t.
5 (elsz): Now a signed constant, not a size_t var. We prefer signed
6 types to unsigned, to avoid integer comparison confusion. Without
7 this change, GCC 4.6.1 with -Wunsafe-loop-optimizations complains
8 "cannot optimize loop, the loop counter may overflow", a symptom
9 of the confusion.
10 * indent.c (Fvertical_motion): Mark locals as initialized.
11 * xdisp.c (reseat_to_string): Fix pointer signedness issue.
12
132011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
14
15 * search.c (Fre_search_backward): Mention `case-fold-search' in
16 all the re_search_* functions (bug#8138).
17
18 * keyboard.c (Fopen_dribble_file): Document when the file is
19 closed (bug#8056).
20
212011-07-14 Eli Zaretskii <eliz@gnu.org>
22
23 * bidi.c (bidi_dump_cached_states): Fix format of displaying
24 bidi_cache_idx.
25
26 Support bidi reordering of display and overlay strings.
27 * xdisp.c (compute_display_string_pos)
28 (compute_display_string_end): Accept additional argument STRING.
29 (init_iterator, reseat_1): Initialize bidi_it->string.s to NULL.
30 (reseat_to_string): Initialize bidi_it->string.s and
31 bidi_it->string.schars.
32 (Fcurrent_bidi_paragraph_direction): Initialize itb.string.s to
33 NULL (avoids a crash in bidi_paragraph_init). Initialize
34 itb.string.lstring.
35 (init_iterator): Call bidi_init_it only of a valid
36 buffer position was specified. Initialize paragraph_embedding to
37 L2R.
38 (reseat_to_string): Initialize the bidi iterator.
39 (display_string): If we need to ignore text properties of
40 LISP_STRING, set IT->stop_charpos to IT->end_charpos. (The
41 original value of -1 will not work with bidi.)
42 (compute_display_string_pos): First arg is now struct
43 `text_pos *'; all callers changed. Support display properties on
44 Lisp strings.
45 (compute_display_string_end): Support display properties on Lisp
46 strings.
47 (init_iterator, reseat_1, reseat_to_string): Initialize the
48 string.bufpos member to 0 (zero, for compatibility with IT_CHARPOS
49 when iterating on a string not from display properties).
50 (compute_display_string_pos, compute_display_string_end): Fix
51 calculation of the object to scan. Fixes an error when using
52 arrow keys.
53 (next_element_from_buffer): Don't abort when IT_CHARPOS is before
54 base_level_stop; instead, set base_level_stop to BEGV. Fixes
55 crashes in vertical-motion.
56 (next_element_from_buffer): Improve commentary for when
57 the iterator is before prev_stop.
58 (init_iterator): Initialize bidi_p from the default value of
59 bidi-display-reordering, not from buffer-local value. Use the
60 buffer-local value only if initializing for buffer iteration.
61 (handle_invisible_prop): Support invisible properties on strings
62 that are being bidi-reordered.
63 (set_iterator_to_next): Support bidi reordering of C strings and
64 Lisp strings.
65 (next_element_from_string): Support bidi reordering of Lisp
66 strings.
67 (handle_stop_backwards): Support Lisp strings as well.
68 (display_string): Support display of R2L glyph rows. Use
69 IT_STRING_CHARPOS when displaying from a Lisp string.
70 (init_iterator): Don't initialize it->bidi_p for strings
71 here.
72 (reseat_to_string): Initialize it->bidi_p for strings here.
73 (next_element_from_string, next_element_from_c_string)
74 (next_element_from_buffer): Add xassert's for correspondence
75 between IT's object being iterated and it->bidi_it.string
76 structure.
77 (face_before_or_after_it_pos): Support bidi iteration.
78 (next_element_from_c_string): Handle the case of the first string
79 character that is not the first one in the visual order.
80 (get_visually_first_element): New function, refactored from common
81 parts of next_element_from_buffer, next_element_from_string, and
82 next_element_from_c_string.
83 (tool_bar_lines_needed, redisplay_tool_bar)
84 (display_menu_bar): Force left-to-right direction. Add a FIXME
85 comment for making that be controlled by a user option.
86 (push_it, pop_it): Save and restore the state of the
87 bidi iterator. Save and restore the bidi_p flag.
88 (pop_it): Iterate out of display property for string iteration as
89 well.
90 (iterate_out_of_display_property): Support iteration over strings.
91 (handle_single_display_spec): Set up it->bidi_it for iteration
92 over a display string, and call bidi_init_it.
93 (handle_single_display_spec, next_overlay_string)
94 (get_overlay_strings_1, push_display_prop): Set up the bidi
95 iterator for displaying display or overlay strings.
96 (forward_to_next_line_start): Don't use the shortcut if
97 bidi-iterating.
98 (back_to_previous_visible_line_start): If handle_display_prop
99 pushed the iterator stack, restore the internal state of the bidi
100 iterator by calling bidi_pop_it same number of times.
101 (reseat_at_next_visible_line_start): If ON_NEWLINE_P is non-zero,
102 and we are bidi-iterating, don't decrement the iterator position;
103 instead, set the first_elt flag in the bidi iterator, to produce
104 the same effect.
105 (reseat_1): Remove redundant setting of string_from_display_prop_p.
106 (push_display_prop): xassert that we are iterating a buffer.
107 (push_it, pop_it): Save and restore paragraph_embedding member.
108 (handle_single_display_spec, next_overlay_string)
109 (get_overlay_strings_1, reseat_1, reseat_to_string)
110 (push_display_prop): Set up the `unibyte' member of bidi_it.string
111 correctly. Don't assume unibyte strings are not bidi-reordered.
112 (compute_display_string_pos)
113 (compute_display_string_end): Fix handling the case of C string.
114 (push_it, pop_it): Save and restore from_disp_prop_p.
115 (handle_single_display_spec, push_display_prop): Set the
116 from_disp_prop_p flag.
117 (get_overlay_strings_1): Reset the from_disp_prop_p flag.
118 (pop_it): Call iterate_out_of_display_property only if we are
119 popping after iteration over a string that came from a display
120 property. Fix a typo in popping stretch info. Add an assertion
121 for verifying that the iterator position is in sync with the bidi
122 iterator.
123 (handle_single_display_spec, get_overlay_strings_1)
124 (push_display_prop): Fix initialization of paragraph direction for
125 string when that of the parent object is not yet determined.
126 (reseat_1): Call bidi_init_it to resync the bidi
127 iterator with IT's position. (Bug#7616)
128 (find_row_edges): If ROW->start.pos gives position
129 smaller than min_pos, use it as ROW->minpos. (Bug#7616)
130 (handle_stop, back_to_previous_visible_line_start, reseat_1):
131 Reset the from_disp_prop_p flag.
132 (SAVE_IT, RESTORE_IT): New macros.
133 (pos_visible_p, face_before_or_after_it_pos)
134 (back_to_previous_visible_line_start)
135 (move_it_in_display_line_to, move_it_in_display_line)
136 (move_it_to, move_it_vertically_backward, move_it_by_lines)
137 (try_scrolling, redisplay_window, display_line): Use them when
138 saving a temporary copy of the iterator and restoring it back.
139 (back_to_previous_visible_line_start, reseat_1)
140 (init_iterator): Empty the bidi cache "stack".
141 (move_it_in_display_line_to): If iterator ended up at
142 EOL, but we never saw any buffer positions smaller than
143 to_charpos, return MOVE_POS_MATCH_OR_ZV. Fixes vertical cursor
144 motion in bidi-reordered lines.
145 (move_it_in_display_line_to): Record prev_method and prev_pos
146 immediately before the call to set_iterator_to_next. Fixes cursor
147 motion in bidi-reordered lines with stretch glyphs and strings
148 displayed in margins. (Bug#8133) (Bug#8867)
149 Return MOVE_POS_MATCH_OR_ZV only if iterator position is past
150 TO_CHARPOS.
151 (pos_visible_p): Support positions in bidi-reordered lines. Save
152 and restore bidi cache.
153
154 * bidi.c (bidi_level_of_next_char): clen should be EMACS_NT, not int.
155 (bidi_paragraph_info): Delete unused struct.
156 (bidi_cache_idx, bidi_cache_last_idx): Declare EMACS_INT.
157 (bidi_cache_start): New variable.
158 (bidi_cache_reset): Reset bidi_cache_idx to bidi_cache_start, not
159 to zero.
160 (bidi_cache_fetch_state, bidi_cache_search)
161 (bidi_cache_find_level_change, bidi_cache_iterator_state)
162 (bidi_cache_find, bidi_peek_at_next_level)
163 (bidi_level_of_next_char, bidi_find_other_level_edge)
164 (bidi_move_to_visually_next): Compare cache index with
165 bidi_cache_start rather than with zero.
166 (bidi_fetch_char): Accept new argument STRING; all callers
167 changed. Support iteration over a string. Support strings with
168 display properties. Support unibyte strings. Fix the type of
169 `len' according to what STRING_CHAR_AND_LENGTH expects.
170 (bidi_paragraph_init, bidi_resolve_explicit_1)
171 (bidi_resolve_explicit, bidi_resolve_weak)
172 (bidi_level_of_next_char, bidi_move_to_visually_next): Support
173 iteration over a string.
174 (bidi_set_sor_type, bidi_resolve_explicit_1)
175 (bidi_resolve_explicit, bidi_type_of_next_char): ignore_bn_limit
176 can now be zero (for strings); special values 0 and -1 were
177 changed to -1 and -2, respectively.
178 (bidi_char_at_pos): New function.
179 (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak):
180 Call it instead of FETCH_MULTIBYTE_CHAR.
181 (bidi_move_to_visually_next): Abort if charpos or bytepos were not
182 initialized to valid values.
183 (bidi_init_it): Don't initialize charpos and bytepos with invalid
184 values.
185 (bidi_level_of_next_char): Allow the sentinel "position" to pass
186 the test for valid cached positions. Fix the logic for looking up
187 the sentinel state in the cache. GCPRO the Lisp string we are
188 iterating.
189 (bidi_push_it, bidi_pop_it): New functions.
190 (bidi_initialize): Initialize the bidi cache start stack pointer.
191 (bidi_cache_ensure_space): New function, refactored from part of
192 bidi_cache_iterator_state. Don't assume the required size is just
193 one BIDI_CACHE_CHUNK away.
194 (bidi_cache_start_stack, bidi_push_it): Use IT_STACK_SIZE.
195 (bidi_count_bytes, bidi_char_at_pos): New functions.
196 (bidi_cache_search): Don't assume bidi_cache_last_idx is
197 always valid if bidi_cache_idx is valid.
198 (bidi_cache_find_level_change): xassert that bidi_cache_last_idx
199 is valid if it's going to be used.
200 (bidi_shelve_cache, bidi_unshelve_cache): New functions.
201 (bidi_cache_fetch_state, bidi_cache_search)
202 (bidi_cache_find_level_change, bidi_cache_ensure_space)
203 (bidi_cache_iterator_state, bidi_cache_find)
204 (bidi_find_other_level_edge, bidi_cache_start_stack): All
205 variables related to cache indices are now EMACS_INT.
206
207 * dispextern.h (struct bidi_string_data): New structure.
208 (struct bidi_it): New member `string'. Make flag members be 1-bit
209 fields, and put them last in the struct.
210 (compute_display_string_pos, compute_display_string_end): Update
211 prototypes.
212 (bidi_push_it, bidi_pop_it): Add prototypes.
213 (struct iterator_stack_entry): New members bidi_p,
214 paragraph_embedding, and from_disp_prop_p.
215 (struct it): Member bidi_p is now a bit field 1 bit wide.
216 (bidi_shelve_cache, bidi_unshelve_cache): Declare
217 prototypes.
218
219 * .gdbinit (xvectype, xvector, xcompiled, xchartable, xboolvector)
220 (xpr, xfont, xbacktrace): Use "header.size" when accessing vectors
221 and vector-like objects.
222
223 * dispnew.c (buffer_posn_from_coords): Save and restore the bidi
224 cache around display iteration.
225
226 * window.c (Fwindow_end, window_scroll_pixel_based)
227 (displayed_window_lines, Frecenter): Save and restore the bidi
228 cache around display iteration.
229
2302011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
231
232 * editfns.c (Fdelete_region): Clarify the use of the named
233 parameters (bug#6788).
234
2352011-07-14 Martin Rudalics <rudalics@gmx.at>
236
237 * indent.c (Fvertical_motion): Set and restore w->pointm when
238 saving and restoring the window's buffer (Bug#9006).
239
2402011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
241
242 * editfns.c (Fstring_to_char): Clarify just what is returned
243 (bug#6576). Text by Eli Zaretskii.
244
2452011-07-13 Juanma Barranquero <lekktu@gmail.com>
246
247 * gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059).
248
2492011-07-13 Eli Zaretskii <eliz@gnu.org>
250
251 * buffer.c (mmap_find): Fix a typo.
252
2532011-07-13 Johan Bockgård <bojohan@gnu.org>
254
255 Fix execution of x selection hooks.
256 * xselect.c (Qx_lost_selection_functions)
257 (Qx_sent_selection_functions): New vars.
258 (syms_of_xselect): DEFSYM them.
259 (x_handle_selection_request): Pass Qx_sent_selection_functions
260 rather than Vx_sent_selection_functions to Frun_hook_with_args.
261 (x_handle_selection_clear,x_clear_frame_selections):
262 Pass Qx_lost_selection_functions rather than
263 Vx_lost_selection_functions to Frun_hook_with_args.
264
2652011-07-13 Paul Eggert <eggert@cs.ucla.edu>
266
267 * buffer.c (Fget_buffer_create): Initialize inhibit_shrinking.
268 The old code sometimes used this field without initializing it.
269
270 * alloc.c (gc_sweep): Don't read past end of array.
271 In theory, the old code could also have corrupted Emacs internals,
272 though it'd be very unlikely.
273
2742011-07-12 Andreas Schwab <schwab@linux-m68k.org>
275
276 * character.c (Fcharacterp): Don't advertise optional ignored
277 argument. (Bug#4026)
278
2792011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
280
281 * keymap.c (syms_of_keymap): Clarify that "modifier" is "modifier
282 key" (bug#4257).
283
284 * window.c (Fset_window_start): Doc fix (bug#4199).
285 (Fset_window_hscroll): Ditto.
286
2872011-07-12 Paul Eggert <eggert@cs.ucla.edu>
288
289 Fix minor new problems caught by GCC 4.6.1.
290 * term.c (init_tty): Remove unused local.
291 * xsettings.c (store_monospaced_changed): Define this function only
292 if (defined HAVE_GSETTINGS || defined HAVE_GCONF), as it's
293 not used otherwise.
294
2952011-07-12 Chong Yidong <cyd@stupidchicken.com>
296
297 * xdisp.c (Vresize_mini_windows): Minor doc fix (Bug#3300).
298
2992011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
300
301 * xdisp.c (syms_of_xdisp): Make it explicit that the mini-windows
302 are the mini-buffer and the echo area (bug#3320).
303
304 * term.c (init_tty): Remove support for supdup, c10 and perq
305 terminals, which are no longer supported (bug#1482).
306
3072011-07-10 Johan Bockgård <bojohan@gnu.org>
308
309 * xdisp.c (Ftool_bar_lines_needed): Fix WINDOWP check.
310
3112011-07-10 Jan Djärv <jan.h.d@swipnet.se>
312
313 * xmenu.c (menu_highlight_callback): Only pass frame to show_help_event
314 for non-popups (Bug#3642).
315
3162011-07-10 Andreas Schwab <schwab@linux-m68k.org>
317
318 * alloc.c (reset_malloc_hooks): Protoize.
319 * buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge)
320 (mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Likewise.
321 * cm.c (losecursor): Likewise.
322 * data.c (fmod): Likewise.
323 * dispnew.c (swap_glyphs_in_rows): Likewise.
324 * emacs.c (memory_warning_signal): Likewise.
325 * floatfns.c (float_error): Likewise.
326 * font.c (check_gstring, check_otf_features, otf_tag_symbol)
327 (otf_open, font_otf_capability, generate_otf_features)
328 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
329 Likewise.
330 * image.c (pbm_read_file): Likewise.
331 * indent.c (string_display_width): Likewise.
332 * intervals.c (check_for_interval, search_for_interval)
333 (inc_interval_count, count_intervals, root_interval)
334 (adjust_intervals_for_insertion, make_new_interval): Likewise.
335 * lread.c (defalias): Likewise.
336 * ralloc.c (r_alloc_check): Likewise.
337 * regex.c (set_image_of_range_1, set_image_of_range)
338 (regex_grow_registers): Likewise.
339 * sysdep.c (strerror): Likewise.
340 * termcap.c (valid_filename_p, tprint, main): Likewise.
341 * tparam.c (main): Likewise.
342 * unexhp9k800.c (run_time_remap, save_data_space)
343 (update_file_ptrs, read_header, write_header, calculate_checksum)
344 (copy_file, copy_rest, display_header): Likewise.
345 * widget.c (mark_shell_size_user_specified, create_frame_gcs):
346 Likewise.
347 * xdisp.c (check_it): Likewise.
348 * xfaces.c (register_color, unregister_color, unregister_colors):
349 Likewise.
350 * xfns.c (print_fontset_result): Likewise.
351 * xrdb.c (member, fatal, main): Likewise.
352
3532011-07-10 Paul Eggert <eggert@cs.ucla.edu>
354
355 Fix minor problems found by static checking (Bug#9031).
356 * chartab.c (char_table_set_range, map_sub_char_table):
357 Remove unused locals.
358 (uniprop_table): Now static.
359 * composite.c (_work_char): Remove unused static var.
360
3612011-07-09 Juanma Barranquero <lekktu@gmail.com>
362
363 * chartab.c (uniprop_table_uncompress): Remove unused local variable.
364
3652011-07-09 Jan Djärv <jan.h.d@swipnet.se>
366
367 * gtkutil.c (qttip_cb): Remove code without function.
368
3692011-07-09 Eli Zaretskii <eliz@gnu.org>
370
371 * w32.c (pthread_sigmask): New stub.
372
3732011-07-08 Paul Eggert <eggert@cs.ucla.edu>
374
375 Use pthread_sigmask, not sigprocmask (Bug#9010).
376 sigprocmask is portable only for single-threaded applications, and
377 Emacs can be multi-threaded when it uses GTK.
378 * Makefile.in (LIB_PTHREAD_SIGMASK): New macro.
379 (LIBES): Use it.
380 * callproc.c (Fcall_process):
381 * process.c (create_process):
382 * sysdep.c (sys_sigblock, sys_sigunblock, sys_sigsetmask):
383 Use pthread_sigmask, not sigprocmask.
384
3852011-07-08 Jan Djärv <jan.h.d@swipnet.se>
386
387 * gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget.
388 (xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was
389 wrong (Bug#8591).
390
3912011-07-08 Jan Djärv <jan.h.d@swipnet.se>
392
393 * gtkutil.c (xg_prepare_tooltip): Fix indentation and comment.
394 Put text in x->ttip_lbl instead of gtk_tooltip_set_text (Bug#8591).
395 (xg_hide_tooltip): Fix comment.
396
397 * nsterm.m (initFrameFromEmacs): Don't use ns_return_types
398 in registerServicesMenuSendTypes.
399 (validRequestorForSendType): Don't check ns_return_types.
400
401 * nsfns.m (Fx_open_connection): Put NSStringPboardType into
402 ns_return_type.
403
4042011-07-08 Jason Rumney <jasonr@gnu.org>
405
406 * w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
407 frame struct members of non-existent frames (Bug#6284).
408
4092011-07-08 Jan Djärv <jan.h.d@swipnet.se>
410
411 * nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
412 variable firstTime not needed on OSX >= 10.6.
413 (setPosition): setFloatValue:knobProportion: is deprecated on OSX
414 >= 10.5. Use setKnobProportion, setDoubleValue.
415
416 * nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
417 (MAC_OS_X_VERSION_10_5): Define if not defined.
418 (EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
419 (EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
420 (EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.
421
422 * nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
423 cString and lossyCString on OSX >= 10.4
424
425 * nsmenu.m (fillWithWidgetValue): Don't use depercated method
426 sizeToFit on OSX >= 10.2.
427
428 * nsimage.m (allocInitFromFile): Don't use deprecated method
429 bestRepresentationForDevice on OSX >= 10.6.
430
431 * nsfns.m (check_ns_display_info): Cast to long and use %ld in error
432 to avoid warning.
433
434 * emacs.c: Declare unexec_init_emacs_zone.
435
436 * nsgui.h: Fix compiler warning about gnulib redefining verify.
437
438 * nsselect.m (ns_get_local_selection): Change to extern (Bug#8842).
439
440 * nsmenu.m (ns_update_menubar): Remove useless setDelegate call
441 on svcsMenu (Bug#8842).
442
443 * nsfns.m (Fx_open_connection): Remove NSStringPboardType from
444 ns_return_types.
445 (Fns_list_services): Just return Qnil on 10.6, code not working there.
446
447 * nsterm.m (QUTF8_STRING): Declare.
448 (initFrameFromEmacs): Call registerServicesMenuSendTypes.
449 (validRequestorForSendType): Return type is (id).
450 Change indexOfObjectIdenticalTo to indexOfObject.
451 Check if we have local selection before returning self (Bug#8842).
452 (writeSelectionToPasteboard): Put local selection into paste board
453 if we have a local selection (Bug#8842).
454 (syms_of_nsterm): DEFSYM QUTF8_STRING.
455
456 * nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m.
457 (ns_get_local_selection): Declare.
458
4592011-07-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
460
461 * keymap.c (describe_map_tree): Don't insert a double newline at
462 the end of the buffer (bug#1169) and return whether we inserted
463 something.
464
465 * callint.c (Fcall_interactively): Change "reading args" to
466 "providing args" to try to clarify what it does (bug#1010).
467
4682011-07-07 Kenichi Handa <handa@m17n.org>
469
470 * composite.c (composition_compute_stop_pos): Ignore a static
471 composition starting before CHARPOS (Bug#8915).
472
473 * xdisp.c (handle_composition_prop): Likewise.
474
4752011-07-07 Eli Zaretskii <eliz@gnu.org>
476
477 * term.c (produce_glyphs) <xassert>: Allow IT_GLYPHLESS in it->what.
478 (Bug#9015)
479
4802011-07-07 Kenichi Handa <handa@m17n.org>
481
482 * character.h (unicode_category_t): New enum type.
483
484 * chartab.c (uniprop_decoder_t, uniprop_encoder_t): New types.
485 (Qchar_code_property_table): New variable.
486 (UNIPROP_TABLE_P, UNIPROP_GET_DECODER)
487 (UNIPROP_COMPRESSED_FORM_P): New macros.
488 (char_table_ascii): Uncompress the compressed values.
489 (sub_char_table_ref): New arg is_uniprop. Callers changed.
490 Uncompress the compressed values.
491 (sub_char_table_ref_and_range): Likewise.
492 (char_table_ref_and_range): Uncompress the compressed values.
493 (sub_char_table_set): New arg is_uniprop. Callers changed.
494 Uncompress the compressed values.
495 (sub_char_table_set_range): Args changed. Callers changed.
496 (char_table_set_range): Adjuted for the above change.
497 (map_sub_char_table): Delete args default_val and parent. Add arg
498 top. Give decoded values to a Lisp function.
499 (map_char_table): Adjusted for the above change. Give decoded
500 values to a Lisp function. Gcpro more variables.
501 (uniprop_table_uncompress)
502 (uniprop_decode_value_run_length): New functions.
503 (uniprop_decoder, uniprop_decoder_count): New variables.
504 (uniprop_get_decoder, uniprop_encode_value_character)
505 (uniprop_encode_value_run_length, uniprop_encode_value_numeric):
506 New functions.
507 (uniprop_encoder, uniprop_encoder_count): New variables.
508 (uniprop_get_encoder, uniprop_table)
509 (Funicode_property_table_internal, Fget_unicode_property_internal)
510 (Fput_unicode_property_internal): New functions.
511 (syms_of_chartab): DEFSYM Qchar_code_property_table, defsubr
512 Sunicode_property_table_internal, Sget_unicode_property_internal,
513 and Sput_unicode_property_internal. Defvar_lisp
514 char-code-property-alist.
515
516 * composite.c (CHAR_COMPOSABLE_P): Adjusted for the change of
517 Vunicode_category_table.
518
519 * font.c (font_range): Adjusted for the change of
520 Vunicode_category_table.
521
5222011-07-07 Dan Nicolaescu <dann@ics.uci.edu>
523
524 * m/iris4d.h: Remove file, move contents ...
525 * s/irix6-5.h: ... here.
526
5272011-07-06 Paul Eggert <eggert@cs.ucla.edu>
528
529 Remove unportable assumption about struct layout (Bug#8884).
530 * alloc.c (mark_buffer):
531 * buffer.c (reset_buffer_local_variables, Fbuffer_local_variables)
532 (clone_per_buffer_values): Don't assume that
533 sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
534 This isn't true in general, and it's particularly not true
535 if Emacs is configured with --with-wide-int.
536 * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
537 New macros, used in the buffer.c change.
538
5392011-07-05 Jan Djärv <jan.h.d@swipnet.se>
540
541 * xsettings.c: Use both GConf and GSettings if both are available.
542 (store_config_changed_event): Add comment.
543 (dpyinfo_valid, store_font_name_changed, map_tool_bar_style)
544 (store_tool_bar_style_changed): New functions.
545 (store_monospaced_changed): Add comment. Call dpyinfo_valid.
546 (struct xsettings): Move font inside HAVE_XFT.
547 (GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines.
548 (GSETTINGS_MONO_FONT): Renamed from SYSTEM_MONO_FONT.
549 Move inside HAVE_XFT.
550 (something_changed_gsettingsCB): Renamed from something_changedCB.
551 Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME
552 also.
553 (GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines.
554 (GCONF_MONO_FONT): Renamed from SYSTEM_MONO_FONT. Move inside HAVE_XFT.
555 (something_changed_gconfCB): Renamed from something_changedCB.
556 Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also.
557 (parse_settings): Move check for font inside HAVE_XFT.
558 (read_settings, apply_xft_settings): Add comment.
559 (read_and_apply_settings): Add comment. Call map_tool_bar_style and
560 store_tool_bar_style_changed. Move check for font inside HAVE_XFT and
561 call store_font_name_changed.
562 (xft_settings_event): Add comment.
563 (init_gsettings): Add comment. Get values for GSETTINGS_TOOL_BAR_STYLE
564 and GSETTINGS_FONT_NAME. Move check for fonts within HAVE_XFT.
565 (init_gconf): Add comment. Get values for GCONF_TOOL_BAR_STYLE
566 and GCONF_FONT_NAME. Move check for fonts within HAVE_XFT.
567 (xsettings_initialize): Call init_gsettings last.
568 (xsettings_get_system_font, xsettings_get_system_normal_font): Add
569 comment.
570
5712011-07-05 Paul Eggert <eggert@cs.ucla.edu>
572
573 Random fixes. E.g., (random) never returned negative values.
574 * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
575 subseconds part to the entropy, as that's a bit more random.
576 Prefer signed to unsigned, since the signedness doesn't matter and
577 in general we prefer signed. When given a limit, use a
578 denominator equal to INTMASK + 1, not to VALMASK + 1, because the
579 latter isn't right if USE_2_TAGS_FOR_INTS.
580 * sysdep.c (get_random): Return a value in the range 0..INTMASK,
581 not 0..VALMASK. Don't discard "excess" bits that random () returns.
582
5832011-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * textprop.c (text_property_stickiness):
586 Obey Vtext_property_default_nonsticky.
587 (syms_of_textprop): Add `display' to Vtext_property_default_nonsticky.
588 * w32fns.c (syms_of_w32fns):
589 * xfns.c (syms_of_xfns): Don't Add `display' since it's there by default.
590
5912011-07-04 Paul Eggert <eggert@cs.ucla.edu>
592
593 * fileio.c (barf_or_query_if_file_exists): Use S_ISDIR.
594 This is more efficient than Ffile_directory_p and avoids a minor race.
595
5962011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
597
598 * buffer.c (Foverlay_put): Say what the return value is
599 (bug#7835).
600
601 * fileio.c (barf_or_query_if_file_exists): Check first if the file
602 is a directory before asking whether to use the file name
603 (bug#7564).
604 (barf_or_query_if_file_exists): Make the "File is a directory"
605 error be more correct.
606
607 * fns.c (Frequire): Remove the mention of the .gz files, since
608 that's installation-specific, but keep the mention of
609 `get-load-suffixes'.
610
6112011-07-04 Paul Eggert <eggert@cs.ucla.edu>
612
613 * editfns.c (Fformat_time_string): Don't assume strlen fits in int.
614 Report string overflow if the output is too long.
615
6162011-07-04 Juanma Barranquero <lekktu@gmail.com>
617
618 * gnutls.c (Fgnutls_boot): Don't mention :verify-error.
619 (syms_of_gnutls): Remove duplicate DEFSYM for
620 Qgnutls_bootprop_verify_hostname_error, an error for
621 Qgnutls_bootprop_verify_error (which is no longer used).
622
623 * eval.c (find_handler_clause): Remove parameters `sig' and `data',
624 unused since 2011-01-26T20:02:07Z!monnier@iro.umontreal.ca. All callers changed.
625 Also (re)move comments that are misplaced or no longer relevant.
626
6272011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
628
629 * callint.c (Finteractive): Clarify the meaning of "@" (bug#8813).
630
6312011-07-03 Chong Yidong <cyd@stupidchicken.com>
632
633 * xfaces.c (Finternal_merge_in_global_face): Modify the foreground
634 and background color parameters if they have been changed.
635
6362011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
637
638 * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659).
639
6402011-07-03 Paul Eggert <eggert@cs.ucla.edu>
641
642 * xsettings.c (SYSTEM_FONT): Define only when used.
643 No need to define when HAVE_GSETTINGS || !HAVE_XFT.
644
645 * keymap.c (access_keymap_1): Now static.
646
6472011-07-02 Chong Yidong <cyd@stupidchicken.com>
648
649 * keyboard.c (command_loop_1): If a down-mouse event is unbound,
650 leave any prefix arg for the up event (Bug#1586).
651
6522011-07-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
653
654 * lread.c (syms_of_lread): Mention single symbols defined by
655 `defvar' or `defconst' (bug#7154).
656
657 * fns.c (Frequire): Mention .el.gz files (bug#7314).
658 (Frequire): Mention get-load-suffixes.
659
6602011-07-02 Martin Rudalics <rudalics@gmx.at>
661
662 * window.h (window): Remove clone_number slot.
663 * window.c (Fwindow_clone_number, Fset_window_clone_number):
664 Remove.
665 (make_parent_window, make_window, saved_window)
666 (Fset_window_configuration, save_window_save): Don't deal with
667 clone numbers.
668 * buffer.c (Qclone_number): Remove declaration.
669 (sort_overlays, overlay_strings): Don't deal with clone numbers.
670
6712011-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 Add multiple inheritance to keymaps.
674 * keymap.c (Fmake_composed_keymap): New function.
675 (Fset_keymap_parent): Simplify.
676 (fix_submap_inheritance): Remove.
677 (access_keymap_1): New function extracted from access_keymap to handle
678 embedded parents and handle lists of maps.
679 (access_keymap): Use it.
680 (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap)
681 (Fcopy_keymap): Handle embedded parents.
682 (Fcommand_remapping, define_as_prefix): Simplify.
683 (Fkey_binding): Simplify.
684 (syms_of_keymap): Move minibuffer-local-completion-map,
685 minibuffer-local-filename-completion-map,
686 minibuffer-local-must-match-map, and
687 minibuffer-local-filename-must-match-map to Elisp.
688 (syms_of_keymap): Defsubr make-composed-keymap.
689 * keyboard.c (menu_bar_items): Use map_keymap_canonical.
690 (parse_menu_item): Trivial simplification.
691
6922011-07-01 Glenn Morris <rgm@gnu.org>
693
694 * Makefile.in (SETTINGS_LIBS): Fix typo.
695
6962011-07-01 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny patch)
697
698 * coding.c (Fencode_coding_string): Record the last coding system
699 used, as the function doc string says (bug#8738).
700
7012011-07-01 Jan Djärv <jan.h.d@swipnet.se>
702
703 * xsettings.c (store_monospaced_changed): Take new font as arg and
704 check for change against current_mono_font.
705 (EMACS_TYPE_SETTINGS): Remove this and related defines.
706 (emacs_settings_constructor, emacs_settings_get_property)
707 (emacs_settings_set_property, emacs_settings_class_init)
708 (emacs_settings_init, gsettings_obj): Remove.
709 (something_changedCB): New function for HAVE_GSETTINGS.
710 (something_changedCB): HAVE_GCONF: Call store_monospaced_changed
711 with value as argument.
712 (init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
713 g_settings_new (Bug#8967). Do not create gsettings_obj.
714 Remove calls to g_settings_bind. Connect something_changedCB to
715 "changed".
716
717 * xgselect.c: Add defined (HAVE_GSETTINGS).
718 (xgselect_initialize): Ditto.
719
720 * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h
721 (wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
722 xg_select.
723
7242011-07-01 Paul Eggert <eggert@cs.ucla.edu>
725
726 * eval.c (struct backtrace): Simplify and port the data structure.
727 Do not assume that "int nargs : BITS_PER_INT - 2;" produces a
728 signed bit field, as this assumption is not portable and it makes
729 Emacs crash when compiled with Sun C 5.8 on sparc. Do not use
730 "char debug_on_exit : 1" as this is not portable either; instead,
731 use the portable "unsigned int debug_on_exit : 1". Remove unused
732 member evalargs. Remove obsolete comments about cc bombing out.
733
7342011-06-30 Jan Djärv <jan.h.d@swipnet.se>
735
736 * xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS.
737 Let HAVE_GSETTINGS override HAVE_GCONF.
738 (store_monospaced_changed): New function.
739 (EMACS_SETTINGS): A new type derived from GObject to handle
740 GSettings notifications.
741 (emacs_settings_constructor, emacs_settings_get_property)
742 (emacs_settings_set_property, emacs_settings_class_init):
743 New functions.
744 (gsettings_client, gsettings_obj): New variables.
745 (GSETTINGS_SCHEMA): New define.
746 (something_changedCB): Call store_monospaced_changed.
747 (init_gsettings): New function.
748 (xsettings_initialize): Call init_gsettings.
749 (syms_of_xsettings): Initialize gsettings_client, gsettings_obj
750 to NULL.
751
752 * Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Renamed from
753 GCONF_CFLAGS/LIBS.
754
7552011-06-29 Martin Rudalics <rudalics@gmx.at>
756
757 * window.c (resize_root_window, grow_mini_window)
758 (shrink_mini_window): Rename Qresize_root_window to
759 Qwindow_resize_root_window and Qresize_root_window_vertically to
760 Qwindow_resize_root_window_vertically.
761
12011-06-28 Paul Eggert <eggert@cs.ucla.edu> 7622011-06-28 Paul Eggert <eggert@cs.ucla.edu>
2 763
3 * gnutls.c (Qgnutls_bootprop_verify_error): Remove unused var. 764 * gnutls.c (Qgnutls_bootprop_verify_error): Remove unused var.
@@ -47,8 +808,8 @@
47 min_width/height (Bug#8919). 808 min_width/height (Bug#8919).
48 809
49 * gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new. 810 * gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new.
50 (x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size. Fix 811 (x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size.
51 indentation. 812 Fix indentation.
52 813
532011-06-26 Eli Zaretskii <eliz@gnu.org> 8142011-06-26 Eli Zaretskii <eliz@gnu.org>
54 815
@@ -1405,7 +2166,7 @@
1405 (xpm_put_color_table_h): 2166 (xpm_put_color_table_h):
1406 * lisp.h (struct Lisp_Hash_Table): 2167 * lisp.h (struct Lisp_Hash_Table):
1407 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): 2168 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1408 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT' 2169 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT'
1409 for hashes and hash indexes, instead of 'unsigned' and 'int'. 2170 for hashes and hash indexes, instead of 'unsigned' and 'int'.
1410 * alloc.c (allocate_vectorlike): 2171 * alloc.c (allocate_vectorlike):
1411 Check for overflow in vector size calculations. 2172 Check for overflow in vector size calculations.
@@ -1609,7 +2370,7 @@
1609 and %.0c. Fix bug with strchr succeeding on '\0' when looking for 2370 and %.0c. Fix bug with strchr succeeding on '\0' when looking for
1610 flags. Fix bug with (format "%c" 256.0). Avoid integer overflow when 2371 flags. Fix bug with (format "%c" 256.0). Avoid integer overflow when
1611 formatting out-of-range floating point numbers with int 2372 formatting out-of-range floating point numbers with int
1612 formats. (Bug#8668) 2373 formats. (Bug#8668)
1613 2374
1614 * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN. 2375 * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN.
1615 2376
@@ -1702,7 +2463,7 @@
1702 2463
1703 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row 2464 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
1704 for fringe update if it has periodic bitmap. 2465 for fringe update if it has periodic bitmap.
1705 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset, 2466 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
1706 and fringe_bitmap_periodic_p. 2467 and fringe_bitmap_periodic_p.
1707 2468
1708 * fringe.c (get_fringe_bitmap_data): New function. 2469 * fringe.c (get_fringe_bitmap_data): New function.
@@ -2573,9 +3334,9 @@
2573 :verify-hostname-error, :verify-error, and :verify-flags 3334 :verify-hostname-error, :verify-error, and :verify-flags
2574 parameters of `gnutls-boot' and documented those parameters in the 3335 parameters of `gnutls-boot' and documented those parameters in the
2575 docstring. Start callback support. 3336 docstring. Start callback support.
2576 (emacs_gnutls_handshake): Add Woe32 support. Retry handshake 3337 (emacs_gnutls_handshake): Add Woe32 support. Retry handshake
2577 unless a fatal error occured. Call gnutls_alert_send_appropriate 3338 unless a fatal error occurred. Call gnutls_alert_send_appropriate
2578 on error. Return error code. 3339 on error. Return error code.
2579 (emacs_gnutls_write): Call emacs_gnutls_handle_error. 3340 (emacs_gnutls_write): Call emacs_gnutls_handle_error.
2580 (emacs_gnutls_read): Likewise. 3341 (emacs_gnutls_read): Likewise.
2581 (Fgnutls_boot): Return handshake error code. 3342 (Fgnutls_boot): Return handshake error code.