aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog240
1 files changed, 234 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fe084b160c4..3a2a36c0cf7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,231 @@
12013-03-16 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (updateFrameSize:): Change resize increments if needed.
4 (ns_select): Don't return with result uninitialized.
5
6 * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename
7 and getDirectory.
8
9 * nsfns.m (ns_filename_from_panel, ns_directory_from_panel): New
10 functions.
11 (Fns_read_file_name): ret is BOOL. If ! dir_only_p, don't choose
12 directories. If filename is nil, get directory name (Bug#13932).
13 Use getFilename and getDirectory.
14 (getFilename, getDirectory): New methods for EmacsSavePanel and
15 EmacsOpenPanel.
16 (ok:): In EmacsOpenPanel, if we can't choose directories, just return.
17
182013-03-15 Paul Eggert <eggert@cs.ucla.edu>
19
20 * coding.c (decode_coding_gap): Fix typo caught by static checking.
21
222013-03-15 handa <handa@gnu.org>
23
24 * insdel.c (insert_from_gap): New arg text_at_gap_tail.
25 (adjust_after_replace): Make it back to static. Delete the third
26 arg text_at_gap_tail. Cancel the code for handling it.
27
28 * coding.h (struct coding_system): New member eol_seen.
29
30 * coding.c (detect_ascii): New function.
31 (detect_coding): Set coding->head_ascii and coding->eol_seen only
32 when the source bytes are actually scanned. On detecting for
33 coding_category_utf_8_auto, call detect_ascii instead of scanning
34 source bytes directly.
35 (produce_chars): Call insert_from_gap with the new arg 0.
36 (encode_coding): Likewise.
37 (decode_coding_gap): Control ASCII optimization by the variable
38 disable_ascii_optimization instead of #ifndef .. #endif.
39 Deccode EOL format according to coding->eol_seen.
40 (syms_of_coding): Declare disable-ascii-optimization as a Lisp
41 variable.
42
43 * global.h (struct emacs_globals): New member
44 f_disable_ascii_optimization.
45 (disable_ascii_optimization): New macro.
46
47 * lisp.h (adjust_after_replace): Cancel externing it.
48 (insert_from_gap): Adjust prototype.
49
502013-03-15 Eli Zaretskii <eliz@gnu.org>
51
52 * w32term.c (w32fullscreen_hook): Swap FULLSCREEN_BOTH and
53 FULLSCREEN_MAXIMIZED. (Bug#13935)
54
552013-03-15 Dmitry Antipov <dmantipov@yandex.ru>
56
57 * region-cache.c (find_cache_boundary, move_cache_gap)
58 (insert_cache_boundary, delete_cache_boundaries, set_cache_region):
59 Simplify debugging check and convert to eassert. Adjust comment.
60 (pp_cache): Put under ENABLE_CHECKING.
61
622013-03-14 Eli Zaretskii <eliz@gnu.org>
63
64 * w32term.c (w32_read_socket) <WM_WINDOWPOSCHANGED>: Remove old
65 and incorrect code. Treat WM_WINDOWPOSCHANGED like WM_ACTIVATE
66 and WM_ACTIVATEAPP.
67 (w32fullscreen_hook): If the frame is visible, reset
68 f->want_fullscreen flag after changing the frame size. If the
69 frame is not visible, set f->want_fullscreen to FULLSCREEN_WAIT.
70 (Bug#13953)
71
722013-03-13 Daniel Colascione <dancol@dancol.org>
73
74 * emacs.c (main): Call syms_of_cygw32 on CYGWIN non-NTGUI builds
75 too so that these builds can use Cygwin's file conversion
76 functions. (We've been building and linking cygw32.o all along
77 and just not using it.)
78
792013-03-13 Paul Eggert <eggert@cs.ucla.edu>
80
81 File synchronization fixes (Bug#13944).
82 * Makefile.in (LIB_FDATASYNC): New macro.
83 (LIBES): Use it.
84 * conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
85 * fileio.c (Fwrite_region, write_region_inhibit_fsync):
86 Don't worry about HAVE_FSYNC, since a substitute fsync is
87 available if the system lacks one.
88 (Fwrite_regin): Retry fsync if interrupted.
89
902013-03-13 Eli Zaretskii <eliz@gnu.org>
91
92 * w32term.c (w32_read_socket): If the Emacs frame is being
93 activated, call w32fullscreen_hook, to make sure the new frame
94 dimensions are in effect. (Bug#13937)
95
962013-03-13 Dmitry Antipov <dmantipov@yandex.ru>
97
98 * xdisp.c (init_iterator): Simplify because both character and byte
99 positions are either specified or -1. Add eassert. Adjust comment.
100 * window.c (Fscroll_other_window): Use SET_PT_BOTH because both
101 character and byte positions can be obtained from marker.
102
1032013-03-13 Paul Eggert <eggert@cs.ucla.edu>
104
105 Static checking by Sun C 5.12.
106 * alloc.c (buffer_memory_full) [REL_ALLOC]:
107 * bytecode.c (exec_byte_code):
108 * dispnew.c (init_display):
109 * eval.c (error):
110 * fileio.c (Fsubstitute_in_file_name):
111 * keyboard.c (Fevent_convert_list):
112 * keymap.c (Fsingle_key_description):
113 * term.c (maybe_fatal, fatal):
114 * xfns.c (Fx_display_backing_store, Fx_display_visual_class):
115 * xsmfns.c (Fhandle_save_session):
116 Omit unreachable code.
117 * keymap.c (map_keymap_char_table_item): Cast void * to
118 a function pointer type; the C Standard requires this.
119
120 * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.
121 Include <sys/param.h> unconditionally, as that works elsewhere and
122 is simpler here. Include <sys/sysctl.h> if DARWIN_OS ||
123 __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
124 and FreeBSD now.
125
1262013-03-11 Paul Eggert <eggert@cs.ucla.edu>
127
128 * insdel.c (adjust_after_replace): Use bool for boolean.
129
1302013-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
131
132 * keyboard.c: Move keyboard decoding to read_key_sequence.
133 (decode_keyboard_code): Remove.
134 (tty_read_avail_input): Don't try to decode input.
135 (read_decoded_char): New function.
136 (read_key_sequence): Use it.
137
1382013-03-10 Daniel Colascione <dancol@dancol.org>
139
140 * w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN)
141 (GUI_SDATA, guichar_t): Macros to abstract out differences between
142 NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of
143 w32fns.c.
144
145 * w32term.c (construct_drag_n_drop): Use the above macros to make
146 drag-and-drop work for non-ASCII filenames in cygw32 builds.
147
148 * w32fns.c (x_set_name, x_set_title): Use the above macros to
149 properly display non-ASCII frame titles in cygw32 builds.
150
151 * w32fns.c (Fw32_shell_execute): Use the above macros to properly
152 call ShellExecute in cygw32 builds.
153
154 * w32fn.c (Fx_file_dialog): Use the above macros to simplify the
155 common file dialog code.
156
157 * w32fns.c (Ffile_system_info): Remove from cygw32 builds, which
158 can just use du like other systems.
159
160 * coding.c (from_unicode_buffer): Declare.
161 * coding.c (from_unicode_buffer): Implement.
162
1632013-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * lread.c: Minor cleanup.
166 (FROM_FILE_P): New macro.
167 (skip_dyn_bytes, unreadchar, read1): Use it.
168 (read_list): Consolidate duplicated code.
169
170 * bytecode.c (struct byte_stack): Remove `constants' when unused.
171
1722013-03-10 Eli Zaretskii <eliz@gnu.org>
173
174 * xdisp.c (display_tool_bar_line, redisplay_tool_bar)
175 (redisplay_internal, set_cursor_from_row, try_window)
176 (try_window_id, dump_glyph_row, extend_face_to_end_of_line)
177 (display_line, notice_overwritten_cursor)
178 (mouse_face_from_buffer_pos, note_mouse_highlight):
179 Use MATRIX_ROW_DISPLAYS_TEXT_P.
180 (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START.
181 (mouse_face_from_string_pos, fast_find_string_pos):
182 Use MATRIX_ROW_VPOS.
183
184 * xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
185
186 * w32fns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
187
188 * xdisp.c (try_cursor_movement): Use MATRIX_ROW and
189 MATRIX_MODE_LINE_ROW.
190
191 * dispnew.c (update_window): Use MATRIX_ROW and MATRIX_MODE_LINE_ROW.
192
1932013-03-10 handa <handa@gnu.org>
194
195 * lisp.h (adjust_after_replace): Extern it.
196
197 * coding.c (detect_coding): Cound the heading ASCII bytes in the
198 case of detection for coding_category_utf_8_auto.
199 (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]:
200 Skip decoding if all bytes are ASCII.
201
202 * insdel.c (adjust_after_replace): Make it public. New arg
203 text_at_gap_tail.
204 (adjust_after_insert): Call adjust_after_replace with the new arg
205 value 0.
206
2072013-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
208
209 * keyboard.h (EVENT_START, EVENT_END, POSN_WINDOW, POSN_POSN)
210 (POSN_WINDOW_POSN, POSN_TIMESTAMP): Be careful since events may come
211 from Elisp via unread-command-events.
212
213 * keyboard.c (access_keymap_keyremap): Accept nil return value from
214 functions to mean "no change".
215
2162013-03-08 Paul Eggert <eggert@cs.ucla.edu>
217
218 region-cache.c, scroll.c, search.c: Use bool for booleans.
219 * lisp.h (compile_pattern):
220 * scroll.c (do_scrolling, do_direct_scrolling):
221 * search.c (struct regexp_cache, compile_pattern_1)
222 (compile_pattern, string_match_1, search_command)
223 (trivial_regexp_p, search_buffer, Freplace_match, match_limit)
224 (search_regs_saved, Fregexp_quote):
225 Use bool for boolean.
226 * region-cache.c (region_cache_forward, region_cache_backward):
227 Fix comments to match code: these functions return int, not boolean.
228
12013-03-08 Dmitry Antipov <dmantipov@yandex.ru> 2292013-03-08 Dmitry Antipov <dmantipov@yandex.ru>
2 230
3 * search.c (find_newline): Accept start and end byte positions 231 * search.c (find_newline): Accept start and end byte positions
@@ -6,8 +234,8 @@
6 * lisp.h (find_newline, find_newline_no_quit): Adjust prototype. 234 * lisp.h (find_newline, find_newline_no_quit): Adjust prototype.
7 * bidi.c (bidi_find_paragraph_start): Pass byte position to 235 * bidi.c (bidi_find_paragraph_start): Pass byte position to
8 find_newline_no_quit, thus eliminating CHAR_TO_BYTE. 236 find_newline_no_quit, thus eliminating CHAR_TO_BYTE.
9 * editfns.c (Fconstrain_to_field): Break long line. Adjust 237 * editfns.c (Fconstrain_to_field): Break long line.
10 call to find_newline. 238 Adjust call to find_newline.
11 * indent.c (vmotion): Adjust calls to find_newline_no_quit. 239 * indent.c (vmotion): Adjust calls to find_newline_no_quit.
12 Use DEC_BOTH to start next search from the previous buffer 240 Use DEC_BOTH to start next search from the previous buffer
13 position, where appropriate. 241 position, where appropriate.
@@ -257,8 +485,8 @@
257 485
2582013-03-02 Eli Zaretskii <eliz@gnu.org> 4862013-03-02 Eli Zaretskii <eliz@gnu.org>
259 487
260 * textprop.c (Fadd_text_properties, Fremove_text_properties): If 488 * textprop.c (Fadd_text_properties, Fremove_text_properties):
261 the interval tree changes as a side effect of calling 489 If the interval tree changes as a side effect of calling
262 modify_region, re-do processing starting from the call to 490 modify_region, re-do processing starting from the call to
263 validate_interval_range. (Bug#13743) 491 validate_interval_range. (Bug#13743)
264 492
@@ -334,8 +562,8 @@
334 * textprop.c (Fadd_text_properties, Fremove_text_properties) 562 * textprop.c (Fadd_text_properties, Fremove_text_properties)
335 (Fremove_list_of_text_properties): Skip all of the intervals in 563 (Fremove_list_of_text_properties): Skip all of the intervals in
336 the region between START and END that already have resp. don't 564 the region between START and END that already have resp. don't
337 have the requested properties, not just the first one. Add 565 have the requested properties, not just the first one.
338 assertions that the loop afterwards always modifies the 566 Add assertions that the loop afterwards always modifies the
339 properties. (Bug#13743) 567 properties. (Bug#13743)
340 568
3412013-02-25 Stefan Monnier <monnier@iro.umontreal.ca> 5692013-02-25 Stefan Monnier <monnier@iro.umontreal.ca>