aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorKenichi Handa2012-11-13 23:24:26 +0900
committerKenichi Handa2012-11-13 23:24:26 +0900
commit0cdbf84521791935fdfeabf2e84f585cc64db325 (patch)
tree68a169af3af4a8859685682ab07c05e8f9ff93b3 /src/ChangeLog
parente1bf05c1fbf63087801c242208212df133921ed1 (diff)
parent5745cae6984ed60299a89485aaea8f2f3fb67382 (diff)
downloademacs-0cdbf84521791935fdfeabf2e84f585cc64db325.tar.gz
emacs-0cdbf84521791935fdfeabf2e84f585cc64db325.zip
merge trunk
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog352
1 files changed, 346 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index efe5e59cb73..e67518d63ba 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,346 @@
3 * font.c (font_unparse_xlfd): Exclude special characters from the 3 * font.c (font_unparse_xlfd): Exclude special characters from the
4 generating XLFD name. 4 generating XLFD name.
5 5
62012-11-13 Dmitry Antipov <dmantipov@yandex.ru>
7
8 Omit glyphs initialization at startup.
9 * dispnew.c (glyphs_initialized_initially_p): Remove.
10 (adjust_frame_glyphs_initially): Likewise. Adjust users.
11 (Fredraw_frame): Move actual code from here...
12 (redraw_here): ...to here. Add eassert. Adjust comment.
13 (Fredraw_display): Use redraw_frame.
14 * xdisp.c (clear_garbaged_frames): Likewise.
15
162012-11-13 Eli Zaretskii <eliz@gnu.org>
17
18 * xdisp.c (decode_mode_spec): Limit the value of WIDTH argument
19 passed to pint2str and pint2hrstr to be at most the size of the
20 frame's decode_mode_spec_buffer. This avoids crashes with very
21 large values of FIELD_WIDTH argument to decode_mode_spec.
22 (Bug#12867)
23
242012-11-13 Paul Eggert <eggert@cs.ucla.edu>
25
26 Fix a race with verify-visited-file-modtime (Bug#12863).
27 Since at least 1991 Emacs has ignored an mtime difference of no
28 more than one second, but my guess is that this was to work around
29 file system bugs that were fixed long ago. Since the race is
30 causing problems now, let's remove that code.
31 * fileio.c (Fverify_visited_file_modtime): Do not accept a file
32 whose time stamp is off by no more than a second. Insist that the
33 file time stamps match exactly.
34
352012-11-12 Dmitry Antipov <dmantipov@yandex.ru>
36
37 * frame.h (struct frame): Convert external_tool_bar member to
38 1-bit unsigned bitfield.
39 * termhooks.h (struct terminal): Remove mouse_moved member since
40 all users are long dead. Adjust comment on mouse_position_hook.
41
422012-11-12 Dmitry Antipov <dmantipov@yandex.ru>
43
44 Simplify by using FOR_EACH_FRAME here and there.
45 * frame.c (next_frame, prev_frame, other_visible_frames)
46 (delete_frame, visible-frame-list): Use FOR_EACH_FRAME.
47 * w32term.c (x_window_to_scroll_bar): Likewise.
48 * window.c (window_list): Likewise.
49 * xdisp.c (x_consider_frame_title): Likewise.
50 * xfaces.c ( Fdisplay_supports_face_attributes_p): Likewise.
51 * xfns.c (x_window_to_frame, x_any_window_to_frame)
52 (x_menubar_window_to_frame, x_top_window_to_frame): Likewise.
53 * xmenu.c (menubar_id_to_frame): Likewise.
54 * xselect.c (frame_for_x_selection): Likewise.
55 * xterm.c (x_frame_of_widget, x_window_to_scroll_bar)
56 (x_window_to_menu_bar): Likewise.
57 * w32fns.c (x_window_to_frame): Likewise. Adjust comment.
58
592012-11-12 Paul Eggert <eggert@cs.ucla.edu>
60
61 * data.c (Qdefalias_fset_function): Now static.
62
63 Another tweak to vectorlike_header change.
64 * alloc.c (struct Lisp_Vectorlike_Free, NEXT_IN_FREE_LIST):
65 Remove, and replace all uses with ...
66 (next_in_free_list, set_next_in_free_list):
67 New functions, which respect C's aliasing rules better.
68
692012-11-11 Paul Eggert <eggert@cs.ucla.edu>
70
71 * window.c (list4i): Rename from 'quad'. All uses changed.
72 Needed because <sys/types.h> defines 'quad' on Solaris 10.
73
742012-11-11 Juanma Barranquero <lekktu@gmail.com>
75
76 * xdisp.c (start_hourglass) [HAVE_NTGUI]: Add block to silence
77 warning about mixing declarations and code in ISO C90.
78
792012-11-10 Martin Rudalics <rudalics@gmx.at>
80
81 * window.c (Fsplit_window_internal): Set combination limit of
82 new parent window to t iff Vwindow_combination_limit is t;
83 fixing a regression introduced with the change from 2012-09-22.
84 (Fset_window_combination_limit): Fix doc-string.
85
862012-11-10 Eli Zaretskii <eliz@gnu.org>
87
88 * xdisp.c (try_scrolling): Fix correction of aggressive-scroll
89 amount when the scroll margins are too large. When scrolling
90 backwards in the buffer, give up if cannot reach point or the
91 scroll margin within a reasonable number of screen lines. Fixes
92 point position in window under scroll-up/down-aggressively when
93 point is positioned many lines beyond the window top/bottom.
94 (Bug#12811)
95
96 * ralloc.c (relinquish): If real_morecore fails to return memory
97 to the system, don't crash; instead, leave the last heap
98 unchanged and return. (Bug#12774)
99
1002012-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
101
102 * lisp.h (AUTOLOADP): New macro.
103 * eval.c (Fautoload): Don't attach to loadhist, call Fdefalias instead.
104 * data.c (Ffset): Remove special ad-advice-info handling.
105 (Fdefalias): Handle autoload definitions and new Qdefalias_fset_function.
106 (Fsubr_arity): CSE.
107 (Finteractive_form): Simplify.
108 (Fquo): Don't insist on having at least 2 arguments.
109 (Qdefalias_fset_function): New var.
110
1112012-11-09 Jan Djärv <jan.h.d@swipnet.se>
112
113 * image.c (xpm_make_color_table_h): Change to hashtest_equal.
114
115 * nsfont.m (Qcondensed, Qexpanded): New variables.
116 (ns_descriptor_to_entity): Restore Qcondensed, Qexpanded setting.
117 (syms_of_nsfont): Defsym Qcondensed, Qexpanded.
118
1192012-11-09 Dmitry Antipov <dmantipov@yandex.ru>
120
121 Fix recently introduced crash on MS-Windows (Bug#12839).
122 * w32term.h (struct scroll_bar): Use convenient header.
123 (SCROLL_BAR_VEC_SIZE): Remove.
124 * w32term.c (x_scroll_bar_create): Use VECSIZE.
125
1262012-11-09 Dmitry Antipov <dmantipov@yandex.ru>
127
128 Tweak last vectorlike_header change.
129 * alloc.c (struct Lisp_Vectorlike_Free): Special type to represent
130 vectorlike object on the free list. This is introduced to avoid
131 some (but not all) pointer casting and aliasing problems, see
132 http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00105.html.
133 * .gdbinit (pvectype, pvecsize): New commands to examine vectorlike
134 objects.
135 (xvectype, xvecsize): Use them to examine Lisp_Object values.
136
1372012-11-09 Jan Djärv <jan.h.d@swipnet.se>
138
139 * nsfont.m (ns_descriptor_to_entity): Qcondensed and Qexpanded has
140 been removed, so remove them here also.
141
1422012-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
143
144 * doc.c (Fdocumentation): Handle new property
145 dynamic-docstring-function to replace the old ad-advice-info.
146
1472012-11-09 Paul Eggert <eggert@cs.ucla.edu>
148
149 * fns.c (Qeql, hashtest_eq): Now static.
150
1512012-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * lisp.h (XHASH): Redefine to be imperfect and fit in a Lisp int.
154 * fns.c (hashfn_eq, hashfn_eql, sxhash):
155 * profiler.c (hashfn_profiler): Don't use XUINT on non-integers.
156 * buffer.c (compare_overlays): Use XLI rather than XHASH.
157
1582012-11-08 Paul Eggert <eggert@cs.ucla.edu>
159
160 Use same hash function for hashfn_profiler as for hash_string etc.
161 * fns.c (SXHASH_COMBINE): Remove. All uses replaced by sxhash_combine.
162 * lisp.h (sxhash_combine): New inline function, with the contents
163 of the old SXHASH_COMBINE.
164 * profiler.c (hashfn_profiler): Use it, instead of having a
165 special hash function containing a comparison that always yields 1.
166
1672012-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
168
169 * xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic)
170 (Qultra_condensed, Qextra_condensed, Qcondensed, Qsemi_condensed)
171 (Qsemi_expanded, Qextra_expanded, Qexpanded, Qultra_expanded):
172 Remove unused vars.
173
1742012-11-08 Jan Djärv <jan.h.d@swipnet.se>
175
176 * image.c (xpm_make_color_table_h): Fix compiler error because
177 make_hash_table changed.
178
1792012-11-08 Thomas Kappler <tkappler@gmail.com> (tiny change)
180
181 * nsfont.m (ns_findfonts): Handle empty matchingDescs (Bug#11541).
182
1832012-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
184
185 Use ad-hoc comparison function for the profiler's hash-tables.
186 * profiler.c (Qprofiler_backtrace_equal, hashtest_profiler): New vars.
187 (make_log): Use them.
188 (handle_profiler_signal): Don't inhibit quit any longer since we don't
189 call Fequal any more.
190 (Ffunction_equal): New function.
191 (cmpfn_profiler, hashfn_profiler): New functions.
192 (syms_of_profiler): Initialize them.
193 * lisp.h (struct hash_table_test): New struct.
194 (struct Lisp_Hash_Table): Use it.
195 * alloc.c (mark_object): Mark hash_table_test fields of hash tables.
196 * fns.c (make_hash_table): Take a struct to describe the test.
197 (cmpfn_eql, cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql)
198 (hashfn_equal, hashfn_user_defined): Adjust to new calling convention.
199 (hash_lookup, hash_remove_from_table): Move assertion checking of
200 hashfn result here. Check hash-equality before calling cmpfn.
201 (Fmake_hash_table): Adjust call to make_hash_table.
202 (hashtest_eq, hashtest_eql, hashtest_equal): New structs.
203 (syms_of_fns): Initialize them.
204 * emacs.c (main): Move syms_of_fns earlier.
205 * xterm.c (syms_of_xterm):
206 * category.c (hash_get_category_set): Adjust call to make_hash_table.
207 * print.c (print_object): Adjust to new hash-table struct.
208 * composite.c (composition_gstring_put_cache): Adjust to new hashfn.
209
2102012-11-08 Eli Zaretskii <eliz@gnu.org>
211
212 * w32fns.c (modifier_set): Fix handling of Scroll Lock when the
213 value of w32-scroll-lock-modifier is neither nil nor one of the
214 known key modifiers. (Bug#12806)
215
2162012-11-08 Dmitry Antipov <dmantipov@yandex.ru>
217
218 Shrink struct vectorlike_header to the only size field.
219 * lisp.h (enum pvec_type): Avoid explicit enum member values.
220 Adjust comment.
221 (enum More_Lisp_Bits): Change PSEUDOVECTOR_SIZE_BITS and
222 PVEC_TYPE_MASK to arrange new bitfield in the vector header.
223 (PSEUDOVECTOR_REST_BITS, PSEUDOVECTOR_REST_MASK): New members.
224 (PSEUDOVECTOR_AREA_BITS): New member used to extract subtype
225 information from the vector header. Adjust comment.
226 (XSETPVECTYPE, XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR)
227 (PSEUDOVECTOR_TYPEP, DEFUN): Adjust to match new vector header
228 layout.
229 (XSETSUBR, SUBRP): Adjust to match new Lisp_Subr layout.
230 (struct vectorlike_header): Remove next member. Adjust comment.
231 (struct Lisp_Subr): Add convenient header. Adjust comment.
232 (allocate_pseudovector): Adjust prototype.
233 * alloc.c (mark_glyph_matrix, mark_face_cache, allocate_string)
234 (sweep_string, lisp_malloc): Remove useless prototypes.
235 (enum mem_type): Adjust comment.
236 (NEXT_IN_FREE_LIST): New macro.
237 (SETUP_ON_FREE_LIST): Adjust XSETPVECTYPESIZE usage.
238 (Fmake_bool_vector): Likewise.
239 (struct large_vector): New type to represent allocation unit for
240 the vectors with the memory footprint more than VBLOOCK_BYTES_MAX.
241 (large_vectors): Change type to struct large_vector.
242 (allocate_vector_from_block): Simplify.
243 (PSEUDOVECTOR_NBYTES): Replace with...
244 (vector_nbytes): ...new function. Adjust users.
245 (sweep_vectors): Adjust processing of large vectors.
246 (allocate_vectorlike): Likewise.
247 (allocate_pseudovector): Change type of 3rd arg to enum pvec_type.
248 Add easserts. Adjust XSETPVECTYPESIZE usage.
249 (allocate_buffer): Use BUFFER_PVEC_INIT.
250 (live_vector_p): Adjust to match large vector.
251 * buffer.c (init_buffer_once): Use BUFFER_PVEC_INIT.
252 * buffer.h (struct buffer): Add next member.
253 (BUFFER_LISP_SIZE, BUFFER_REST_SIZE, BUFFER_PVEC_INIT):
254 New macros.
255 (FOR_EACH_BUFFER): Adjust to match struct buffer change.
256 * fns.c (internal_equal): Adjust to match enum pvec_type change.
257 (copy_hash_table): Adjust to match vector header change.
258 * lread.c (defsubr): Use XSETPVECTYPE.
259 * .gdbinit (xpr, xbacktrace): Adjust to match vector header change.
260 (xvectype): Likewise. Print PVEC_NORMAL_VECTOR for regular vectors.
261 (xvecsize): New command.
262
2632012-11-08 Dmitry Antipov <dmantipov@yandex.ru>
264
265 * keyboard.c (event_to_kboard): Do not dereference
266 frame_or_window field of SELECTION_REQUEST_EVENT
267 and SELECTION_CLEAR_EVENT events (Bug#12814).
268 * xterm.h (struct selection_input_event): Adjust comment.
269
2702012-11-07 Eli Zaretskii <eliz@gnu.org>
271
272 * w32fns.c (modifier_set): Don't report modifiers from toggle key,
273 such as Scroll Lock, if the respective keys are treated as
274 function keys, not as modifiers. This avoids destroying non-ASCII
275 keyboard input when Scroll Lock is toggled ON. (Bug#12806)
276
2772012-11-07 Dmitry Antipov <dmantipov@yandex.ru>
278
279 * xfns.c (Fx_wm_set_size_hint): Use check_x_frame. Adjust docstring.
280
2812012-11-06 Paul Eggert <eggert@cs.ucla.edu>
282
283 Restore some duplicate definitions (Bug#12814).
284 This undoes part of the 2012-11-03 changes. Some people build
285 with plain -g rather than with -g3, and they need the duplicate
286 definitions for .gdbinit to work; see <http://bugs.gnu.org/12814#26>.
287 * lisp.h (GCTYPEBITS, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK):
288 Define as macros, as well as as enums or as constants.
289
2902012-11-06 Jan Djärv <jan.h.d@swipnet.se>
291
292 * nsterm.m (convert_ns_to_X_keysym, keyDown:): Add NSNumericPadKeyMask
293 to keypad keys (Bug#12816).
294
2952012-11-06 Paul Eggert <eggert@cs.ucla.edu>
296
297 Minor adjustments of recently-changed frame functions.
298 * buffer.c (Fbuffer_list): Omit CHECK_FRAME, since arg is already
299 known to be a frame (we're in the FRAMEP branch).
300 * lisp.h (Qframep): Remove decl. frame.h declares this.
301 * window.c (quad): Args are of type EMACS_INT, not ptrdiff_t,
302 since they're meant for Lisp fixnum values.
303
3042012-11-06 Dmitry Antipov <dmantipov@yandex.ru>
305
306 * window.c (Fwindow_combination_limit): Revert to the only
307 required argument and adjust docstring as suggested in
308 http://lists.gnu.org/archive/html/emacs-diffs/2012-11/msg01082.html
309 by Martin Rudalics <rudalics@gmx.at>.
310
3112012-11-06 Dmitry Antipov <dmantipov@yandex.ru>
312
313 Widely used frame validity and checking functions.
314 * frame.h (decode_live_frame, decode_any_frame): Add prototypes.
315 * frame.c (decode_live_frame, decode_any_frame): New functions.
316 (delete_frame, Fredirect_frame_focus, Fframe_parameters)
317 (Fframe_parameter, Fframe_char_height, Fframe_char_width)
318 (Fframe_pixel_height, Fframe_pixel_width, Ftool_bar_pixel_width)
319 (Fframe_pointer_visible_p): Use decode_any_frame.
320 (Fmake_frame_visible, Fmake_frame_invisible, Ficonify_frame)
321 (Fraise_frame, Flower_frame, Fmodify_frame_parameters)
322 (Fset_frame_height, Fset_frame_width): Use decode_live_frame.
323 (Fframe_focus): Likewise. Allow zero number of arguments.
324 Adjust docstring.
325 (frame_buffer_list, frame_buffer_predicate): Remove.
326 * lisp.h (frame_buffer_predicate): Remove prototype.
327 * buffer.c (Fother_buffer): Use decode_any_frame.
328 * xdisp.c (Ftool_bar_lines_needed): Likewise.
329 * xfaces.c (Fcolor_gray_p, Fcolor_supported_p): Likewise.
330 * font.c (Ffont_face_attributes, Ffont_family_list, Fopen_font)
331 (Fclose_font, Ffont_info): Use decode_live_frame.
332 * fontset.c (check_fontset_name): Likewise.
333 * terminal.c (Fframe_terminal): Likewise.
334 * w32fns.c (check_x_frame): Likewise.
335 * window.c (Fminibuffer_window, Fwindow_at)
336 (Fcurrent_window_configuration): Likewise.
337 (Frun_window_configuration_change_hook, Fwindow_resize_apply):
338 Likewise. Allow zero number of arguments. Adjust docstring.
339 * dispnew.c (Fredraw_frame): Likewise.
340 * xfaces.c (frame_or_selected_frame): Remove.
341 (Fx_list_fonts, Finternal_get_lisp_face_attribute, Fface_font)
342 (Finternal_lisp_face_equal_p, Finternal_lisp_face_empty_p)
343 (Fframe_face_alist): Use decode_live_frame.
344 * xfns.c (check_x_frame): Likewise.
345
62012-11-06 Dmitry Antipov <dmantipov@yandex.ru> 3462012-11-06 Dmitry Antipov <dmantipov@yandex.ru>
7 347
8 * window.c (quad): New function. 348 * window.c (quad): New function.
@@ -58,8 +398,8 @@
58 398
59 Remove EMACS_OUTQSIZE+sleep hack. 399 Remove EMACS_OUTQSIZE+sleep hack.
60 * dispnew.c (update_frame_1): Remove hack for terminals slower 400 * dispnew.c (update_frame_1): Remove hack for terminals slower
61 than 2400 bps, which throttled Emacs by having it sleep. This 401 than 2400 bps, which throttled Emacs by having it sleep.
62 code hasn't worked since at least 2007, when the multi-tty stuff 402 This code hasn't worked since at least 2007, when the multi-tty stuff
63 was added, and anyway those old terminals are long dead. 403 was added, and anyway those old terminals are long dead.
64 * systty.h (EMACS_OUTQSIZE): Remove; unused. The macro isn't used even 404 * systty.h (EMACS_OUTQSIZE): Remove; unused. The macro isn't used even
65 without the dispnew.c change, as dispnew.c doesn't include systty.h. 405 without the dispnew.c change, as dispnew.c doesn't include systty.h.
@@ -98,8 +438,8 @@
98 waitpid only on subprocesses that Emacs itself creates. 438 waitpid only on subprocesses that Emacs itself creates.
99 * process.c (create_process, record_child_status_change): 439 * process.c (create_process, record_child_status_change):
100 Don't use special value -1 in pid field, as the caller now must 440 Don't use special value -1 in pid field, as the caller now must
101 know the pid rather than having the callee infer it. The 441 know the pid rather than having the callee infer it.
102 inference was sometimes incorrect anyway, due to another race. 442 The inference was sometimes incorrect anyway, due to another race.
103 (create_process): Set new 'alive' member if child is created. 443 (create_process): Set new 'alive' member if child is created.
104 (process_status_retrieved): New function. 444 (process_status_retrieved): New function.
105 (record_child_status_change): Use it. 445 (record_child_status_change): Use it.
@@ -260,8 +600,8 @@
260 600
2612012-10-29 Daniel Colascione <dancol@dancol.org> 6012012-10-29 Daniel Colascione <dancol@dancol.org>
262 602
263 * cygw32.h, cygw32.c (Qutf_16le, from_unicode, to_unicode): In 603 * cygw32.h, cygw32.c (Qutf_16le, from_unicode, to_unicode):
264 preparation for fixing bug#12739, move these functions from 604 In preparation for fixing bug#12739, move these functions from
265 here... 605 here...
266 606
267 * coding.h, coding.c: ... to here, and compile them only when 607 * coding.h, coding.c: ... to here, and compile them only when