aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog308
1 files changed, 306 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c43404fa438..1040b93fe70 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,307 @@
12012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
2
3 Do not allow to set major mode for a dead buffer.
4 * buffer.c (Fset_buffer_major_mode): Signal an error
5 if the buffer is dead.
6 (Fother_buffer, other_buffer_safely): Remove redundant
7 nested declaration.
8
92012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
10
11 Always use set_buffer_if_live to restore original buffer at unwind.
12 * buffer.h (record_unwind_current_buffer): New function.
13 * bytecode.c, dispnew.c, editfns.c, fileio.c, fns.c, insdel.c:
14 * keyboard.c, keymap.c, minibuf.c, print.c, process.c, textprop.c:
15 * undo.c, window.c: Adjust users.
16 * buffer.c (set_buffer_if_live): Fix comment.
17
182012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
19
20 Fix usage of set_buffer_internal.
21 * buffer.h (set_buffer_internal): Make it BUFFER_INLINE.
22 * buffer.c (set_buffer_if_live): Use set_buffer_internal.
23 * coding.c (decode_coding): Omit redundant test.
24 * fileio.c (decide_coding_unwind): Likewise.
25 * fns.c (secure_hash): Likewise.
26 * insdel.c (modify_region): Likewise.
27 * keyboard.c (command_loop_1): Likewise.
28 * print.c (PRINTFINISH): Likewise.
29 * xdisp.c (run_window_scroll_functions): Use set_buffer_internal.
30
312012-08-27 Paul Eggert <eggert@cs.ucla.edu>
32
33 * dispnew.c: Use bool for boolean.
34 (frame_garbaged, display_completed, delayed_size_change)
35 (fonts_changed_p, add_window_display_history)
36 (add_frame_display_history, verify_row_hash)
37 (adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p)
38 (row_equal_p, realloc_glyph_pool)
39 (allocate_matrices_for_frame_redisplay)
40 (showing_window_margins_p)
41 (adjust_frame_glyphs_for_frame_redisplay)
42 (build_frame_matrix_from_leaf_window, make_current)
43 (mirrored_line_dance, mirror_line_dance, update_frame)
44 (update_window_tree, update_single_window)
45 (check_current_matrix_flags, update_window, update_text_area)
46 (update_window_line, set_window_update_flags, scrolling_window)
47 (update_frame_1, scrolling, buffer_posn_from_coords)
48 (do_pending_window_change, change_frame_size)
49 (change_frame_size_1, sit_for):
50 Use bool for boolean.
51 (clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows,
52 and remove last int (actually boolean) argument, which was always 0.
53 All callers changed.
54 * dispextern.h, frame.h, lisp.h: Reflect above API changes.
55 * dispextern.h (struct composition_it): Use bool for boolean.
56 (struct glyph_matrix): Don't assume buffer sizes can fit in 'int'.
57 (struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf.
58 * dired.c (file_name_completion):
59 Use bool for boolean. (This was missed in an earlier change.)
60
612012-08-27 Martin Rudalics <rudalics@gmx.at>
62
63 * window.c (Fset_window_configuration): Revert first part of
64 last change.
65
662012-08-27 Jan Djärv <jan.h.d@swipnet.se>
67
68 * nsterm.h (NSPanel): New class variable dialog_return.
69
70 * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
71 dialog_return.
72 (windowShouldClose:): Use stop instead of stopModalWithCode.
73 (clicked:): Ditto, and also set dialog_return (Bug#12258).
74 (timeout_handler:): Use stop instead of abortModal. Send a dummy
75 event.
76 (runDialogAt:): Make ret Lisp_Object. Set it from dialog_return when
77 modal loop returns.
78
792012-08-27 Paul Eggert <eggert@cs.ucla.edu>
80
81 * composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans.
82 * composite.c (find_composition, composition_gstring_p)
83 (composition_reseat_it, find_automatic_composition):
84 * data.c (let_shadows_buffer_binding_p)
85 (let_shadows_global_binding_p, set_internal, make_blv)
86 (Fmake_variable_buffer_local, Fmake_local_variable)
87 (Fmake_variable_frame_local, arithcompare, cons_to_unsigned)
88 (cons_to_signed, arith_driver):
89 * dbusbind.c (xd_in_read_queued_messages):
90 * dired.c (directory_files_internal, file_name_completion):
91 Use bool for booleans.
92 * dired.c (file_name_completion):
93 * process.h (fd_callback):
94 Omit int (actually boolean) argument. It wasn't being used.
95 All uses changed.
96 * composite.h, lisp.h: Reflect above API changes.
97
98 * cmds.c, coding.c: Use bool for booleans.
99 * cmds.c (move_point, Fself_insert_command):
100 * coding.h (struct composition status, struct coding_system):
101 * coding.c (detect_coding_utf_8, encode_coding_utf_8)
102 (detect_coding_utf_16, encode_coding_utf_16, detect_coding_emacs_mule)
103 (emacs_mule_char, decode_coding_emacs_mule)
104 (encode_coding_emacs_mule, detect_coding_iso_2022)
105 (decode_coding_iso_2022, encode_invocation_designation)
106 (encode_designation_at_bol, encode_coding_iso_2022)
107 (detect_coding_sjis, detect_coding_big5, decode_coding_sjis)
108 (decode_coding_big5, encode_coding_sjis, encode_coding_big5)
109 (detect_coding_ccl, encode_coding_ccl, decode_coding_raw_text)
110 (encode_coding_raw_text, detect_coding_charset)
111 (decode_coding_charset, encode_coding_charset, detect_eol)
112 (detect_coding, get_translation_table, produce_chars)
113 (consume_chars, reused_workbuf_in_use)
114 (make_conversion_work_buffer, code_conversion_save)
115 (decode_coding_object, encode_coding_object)
116 (detect_coding_system, char_encodable_p)
117 (Funencodable_char_position, code_convert_region)
118 (code_convert_string, code_convert_string_norecord)
119 (Fset_coding_system_priority):
120 * fileio.c (Finsert_file_contents):
121 Use bool for booleans.
122 * coding.h, lisp.h: Reflect above API changes.
123 * coding.c: Remove unnecessary static function decls.
124 (detect_coding): Use unsigned, not signed, to copy an unsigned field.
125 (decode_coding, encode_coding, decode_coding_gap): Return 'void',
126 not a boolean 'int', since callers never look at the return value.
127 (ALLOC_CONVERSION_WORK_AREA): Assume caller returns 'void', not 'int'.
128 * coding.h (decoding_buffer_size, encoding_buffer_size)
129 (emacs_mule_string_char): Remove unused extern decls.
130 (struct iso_2022_spec, struct coding_system):
131 Use 'unsigned int : 1' for boolean fields, since there's more than one.
132 (struct emacs_mule_spec): Remove unused field 'full_support'.
133 All initializations removed.
134 * cmds.c (internal_self_insert): Don't assume EMACS_INT fits in 'int'.
135
1362012-08-27 Dmitry Antipov <dmantipov@yandex.ru>
137
138 Fix spare memory change (Bug#12286).
139 * alloc.c (mark_maybe_pointer): Handle MEM_TYPE_SPARE.
140 (valid_lisp_object_p): Likewise.
141
1422012-08-27 Martin Rudalics <rudalics@gmx.at>
143
144 * window.c (Fset_window_configuration): Record any window's old
145 buffer if it's replaced (see Bug#8789). If the new current
146 buffer doesn't appear in the selected window, go to its old
147 point (Bug#12208).
148
1492012-08-27 Dmitry Antipov <dmantipov@yandex.ru>
150
151 Special MEM_TYPE_SPARE to denote reserved memory.
152 * alloc.c (enum mem_type): New memory type.
153 (refill_memory_reserve): Use new type for spare memory.
154 This prevents live_cons_p and live_string_p from incorrect
155 detection of uninitialized objects from spare memory as live.
156
1572012-08-26 Paul Eggert <eggert@cs.ucla.edu>
158
159 Spelling fixes.
160 * Makefile.in (.PHONY): versioclean -> versionclean.
161
162 Remove unused external symbols.
163 * data.c (Qcons, Qfloat, Qmisc, Qstring, Qvector):
164 * window.c (Qwindow_valid_p, decode_valid_window):
165 Now static, not extern.
166 * data.c (Qinterval): Remove; unused.
167 (syms_of_data): Do not define 'interval'.
168 * lisp.h (Qinteger, Qstring, Qmisc, Qvector, Qfloat, Qcons):
169 * window.h (decode_valid_window):
170 Remove decls.
171
172 * character.c, charset.c, chartab.c: Use bool for booleans.
173 * character.c (lisp_string_width, string_count_byte8)
174 (string_escape_byte8):
175 * charset.c (charset_map_loaded, load_charset_map, read_hex):
176 (load_charset_map_from_file, map_charset_chars)
177 (Fdefine_charset_internal, define_charset_internal)
178 (Fdeclare_equiv_charset, find_charsets_in_text)
179 (Ffind_charset_region, char_charset, Fiso_charset):
180 * chartab.c (sub_char_table_ref, sub_char_table_ref_and_range)
181 (sub_char_table_set, sub_char_table_set_range)
182 (char_table_set_range, optimize_sub_char_table)
183 (map_sub_char_table):
184 Use bool for boolean.
185 * character.c (str_to_unibyte): Omit last boolean argument; it was
186 always 0. All callers changed.
187 * character.h, charset.h: Adjust to match previous changes.
188 * character.h (char_printable_p): Remove decl of nonexistent function.
189 * charset.h (struct charset): Members code_linear_p, iso_chars_96,
190 ascii_compatible_p, supplementary_p, compact_codes_p, unified_p
191 are all boolean, so make them single-bit bitfields.
192
193 * lisp.h (ASET): Remove attempt to detect side effects.
194 It was meant to be temporary and it often doesn't work,
195 because when IDX has side effects the behavior of IDX==IDX
196 is undefined. See Stefan Monnier in
197 <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00762.html>.
198
1992012-08-26 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
200
201 * lisp.h (functionp): New function (extracted from Ffunctionp).
202 (FUNCTIONP): Use it.
203 * eval.c (Ffunctionp): Use it.
204
2052012-08-25 Paul Eggert <eggert@cs.ucla.edu>
206
207 * xgselect.c (xg_select): Use auto storage for the GPollFD buffer
208 as that's faster and simpler than static storage. Don't bother
209 with the g_main_context_query overhead if g_main_context_pending
210 says no events are pending.
211 (gfds, gfds_size): Remove these static vars.
212 (xgselect_initialize): Remove; no longer needed.
213 All uses and decls removed.
214
215 * emacs.c (fatal_error_signal_hook): Remove.
216 All uses removed. This leftover from old code was always 0.
217
218 * casefiddle.c, casetab.c, category.c: Use bool for boolean.
219 * casefiddle.c (casify_object, casify_region):
220 * casetab.c (set_case_table):
221 * category.c, category.h (word_boundary_p):
222 * category.h (CHAR_HAS_CATEGORY):
223 Use bool for booleans, instead of int.
224
2252012-08-25 Eli Zaretskii <eliz@gnu.org>
226
227 * makefile.w32-in ($(BLD)/alloc.$(O)): Depend on $(GNU_LIB)/execinfo.h.
228
2292012-08-25 Paul Eggert <eggert@cs.ucla.edu>
230
231 On assertion failure, print backtrace if available.
232 * alloc.c [ENABLE_CHECKING]: Include <execinfo.h>.
233 (die) [ENABLE_CHECKING]: Print a backtrace if available.
234 * Makefile.in (LIB_EXECINFO): New macro.
235 (LIBES): Use it.
236
237 * bytecode.c, callint.c, callproc.c: Use bool for boolean.
238 * bytecode.c (exec_byte_code):
239 * callint.c (check_mark, Fcall_interactively):
240 * callproc.c (Fcall_process, add_env, child_setup, getenv_internal_1)
241 (getenv_internal, sync_process_alive, call_process_exited):
242 * lisp.h (USE_SAFE_ALLOCA):
243 Use bool for booleans, instead of int.
244 * lisp.h, process.h: Adjust prototypes to match above changes.
245 * callint.c (Fcall_interactively): Don't assume the mark's
246 offset fits in 'int'.
247
2482012-08-24 Paul Eggert <eggert@cs.ucla.edu>
249
250 * buffer.c, buffer.h: Use bool for boolean.
251 * buffer.c (reset_buffer_local_variables)
252 (buffer_lisp_local_variables, Fset_buffer_modified_p)
253 (Frestore_buffer_modified_p, Fset_buffer_multibyte):
254 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
255 (overlay_touches_p, overlay_strings, Foverlay_put)
256 (report_overlay_modification, call_overlay_mod_hooks):
257 (mmap_enlarge, mmap_set_vars):
258 * buffer.h (buffer_has_overlays, uppercasep, lowercasep):
259 Use bool for booleans, instead of int.
260 * buffer.c (compact_buffer, mmap_free_1): Return void, not int,
261 since the 1-or-0 return value is always ignored anyway.
262 (mmap_initialized_p):
263 * buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int.
264 * buffer.h, lisp.h: Adjust prototypes to match above changes.
265
2662012-08-23 Paul Eggert <eggert@cs.ucla.edu>
267
268 * bidi.c: Use bool for boolean.
269 This is a bit more readable, and makes the text segment of bidi.o
270 0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15).
271 Presumably it's faster too.
272 (bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level):
273 Now bool.
274 (bidi_cache_find_level_change, bidi_cache_iterator_state)
275 (bidi_unshelve_cache, bidi_init_it, bidi_count_bytes)
276 (bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init)
277 (bidi_explicit_dir_char, bidi_level_of_next_char)
278 (bidi_find_other_level_edge, bidi_move_to_visually_next):
279 Use bool for booleans, instead of int.
280 * dispextern.h (bidi_init_it, bidi_paragraph_init)
281 (bidi_unshelve_cache): Adjust decls to match code.
282
2832012-08-23 Martin Rudalics <rudalics@gmx.at>
284
285 * keyboard.c (Fposn_at_x_y): Do not allow internal window as
286 argument.
287
2882012-08-23 Paul Eggert <eggert@cs.ucla.edu>
289
290 * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
291 * atimer.h: Include <stdbool.h>.
292
2932012-08-22 Dan Nicolaescu <dann@gnu.org>
294
295 * frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to
296 compile time tests instead of run time tests on systems that do
297 not use them.
298 (FRAME_MAC_P): Remove leftover from deleted code.
299 * frame.c (syms_of_frame): Remove leftover from deleted code.
300
3012012-08-22 Jan Djärv <jan.h.d@swipnet.se>
302
303 * nsterm.m (insertText:): Don't clear modifiers if code is space.
304
12012-08-22 Paul Eggert <eggert@cs.ucla.edu> 3052012-08-22 Paul Eggert <eggert@cs.ucla.edu>
2 306
3 * fontset.c (FONTSET_ADD): Return void, not Lisp_Object. 307 * fontset.c (FONTSET_ADD): Return void, not Lisp_Object.
@@ -60,8 +364,8 @@
60 * w32uniscribe.c (uniscribe_shape): Fix producing gstring 364 * w32uniscribe.c (uniscribe_shape): Fix producing gstring
61 components for RTL text (Bug#11860). Adjust X-OFFSET of each 365 components for RTL text (Bug#11860). Adjust X-OFFSET of each
62 non-base glyph for the width of the base character, according to 366 non-base glyph for the width of the base character, according to
63 what x_draw_composite_glyph_string_foreground expects. Generate 367 what x_draw_composite_glyph_string_foreground expects.
64 WADJUST value according to composition_gstring_width's 368 Generate WADJUST value according to composition_gstring_width's
65 expectations, to produce correct width of the composed character. 369 expectations, to produce correct width of the composed character.
66 Reverse the sign of the DU offset produced by ScriptPlace. 370 Reverse the sign of the DU offset produced by ScriptPlace.
67 371