aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorRichard Stallman2015-04-05 08:36:56 -0400
committerRichard Stallman2015-04-05 08:42:43 -0400
commit4e23cd0ccde4ad1e14fe2870ccf140487af649b2 (patch)
treeb709ac1e92a892f6ec1faa85eb59a9e5960c25dd /src/ChangeLog
parentdca743f0941909a80e3f28c023977120b6203e20 (diff)
parent16eec6fc55dcc05d1d819f18998e84a9580b2521 (diff)
downloademacs-4e23cd0ccde4ad1e14fe2870ccf140487af649b2.tar.gz
emacs-4e23cd0ccde4ad1e14fe2870ccf140487af649b2.zip
* mail/rmail.el (rmail-show-message-1): When displaying a mime message,
indicate start and finish in the echo area. * mail/rmail.el (rmail-epa-decrypt): Disregard <pre> before armor. Ignore more kinds of whitespace in mime headers. Modify the decrypted mime part's mime type so it will be displayed by default when visiting this message again. * net/browse-url.el (browse-url-firefox-program): Prefer IceCat, doc. (browse-url-firefox-arguments) (browse-url-firefox-startup-arguments): Doc fix.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog815
1 files changed, 792 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5635e1b5e8f..1c3f933d7d8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,19 +1,787 @@
12015-02-01 Joakim Verona <joakim@verona.se> 12015-04-04 Jan Djärv <jan.h.d@swipnet.se>
2 Support for the new Xwidget feature. 2
3 * window.c, Makefile.in, buffer.c, dispextern.h, dispnew.c, emacs.c: 3 * xselect.c (x_reply_selection_request)
4 * emacsgtkfixed.c, emacsgtkfixed.h, keyboard.c, lisp.h, print.c: 4 (receive_incremental_selection): Call set_property_change_object
5 * termhooks.h, window.c, xdisp.c, xterm.c 5 inside block_input.
6 New files for xwidgets: 6 (wait_for_property_change): Move set property_change_reply(_object)
7 * xwidget.c, xwidget.h: 7 outside of this function (Bug#16737).
8 Support for testing xwidgets 8 (set_property_change_object): New function.
9 * xwidget-test-manual.el: 9
10 102015-04-03 Jan Djärv <jan.h.d@swipnet.se>
112015-02-01 Grégoire Jadi <daimrod@gmail.com> 11
12 Support for testing xwidgets 12 * xterm.c (handle_one_xevent): Always redraw tool tips on
13 * parallell-remote.el, parallell-xwidget.el, parallell.el: 13 MapNotify. Update tool tip frame sizes on ConfigureNotify.
14 * xwidget-tests.el: 14
15 various improvements to xwidgets: 152015-03-31 Eli Zaretskii <eliz@gnu.org>
16 * xwidgets.c: 16
17 * keyboard.c (read_key_sequence): Don't let
18 this_single_command_key_start become negative. (Bug#20223)
19
202015-03-29 Jan Djärv <jan.h.d@swipnet.se>
21
22 * gtkutil.c (xg_display_open):
23 * xterm.c (x_display_ok, x_term_init): Block SIGIO when opening
24 a display (Bug#19175).
25
262015-03-29 Martin Rudalics <rudalics@gmx.at>
27
28 * gtkutil.c (update_theme_scrollbar_width): Don't round up
29 scroll bar width with GTK3 (Bug#20182).
30
312015-03-28 Jan Djärv <jan.h.d@swipnet.se>
32
33 * xsmfns.c (smc_save_yourself_CB): Return if Vinvocation_name or
34 user_login_name are not strings.
35
362015-03-28 Eli Zaretskii <eliz@gnu.org>
37
38 * w32.c (sys_connect): Fix a mistake in previous commit that broke
39 blocking connections. (Bug#20159)
40
412015-03-27 Paul Eggert <eggert@cs.ucla.edu>
42
43 Avoid some core dumps in X session management
44 Derived from a bug report by Nicolas Richard in:
45 http://bugs.gnu.org/20191#20
46 * xsmfns.c (smc_save_yourself_CB): Don't dump core if
47 invocation-name is not a string. Initialize user-login-name if it
48 is not already initialized, and don't dump core if it is not a
49 string.
50 (create_client_leader_window): Don't dump core if x-resource-name
51 and x-resource-class are not both strings.
52 (x_session_initialize): Don't dump core if x-session-previous-id,
53 invocation-directory, and invocation-name are not strings.
54
55 Port user-login-name initialization to Qnil == 0
56 Derived from a bug report by Nicolas Richard in:
57 http://bugs.gnu.org/20191#20
58 * editfns.c (Fuser_login_name, Fuser_real_login_name)
59 (syms_of_editfns): Don't rely on all-bits-zero being an Elisp integer,
60 as this is no longer true now that Qnil == 0.
61
62 Assume !BROKEN_NON_BLOCKING_CONNECT
63 From a suggestion by Eli Zaretskii in:
64 http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00824.html
65 * process.c (NON_BLOCKING_CONNECT): Simplify by assuming that
66 BROKEN_NON_BLOCKING_CONNECT is not defined.
67 (SELECT_CAN_DO_WRITE_MASK): Remove, and assume it's now true.
68
692015-03-27 Eli Zaretskii <eliz@gnu.org>
70
71 * lread.c (substitute_object_recurse): For sub-char-tables, start
72 the recursive SUBSTITUTE loop from index of 2, to skip the
73 non-Lisp members of the sub-char-table. See the discussion at
74 http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00520.html
75 for the details.
76
77 Support non-blocking connect on MS-Windows.
78 Based on ideas from Kim F. Storm <storm@cua.dk>, see
79 http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00873.html.
80
81 * w32proc.c (reader_thread): If the FILE_CONNECT flag is set, call
82 '_sys_wait_connect'. If it returns STATUS_CONNECT_FAILED, exit
83 the thread with code 2.
84 (sys_select): Support 'wfds' in addition to 'rfds'. If a
85 descriptor in 'wfds' has its bit set, but the corresponding
86 fd_info member doesn't have its FILE_CONNECT flag set, ignore the
87 descriptor. Otherwise, acknowledge a successful non-blocking
88 connect by resetting the FILE_CONNECT flag and setting cp->status
89 to STATUS_READ_ACKNOWLEDGED. (Bug#20159)
90
91 * w32.h (STATUS_CONNECT_FAILED): New enumeration value.
92 (struct _child_process): New member 'errcode'.
93 (FILE_CONNECT): New flag.
94 (_sys_wait_connect): Add prototype.
95
96 * w32.c (pfn_WSAEnumNetworkEvents): New function pointer.
97 (init_winsock): Load WSAEnumNetworkEvents from winsock DLL.
98 (set_errno): Map WSAEWOULDBLOCK and WSAENOTCONN.
99 (sys_connect): Support non-blocking 'connect' calls by setting the
100 FILE_CONNECT flag in the fd_info member and returning EINPROGRESS.
101 (_sys_read_ahead): Add debug message if this function is called
102 for a descriptor that waits for a non-blocking connect to complete.
103 (_sys_wait_connect): New function.
104 (sys_read): Support STATUS_CONNECT_FAILED. Return the error code
105 recorded by _sys_wait_connect when the non-blocking connect
106 failed. Don't call WSAGetLastError before a call to set_errno had
107 a chance to use its value, since WSAGetLastError clears the last
108 error.
109
1102015-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * editfns.c (save_excursion_save): Don't save the mark.
113 (save_excursion_restore): Don't restore the mark.
114 (Fsave_excursion): Fix docstring accordingly.
115
1162015-03-24 Paul Eggert <eggert@cs.ucla.edu>
117
118 Fix minor ldexp issues
119 * floatfns.c (Fldexp): Require 2 args. Avoid undefined behavior
120 if the exponent is out of 'int' range. Improve documentation.
121 Fixes: bug#20185
122
1232015-03-24 Daniel Colascione <dancol@dancol.org>
124
125 * process.c (Fprocess_running_child_p): Return number identifier of
126 the foreground process group if we know it.
127
1282015-03-23 Paul Eggert <eggert@cs.ucla.edu>
129
130 Minor refactoring of new Fmake_process code
131 * process.c (Fmake_process): Refactor to avoid call to Flength, to
132 avoid cast to 'char **', and to reduce indenting and reuse of locals.
133
1342015-03-23 Daiki Ueno <ueno@gnu.org>
135
136 * process.c (Fmake_process): New function.
137 (create_process, create_pty): Check p->pty_flag instead of
138 Vprocess_connection_type.
139 (syms_of_process): Register QCcommand, QCconnection_type, Qpty,
140 Qpipe, and Smake_process. Unregister Sstart_process.
141
1422015-03-22 Jan Djärv <jan.h.d@swipnet.se>
143
144 * fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for
145 regexsize (Bug#20156).
146
1472015-03-21 Eli Zaretskii <eliz@gnu.org>
148
149 * emacs.c (synchronize_locale) [WINDOWSNT]: Ignore 'category' and
150 always use LC_ALL instead. Fixes problems with setting
151 system-time-locale to something non-default.
152
1532015-03-18 Glenn Morris <rgm@gnu.org>
154
155 * frame.h (x_set_bitmap_icon): Don't set the icon if icon-type is
156 nil/not present in the parameter alist. (Bug#19680)
157
1582015-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
159
160 * alloc.c (purecopy): Handle hash-tables.
161
1622015-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
163
164 * minibuf.c (Fread_buffer): Add `predicate' argument.
165 * callint.c (Fcall_interactively): Adjust calls accordingly.
166
1672015-03-15 Eli Zaretskii <eliz@gnu.org>
168
169 * xdisp.c (handle_invisible_prop): Fix up it->position even when
170 we are going to load overlays at the beginning of the invisible text.
171 (setup_for_ellipsis): Reset the ignore_overlay_strings_at_pos_p
172 flag also here.
173 (next_overlay_string): Set the overlay_strings_at_end_processed_p
174 flag only if the overlays just processed were actually loaded at EOB.
175
1762015-03-14 Daniel Colascione <dancol@dancol.org>
177
178 * emacs.c (standard_args): Add --no-x-resources.
179 (usage_message): Document that -Q implies --no-x-resources.
180
1812015-03-13 Paul Eggert <eggert@cs.ucla.edu>
182
183 * frame.c (x_get_resource_string) [!USE_GTK]: Don't define.
184
185 * editfns.c, systime.h (mktime_z) [!HAVE_TZALLOC]: Now static.
186
1872015-03-12 Eli Zaretskii <eliz@gnu.org>
188
189 * w32font.c (font_supported_scripts): Add subranges for Latin
190 Supplement, Latin Extended-A/B, Vai, Supplemental Punctuation, Tai
191 Le, Buginese, Yijing Hexagrams, Ancient Greek Numbers, Tai Xuan
192 Jing, Counting Rods, Sundanese, Lepcha, Ol Chiki, Saurashtra,
193 Kayah Li, Rejang, Ancient Symbols, Phistos Disc, Carian, Lycian,
194 Lydian, Dominoe Tiles, and Mahjong Tiles. Break the Mathematical
195 Alphanumeric Symbols into several "scripts" like fontset.el does.
196 (Bug#19993)
197 (syms_of_w32font): DEFSYM all the new script symbols.
198
1992015-03-07 Eli Zaretskii <eliz@gnu.org>
200
201 * w32fns.c <ImmReleaseContext_Proc, ImmSetCompositionWindow_Proc>:
202 Fix typedefs to be consistent with the corresponding w32 API
203 signatures.
204 (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Don't invoke
205 DefWindowProc if we successfully handled the message, as doing so
206 causes problems in displaying selection dialogs. (Bug#11732)
207
2082015-03-05 Paul Eggert <eggert@cs.ucla.edu>
209
210 Work around x86 glibc backtrace bug
211 * sysdep.c (emacs_backtrace): Don't dump core on x86.
212 Fixes: bug#19959
213
2142015-03-05 Eli Zaretskii <eliz@gnu.org>
215
216 * keyboard.c (make_lispy_position): When the click is on the
217 right-side vertical scroll bar, pass the rightmost X coordinate to
218 buffer_posn_from_coords, so that the returned text position
219 reflects the closest point to the click. Fixes region extension
220 when mouse moves outside the Emacs frame that has scroll bars on
221 the right.
222
2232015-03-04 Martin Rudalics <rudalics@gmx.at>
224
225 * frame.c (x_set_font): Try to keep frame height and width
226 unchanged if tool bar size changes with new font.
227
2282015-03-03 Eli Zaretskii <eliz@gnu.org>
229
230 * search.c (find_newline): Avoid assertion violations in
231 CHAR_TO_BYTE when a portion of the buffer was deleted and we look
232 for newlines near the end of the buffer. This happens in Rmail
233 when JIT font-lock fontifies a newly displayed portion of the
234 buffer.
235
2362015-03-03 Eli Zaretskii <eliz@gnu.org>
237
238 * w32fns.c (Fw32__menu_bar_in_use): New internal function.
239 (Bug#19925)
240
2412015-03-03 Glenn Morris <rgm@gnu.org>
242
243 * fileio.c (Fmake_temp_name): Doc tweaks. (Bug#19858)
244
2452015-03-03 Eli Zaretskii <eliz@gnu.org>
246
247 * menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
248 mouse_position_for_popup only for X frames. (Bug#19862)
249
2502015-03-03 Eli Zaretskii <eliz@gnu.org>
251
252 * buffer.c (syms_of_buffer): Doc fix. (Bug#19841)
253
2542015-03-03 Eli Zaretskii <eliz@gnu.org>
255
256 * xfaces.c (map_tty_color): Use assoc_no_quit instead of
257 assq_no_quit to fetch color definition by its string name.
258 (Bug#19802)
259
2602015-03-03 Eli Zaretskii <eliz@gnu.org>
261
262 * xdisp.c (move_it_in_display_line_to): Handle the case where the
263 last character of a screen line is whitespace, and we are under
264 word-wrap with overflow-newline-into-fringe turned on.
265 (Bug#19769)
266
2672015-03-03 Eli Zaretskii <eliz@gnu.org>
268
269 * xdisp.c (handle_stop, handle_single_display_spec)
270 (next-element_from_image): Don't reset the
271 ignore_overlay_strings_at_pos_p flag here.
272 (next_element_from_buffer): Reset ignore_overlay_strings_at_pos_p
273 here.
274 (next_overlay_string): Set ignore_overlay_strings_at_pos_p here,
275 after we've exhausted all the overlay strings at the current
276 position. (Bug#19307)
277
2782015-03-03 Eli Zaretskii <eliz@gnu.org>
279
280 * xdisp.c (set_iterator_to_next): Set value of stop_charpos
281 according to the object we are about to resume iterating.
282 (Bug#19307)
283
284 * dispnew.c (adjust_glyph_matrix): Set the update_mode_line flag
285 of the window whose current glyph matrix was resized, which
286 disables the mode-line row as side effect.
287
288 * xdisp.c (redisplay_window): Don't avoid redisplay of a window
289 whose update_mode_line flag is set. (Bug#19721)
290
2912015-03-03 Eli Zaretskii <eliz@gnu.org>
292
293 * dispextern.h (FACE_FOR_CHAR): Fix the commentary.
294
2952015-03-03 Daniel Colascione <dancol@dancol.org>
296
297 * alloc.c (syms_of_alloc): Rename `gc-precise-p' to `gc-precise'.
298
2992015-03-03 Paul Eggert <eggert@cs.ucla.edu>
300
301 * alloc.c (run_finalizers): Omit unused local.
302 Also, redo newly-added code as per usual Emacs style.
303
3042015-03-03 Martin Rudalics <rudalics@gmx.at>
305
306 * frame.c (adjust_frame_size): If the pixel sizes remain
307 unchanged but the number of lines or columns of the frame
308 changes, run `window--pixel-to-total' (Bug#19972).
309 (Qwindow_pixel_to_total): DEFSYM it.
310
3112015-03-03 Daniel Colascione <dancol@dancol.org>
312
313 * print.c (print_object): Print whether a finalizer has
314 been called.
315
316 * data.c (Ftype_of): Make `type-of' work with finalizers.
317 (syms_of_data): Register Qfinalizer.
318
3192015-03-02 Daniel Colascione <dancol@dancol.org>
320
321 * print.c (print_object): Print finalizers.
322
323 * alloc.c:
324 (finalizers, doomed_finalizers): New variables.
325 (init_finalizer_list, finalizer_insert, unchain_finalizer)
326 (mark_finalizer_list, queue_doomed_finalizers)
327 (run_finalizer_handler, run_finalizer_function, run_finalizers):
328 New functions.
329 (garbage_collect_1, mark_object, sweep_misc)
330 (init_alloc_once, syms_of_alloc): Support finalizers.
331 (gc-precise-p): New Lisp variable.
332
333 * lisp.h (Lisp_Misc_Type): New value Lisp_Misc_Finalizer.
334 (FINALIZERP, XFINALIZER): New functions.
335 (Lisp_Finalizer): New structure.
336
3372015-02-28 Paul Eggert <eggert@cs.ucla.edu>
338
339 * character.c (alphabeticp, decimalnump): Avoid undefined behavior
340 if CATEGORY is not an integer, or is an integer out of
341 unicode_category_t range.
342
3432015-02-28 Martin Rudalics <rudalics@gmx.at>
344
345 * frame.c (make_initial_frame, Fmake_terminal_frame):
346 Set can_x_set_window_size and after_make_frame (Bug#19962).
347
3482015-02-28 Eli Zaretskii <eliz@gnu.org>
349
350 * character.c (alphabeticp, decimalnump): New functions.
351 * character.h (alphabeticp, decimalnump): Add prototypes.
352
353 * regex.c (ISALNUM, ISALPHA): Check Unicode character properties
354 for multibyte characters by calling alphabeticp and decimalnump.
355 (BIT_ALPHA, BIT_ALNUM): New bit masks.
356 (re_wctype_to_bit): Return them when the class is RECC_ALPHA or
357 RECC_ALNUM.
358 (re_match_2_internal): Call ISALPHA and ISALNUM when appropriate.
359 (Bug#19878)
360
3612015-02-27 Jan Djärv <jan.h.d@swipnet.se>
362
363 * xterm.h (x_real_pos_and_offsets): Take outer_border as arg also.
364
365 * xmenu.c (x_menu_show): Adjust for new arg to x_real_pos_and_offsets.
366
367 * xfns.c (x_real_pos_and_offsets): Take outer_border as arg also.
368 Initialize all args. Get outer_border from window attributes.
369 Fix typo for top_offset_y.
370 (x_real_positions): Adjust for new arg to x_real_pos_and_offsets.
371 (Fx_frame_geometry): Get outer_border also. Use attrs.width/height.
372
3732015-02-27 Mark Laws <mdl@60hz.org>
374
375 Support daemon mode on MS-Windows (bug#19688)
376 * emacs.c <w32_daemon_event> [WINDOWSNT]: New global var.
377 (main) [WINDOWSNT]: Initialize it to NULL. Create the event to
378 signal clients we are ready for connections.
379 (Fdaemon_initialized): Use DAEMON_RUNNING.
380 [WINDOWSNT]: MS-Windows specific code to signal clients we are
381 ready for connections.
382
383 * lisp.h (DAEMON_RUNNING): New macro, encapsulates Posix and
384 MS-Windows conditions for running in daemon mode.
385
386 * minibuf.c (read_minibuf): Use DAEMON_RUNNING.
387
388 * keyboard.c (kbd_buffer_get_event): Use DAEMON_RUNNING.
389
390 * dispnew.c (init_display) [WINDOWSNT]: Initialize frames/terminal
391 even in daemon mode.
392
3932015-02-26 Jan Djärv <jan.h.d@swipnet.se>
394
395 * xmenu.c (create_and_show_popup_menu): Call XTranslateCoordinates,
396 dont use OUTER_TO_INNER macros.
397 (x_menu_show): Call x_real_pos_and_offsets, don't use
398 OUTER_TO_INNER macros.
399
4002015-02-26 Eli Zaretskii <eliz@gnu.org>
401
402 * dispextern.h (FACE_FOR_CHAR): Fix the commentary.
403
4042015-02-26 Hans Wennborg <hwennborg@google.com> (tiny change)
405
406 * emacs.c (decode_env_path): Add parentheses around ternary
407 operator to increase readability and pacify compiler warnings.
408
4092015-02-26 Eli Zaretskii <eliz@gnu.org>
410
411 * w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not
412 ready") to ENOENT.
413
4142015-02-26 Paul Eggert <eggert@cs.ucla.edu>
415
416 * xfns.c (x_real_pos_and_offsets): Fix pointer signedness.
417
4182015-02-25 Jan Djärv <jan.h.d@swipnet.se>
419
420 * xterm.h (struct x_output): Remove x_pixels_outer_diff,
421 y_pixels_outer_diff, FRAME_OUTER_TO_INNER_DIFF_X,
422 FRAME_OUTER_TO_INNER_DIFF_Y. Declare x_real_pos_and_offsets.
423
424 * xmenu.c (create_and_show_popup_menu): Use XTranslateCoordinates
425 instead of OUTER_TO_INNER_DIFF macros.
426
427 * xfns.c (x_real_pos_and_offsets): New function, basically the code
428 from x_real_positions.
429 (x_real_positions): Call x_real_pos_and_offsets.
430 (x_relative_mouse_position): Use XTranslateCoordinates instead of
431 OUTER_TO_INNER_DIFF macros.
432 (Fx_frame_geometry): Get offsets with x_real_pos_and_offsets,
433 border from window attributes. Adjust tool bar and menu widths.
434
435 * w32fns.c (x_real_positions): Remove setting of x_pixels_diff,
436 y_pixels_diff.
437
438 * frame.h (struct frame): Remove x_pixels_diff, y_pixels_diff.
439
4402015-02-25 Paul Eggert <eggert@cs.ucla.edu>
441
442 Backtrace after malloc arena is corrupted
443 Without this change, if the malloc arena is corrupted and then
444 'backtrace' is called, the backtrace can crash because 'backtrace'
445 calls 'malloc'. For more, please see:
446 https://sourceware.org/ml/libc-alpha/2015-02/msg00678.html
447 * emacs.c (main): Initialize tables used by 'backtrace'.
448 * sysdep.c (emacs_backtrace): Document the newly used part of the API.
449
4502015-02-22 Jan Djärv <jan.h.d@swipnet.se>
451
452 * nsfns.m (Fx_frame_geometry): New function.
453 (syms_of_nsfns): Defsubr Sx_frame_geometry.
454
4552015-02-22 Paul Eggert <eggert@cs.ucla.edu>
456
457 Spelling fixes
458 * lisp.h (DEFINE_NON_NIL_Q_SYMBOL_MACROS):
459 Rename from DEFINE_NONNIL_Q_SYMBOL_MACROS. All uses changed.
460
4612015-02-21 Eli Zaretskii <eliz@gnu.org>
462
463 * w32term.c (queue_notifications):
464 * w32inevt.c (handle_file_notifications):
465 * w32font.c (w32_enumfont_pattern_entity): Prefer 'Qfoo' to
466 'intern ("foo")'.
467
4682015-02-21 Paul Eggert <eggert@cs.ucla.edu>
469
470 Prefer 'Qfoo' to 'intern ("foo")'
471 * buffer.c (syms_of_buffer):
472 * bytecode.c (exec_byte_code):
473 * callint.c (Fcall_interactively):
474 * callproc.c (create_temp_file):
475 * charset.c (define_charset_internal):
476 * coding.c (syms_of_coding):
477 * editfns.c (syms_of_editfns):
478 * emacs.c (main):
479 * fns.c (syms_of_fns):
480 * frame.c (delete_frame, Fframe_parameters):
481 * keyboard.c (syms_of_keyboard):
482 * keymap.c (syms_of_keymap):
483 * minibuf.c (read_minibuf, syms_of_minibuf):
484 * nsfns.m (ns_cursor_type_to_lisp):
485 * textprop.c (syms_of_textprop):
486 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
487 * xfns.c (x_create_tip_frame, Fx_select_font):
488 * xml.c (parse_region):
489 Prefer constants like 'Qfoo' to calls like 'intern ("foo")'.
490 * buffer.c (syms_of_buffer): OK to do (put 'erase-buffer 'disabled
491 t) here now ...
492 (keys_of_buffer): ... instead of here.
493 * ftfont.c (syms_of_ftfont): Move DEFSYM of Qmono from here ...
494 * xfns.c (syms_of_xfns): ... to here, since ftfont.c is more
495 optional than xfns.c.
496
4972015-02-20 Jan Djärv <jan.h.d@swipnet.se>
498
499 * emacs.c (terminate_due_to_signal): Move totally_unblock_input after
500 setting fatal_error_in_progress, so gobble_input and *read_socket are
501 not read if there are pending_signals.
502
5032015-02-20 Paul Eggert <eggert@cs.ucla.edu>
504
505 Simplify binary I/O configuration
506 * lread.c (Fload): Prefer FOPEN_TEXT and FOPEN_BINARY to #ifdef DOS_NT.
507 * sysstdio.h: Add copyright notice. Include <fcntl.h>.
508 (FOPEN_BINARY, FOPEN_TEXT): New macros.
509 * xfaces.c (Fx_load_color_file): Use FOPEN_TEXT, since POSIX
510 doesn't guarantee that "t" will work.
511
5122015-02-19 Eli Zaretskii <eliz@gnu.org>
513
514 * keyboard.c (read_char): Make sure this_single_command_key_start
515 is in sync with this_command_key_count, around the call to
516 input-method-function. (Bug#19774)
517
5182015-02-19 Fujii Hironori <fujii.hironori@gmail.com> (tiny change)
519
520 * w32fns.c (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Pass the
521 message to DefWindowProc, after positioning the IME window, to
522 trigger its display. (Bug#11732)
523
5242015-02-18 Eli Zaretskii <eliz@gnu.org>
525
526 * emacs.c (Fkill_emacs): Exit with specified exit code even if
527 stdin is at EOF. (Bug#19897)
528
5292015-02-18 Oscar Fuentes <ofv@wanadoo.es>
530
531 * keyboard.c (read_char): When there is an input method function,
532 do not restore the echo area if a prefix argument is being
533 introduced. (Bug#19875)
534
5352015-02-16 Kelly Dean <kelly@prtime.org>
536
537 * src/keyboard.c (timer_check_2): Fix incorrect comment.
538
5392015-02-14 Martin Rudalics <rudalics@gmx.at>
540
541 * xterm.c (x_frame_normalize_before_maximize): Fix doc-string.
542 Suggested by Alan Mackenzie <acm@muc.de>.
543
5442015-02-14 Eli Zaretskii <eliz@gnu.org>
545
546 * menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
547 x_relative_mouse_position only for X frames. (Bug#19862)
548
5492015-02-13 Paul Eggert <eggert@cs.ucla.edu>
550
551 Better support for future plugins
552 * lisp.h (DEFINE_LISP_SYMBOL): New macro, replacing and simplifying
553 DEFINE_LISP_SYMBOL_BEGIN / DEFINE_LISP_SYMBOL_END. All uses changed.
554 (DEFINE_NONNIL_Q_SYMBOL_MACROS): New macro, defaulting to true.
555
5562015-02-11 Martin Rudalics <rudalics@gmx.at>
557
558 * w32term.c (w32_read_socket): In SIZE_MAXIMIZED and
559 SIZE_RESTORED cases correctly handle `maximized' value for the
560 `fullscreen' parameter. Don't use 'maximized' frame parameter
561 any more.
562 (w32fullscreen_hook): Include menu bar height when calculating
563 new text height in FULLSCREEN_BOTH case.
564 * xterm.c (do_ewmh_fullscreen): Handle transition from
565 FULLSCREEN_BOTH to FULLSCREEN_MAXIMIZED when
566 x_frame_normalize_before_maximize is set.
567
5682015-02-10 Paul Eggert <eggert@cs.ucla.edu>
569
570 Use bool for boolean in xdisp.c
571 * dispextern.h (display_prop_intangible_p, resize_mini_window)
572 (pixel_to_glyph_coords, mark_window_display_accurate)
573 (compute_display_string_pos, handle_tool_bar_click)
574 (x_intersect_rectangles, clear_mouse_face, display_tty_menu_item):
575 * lisp.h (setup_echo_area_for_printing, message_with_string)
576 (pos_visible_p): Use bool for boolean.
577 * xdisp.c: Use bool, true, false intstead of int, 1, 0.
578 Remove unnecessary forward decls.
579 (trace_move) [DEBUG_TRACE_MOVE]: Now static.
580 (CHECK_IT, CHECK_WINDOW_END):
581 Now an inline function that is always defined.
582 (check_it) [0]:
583 (check_window_end) [oGLYPH_DEBUG && ENABLE_CHECKING]:
584 Remove; no longer needed.
585 (handle_stop): Prefer (X && !Y) to (X ? !Y : 0).
586 (get_overlay_strings): Omit unnecessary casts.
587 (forward_to_next_line_start):
588 (Ftool_bar_height):
589 Prefer !BOOL to (BOOL ? 0 : 1).
590 (next_element_function): New typedef.
591 (get_next_element): Use it. Now const.
592 (IT_POS_VALID_AFTER_MOVE_P): Prefer !X || Y==0 to (X ? Y==0 : 1).
593 (vmessage): Now ATTRIBUTE_FORMAT_PRINTF (1, 0), to pacify GCC 4.9.2
594 (display_echo_area): Prefer BOOLEXPR to BOOLEXPR ? 1 : 0.
595 (tool_bar_item_info): Simplify.
596 (invisible_prop): Rename from invisible_p, since it doesn't
597 return bool. All callers changed.
598 (x_produce_glyphs): Simplify.
599
6002015-02-09 Paul Eggert <eggert@cs.ucla.edu>
601
602 Check for some overflows in vertical-motion
603 * indent.c (window_column_x): New function.
604 (Fvertical_motion): Use it to protect against integer overflow
605 when computing column. Prefer extract_float to doing things by hand.
606 Avoid unnecessary casts.
607
608 * xfont.c: Minor style fixes
609 (xfont_list_pattern): Reindent to 80 cols and use Emacs-style comments.
610 Redo loop so that less indentation is needed.
611
6122015-02-09 Eli Zaretskii <eliz@gnu.org>
613
614 * indent.c (Fvertical_motion): Accept an additional argument
615 CUR-COL and use it as the starting screen coordinate.
616 * window.c (window_scroll_line_based, Fmove_to_window_line):
617 All callers of vertical-motion changed.
618
6192015-02-09 Dima Kogan <dima@secretsauce.net>
620
621 * font.c (font_score): Remove unused variable assignment.
622
6232015-02-09 Dima Kogan <dima@secretsauce.net>
624
625 * xfaces.c (realize_basic_faces): Don't set Qscalable_fonts_allowed to
626 t.
627 * font.c (font_score): Try to find a font without scaling first,
628 and only accept scalable fonts if we did not get a match (Bug#19117).
629
6302015-02-09 Stefan Monnier <monnier@iro.umontreal.ca>
631
632 * keyboard.c (syms_of_keyboard): Use non-nil default value.
633
6342015-02-09 Paul Eggert <eggert@cs.ucla.edu>
635
636 Use C99's INFINITY and NAN macros
637 * lread.c: Include <math.h>.
638 (string_to_number): Use INFINITY and NAN rather than rolling our own.
639 This avoids some runtime diagnostics when building with
640 gcc -fsanitize=undefined.
641
642 Fix bidi_explicit_dir_char undefined behavior
643 * bidi.c (bidi_explicit_dir_char): Avoid subscript error when
644 argument is BIDI_EOB. This can happen in bidi_level_of_next_char.
645
646 Better distinguish infinite from invalid times
647 * editfns.c (check_time_validity): New function.
648 (decode_time_components): Return int, not bool.
649 Return -1 (not 0) if the time is out of range.
650 All callers changed.
651 (lisp_time_struct, lisp_seconds_argument): Distinguish better
652 between time overflow and invalid time values.
653
6542015-02-08 Paul Eggert <eggert@cs.ucla.edu>
655
656 Minor tweaks to frame_size_history_add
657 * frame.c (frame_size_history_add): Don't assume length fits in 'int'.
658 Prefer XCAR and XCDR to Fcar and Fcdr when the arg is a cons.
659 (Fframe_after_make_frame): Simplify.
660 * gtkutil.c: Remove commented-out code.
661 * xfns.c (Fx_create_frame): Fix indenting.
662
6632015-02-08 Eli Zaretskii <eliz@gnu.org>
664
665 * frame.c (Fframe_parameter): Don't replace a non-nil value of
666 foreground-color or background-color parameters with a nil value.
667 (Bug#19802)
668
6692015-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
670
671 * data.c (Findirect_function): Like `symbol-function', don't signal an
672 error for void functions any more.
673
6742015-02-07 Martin Rudalics <rudalics@gmx.at>
675
676 * frame.c (frame_size_history_add): New function.
677 (frame_inhibit_resize): Consider frame_inhibit_implied_resize
678 only after frame's after_make_frame slot is true.
679 Inhibit resizing fullwidth-/height frames in one direction only.
680 Update frame_size_history.
681 (adjust_frame_size): Call frame_size_history_add.
682 (make_frame): Initalize after_make_frame slot.
683 (Fmake_terminal_frame): Adjust adjust_frame_size call.
684 (Fcan_run_window_configuration_change_hook): Rename to
685 Fframe_after_make_frame. Set after_make_frame slot.
686 Return second argument.
687 (x_set_frame_parameters): Postpone handling fullscreen parameter
688 until after width and height parameters have been set.
689 Apply width and height changes only if can_x_set_window_size is true.
690 Update frame_size_history.
691 (Qadjust_frame_size_1, Qadjust_frame_size_2)
692 (Qadjust_frame_size_3, QEmacsFrameResize, Qframe_inhibit_resize)
693 (Qx_set_fullscreen, Qx_check_fullscreen, Qx_set_window_size_1)
694 (Qxg_frame_resized, Qxg_frame_set_char_size_1)
695 (Qxg_frame_set_char_size_2, Qxg_frame_set_char_size_3)
696 (Qxg_change_toolbar_position, Qx_net_wm_state)
697 (Qx_handle_net_wm_state, Qtb_size_cb, Qupdate_frame_tool_bar)
698 (Qfree_frame_tool_bar): New symbol for updating frame_size_history.
699 (Qtip_frame, Qterminal_frame): New symbols.
700 (Vframe_adjust_size_history): Rename to frame_size_history.
701 * frame.h (struct frame):
702 Rename can_run_window_configuration_change_hook slot to
703 after_make_frame.
704 (frame_size_history_add): Extern.
705 * gtkutil.c (xg_frame_resized): Call frame_size_history_add.
706 Don't set FRAME_PIXEL_WIDTH and FRAME_PIXEL_HEIGHT here.
707 (xg_frame_set_char_size): Try to preserve the status of
708 fullwidth/-height frames. Call frame_size_history_add.
709 (tb_size_cb, update_frame_tool_bar, free_frame_tool_bar)
710 (xg_change_toolbar_position): Call frame_size_history_add.
711 * w32fns.c (x_change_tool_bar_height): Handle frame's fullscreen
712 status.
713 (Fx_create_frame): Process fullscreen parameter after frame has
714 been resized.
715 (x_create_tip_frame): Pass Qtip_frame to adjust_frame_size.
716 (Fx_frame_geometry): Don't pollute pure storage.
717 * w32term.c (w32_read_socket): For WM_WINDOWPOSCHANGED,
718 WM_ACTIVATE and WM_ACTIVATEAPP set frame's visibility before
719 calling w32fullscreen_hook. For WM_DISPLAYCHANGE call
720 w32fullscreen_hook immediately.
721 (x_fullscreen_adjust, x_check_fullscreen): Remove.
722 (w32fullscreen_hook): Call change_frame_size just as with a
723 "normal" frame resize operation. Call do_pending_window_change.
724 (x_set_window_size): Try to handle fullwidth and fullheight more
725 accurately. Don't rely on w32_enable_frame_resize_hack.
726 (w32_enable_frame_resize_hack): Remove variable.
727 * widget.c (EmacsFrameResize): Remove dead code.
728 Call frame_size_history_add
729 * window.c (run_window_configuration_change_hook):
730 Check f->after_make_frame instead of
731 f->can_run_window_configuration_change_hook.
732 * xfns.c (x_change_tool_bar_height): Handle frame's fullscreen status.
733 (Fx_create_frame): Process fullscreen parameter after frame has
734 been resized.
735 (Fx_frame_geometry): Don't pollute pure storage.
736 * xterm.c (x_net_wm_state, x_handle_net_wm_state):
737 Call frame_size_history_add.
738 (do_ewmh_fullscreen): Handle x_frame_normalize_before_maximize.
739 (x_check_fullscreen): Count in menubar when calling
740 XResizeWindow. Wait for ConfigureNotify event.
741 Call frame_size_history_add.
742 (x_set_window_size_1): Remove PIXELWISE argument. Try to handle
743 changing a fullheight frame's width or a fullwidth frame's
744 height. Call frame_size_history_add.
745 (x_set_window_size): Simplify xg_frame_set_char_size and
746 x_set_window_size_1 calls.
747 (x_frame_normalize_before_maximize): New variable.
748
7492015-02-07 Paul Eggert <eggert@cs.ucla.edu>
750
751 Remove no-longer-used cursor_in_echo_area code
752 * dispnew.c (set_window_cursor_after_update, update_frame_1):
753 Remove checks for negative cursor_in_echo_area, since this var is
754 a boolean, and has been a boolean for some time. Simplify.
755 * dispnew.c (init_display):
756 * xdisp.c (message3_nolog, vmessage): Use bool for boolean.
757
7582015-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * eval.c (Ffunction): Handle the new (:documentation ...) form.
761 (syms_of_eval): Declare `:documentation'.
762
7632015-02-05 Martin Rudalics <rudalics@gmx.at>
764
765 * xdisp.c (Fwindow_text_pixel_size): Remove optional BUFFER
766 argument added on 2015-02-01.
767
7682015-02-04 Paul Eggert <eggert@cs.ucla.edu>
769
770 Remove no-longer-used two_byte_p calculations
771 * dispextern.h (struct glyph_string): Remove member two_byte_p.
772 All uses removed.
773 * xdisp.c (get_glyph_face_and_encoding): Remove arg two_byte_p.
774 All callers changed.
775
7762015-02-03 Paul Eggert <eggert@cs.ucla.edu>
777
778 Omit unnecessary var if GTK or NS
779 * frame.c, frame.h (frame_default_tool_bar_height) [USE_GTK||HAVE_NS]:
780 Now a constant zero on these platforms.
781
7822015-02-01 Martin Rudalics <rudalics@gmx.at>
783
784 * xdisp.c (Fwindow_text_pixel_size): Add optional argument BUFFER.
17 785
182015-01-31 Eli Zaretskii <eliz@gnu.org> 7862015-01-31 Eli Zaretskii <eliz@gnu.org>
19 787
@@ -223,8 +991,8 @@
223 (x_horizontal_scroll_bar_report_motion, w32_read_socket) 991 (x_horizontal_scroll_bar_report_motion, w32_read_socket)
224 (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar) 992 (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar)
225 (w32_draw_window_cursor, x_new_font, x_set_offset) 993 (w32_draw_window_cursor, x_new_font, x_set_offset)
226 (x_set_window_size, x_make_frame_invisible, x_iconify_frame): Use 994 (x_set_window_size, x_make_frame_invisible, x_iconify_frame):
227 bool where appropriate. 995 Use bool where appropriate.
228 996
229 Use bool for boolean in w32fns.c 997 Use bool for boolean in w32fns.c
230 * w32fns.c (w32_defined_color, x_decode_color) 998 * w32fns.c (w32_defined_color, x_decode_color)
@@ -693,8 +1461,8 @@
693 Qx_create_frame_2 to adjust_frame_size. 1461 Qx_create_frame_2 to adjust_frame_size.
694 * w32menu.c (set_frame_menubar): Simplify adjust_frame_size 1462 * w32menu.c (set_frame_menubar): Simplify adjust_frame_size
695 call. 1463 call.
696 * window.c (Fset_window_configuration): Pass 1464 * window.c (Fset_window_configuration):
697 Qset_window_configuration to adjust_frame_size. 1465 Pass Qset_window_configuration to adjust_frame_size.
698 * xdisp.c (redisplay_tool_bar): Assign new height to 1466 * xdisp.c (redisplay_tool_bar): Assign new height to
699 frame_default_tool_bar_height. 1467 frame_default_tool_bar_height.
700 (redisplay_internal): If we haven't redisplayed this frame's 1468 (redisplay_internal): If we haven't redisplayed this frame's
@@ -762,8 +1530,8 @@
762 1530
763 * w32fns.c (Fw32_register_hot_key): Use XINT instead of XLI. 1531 * w32fns.c (Fw32_register_hot_key): Use XINT instead of XLI.
764 1532
765 * w32notify.c (Fw32notify_add_watch, w32_get_watch_object): Use 1533 * w32notify.c (Fw32notify_add_watch, w32_get_watch_object):
766 make_pointer_integer instead of XIL. 1534 Use make_pointer_integer instead of XIL.
767 (Fw32notify_rm_watch): Use XINTPTR instead of XLI. 1535 (Fw32notify_rm_watch): Use XINTPTR instead of XLI.
768 1536
769 * w32inevt.c (handle_file_notifications): Use make_pointer_integer 1537 * w32inevt.c (handle_file_notifications): Use make_pointer_integer
@@ -861,7 +1629,8 @@
8612015-01-06 Jan Djärv <jan.h.d@swipnet.se> 16292015-01-06 Jan Djärv <jan.h.d@swipnet.se>
862 1630
863 * nsterm.m (x_set_window_size): Call updateFrameSize to get real 1631 * nsterm.m (x_set_window_size): Call updateFrameSize to get real
864 size instead of using widht/height. The frame may be constrained. 1632 size instead of using widht/height. The frame may be
1633 constrained (Bug#19482).
865 1634
8662015-01-05 Paul Eggert <eggert@cs.ucla.edu> 16352015-01-05 Paul Eggert <eggert@cs.ucla.edu>
867 1636