- 11 Aug, 2014 2 commits
-
-
Jan Djärv authored
* nsfns.m (Fx_create_frame): Call adjust_frame_size, set f->official.
-
Glenn Morris authored
It causes a more serious problem than the one it solves. This closes bug#18141, and reopens bug#13522. * lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change. * src/fileio.c: Revert 2013-01-31 change. (choose_write_coding_system): No longer callable from Lisp. Move last piece back here from Fwrite_region. (Fwrite_region, syms_of_fileio): Update for above changes. * test/automated/data/files-bug18141.el.gz: New file. * test/automated/files.el (files-test-bug-18141-file): New variable and test.
-
- 10 Aug, 2014 2 commits
-
-
Reuben Thomas authored
src/msdos.c: include required menu.h src/term.c: set correct menu_show_hook on MSDOS.
-
Martin Rudalics authored
* dispnew.c (handle_window_change_signal): * keyboard.c (Fsuspend_emacs): Call change_frame_size with frame's menu bar lines subtracted from height. * frame.c (frame_inhibit_resize): Inhibit resizing of TTY frames. (adjust_frame_size): Count in menu bar when setting FrameRows. (make_terminal_frame): When setting up the frame's lines and text height don't count in the menu bar. (Fmake_terminal_frame): Call adjust_frame_size with menu bar lines subtracted from height. (do_switch_frame): Set tty's FrameRows to number of total lines of frame. (Fframe_pixel_height, Fframe_pixel_width): If no window system is used, return total number of lines and columns. * menu.c (emulate_dialog_with_menu): Use FRAME_TOTAL_LINES instead of FRAME_LINES. * term.c (OUTPUT, tty_set_terminal_modes) (tty_set_terminal_window, tty_set_scroll_region) (tty_clear_to_end, tty_write_glyphs, tty_write_glyphs_with_face) (tty_ins_del_lines, tty_menu_display, tty_menu_activate): Use FRAME_TOTAL_LINES instead of FRAME_LINES. (Fresume_tty): Use FRAME_TOTAL_LINES instead of FRAME_LINES. Call change_frame_size with frame's menu bar lines subtracted from height. * w32console.c (w32con_clear_to_end, w32con_clear_frame) (w32con_ins_del_lines): Use FRAME_TOTAL_LINES instead of FRAME_LINES.
-
- 09 Aug, 2014 5 commits
-
-
Reuben Thomas authored
-
Reuben Thomas authored
-
Reuben Thomas authored
This also removes some specially-licensed files and lots of accompanying explanation.
-
Martin Rudalics authored
* window.c (Fwindow_new_total, Fwindow_new_normal) (Fwindow_new_pixel, Fset_window_new_pixel) (Fset_window_new_total, Fset_window_new_normal): Second attempt to fix the doc-strings of these functions. See: http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html
-
Jan Djärv authored
(resources, setup_frame_cursor_bits): Remove unused variables and functions, esp. wrt. font. * widgetprv.h (EmacsFramePart): Remove font. Fixes: debbugs:18227
-
- 08 Aug, 2014 1 commit
-
-
Martin Rudalics authored
* window.c (Fwindow_valid_p): Fix doc-string (Bug#18194). (Fwindow_new_total, Fwindow_normal_size, Fwindow_new_normal) (Fwindow_new_pixel, Fset_window_new_pixel) (Fset_window_new_total, Fset_window_new_normal) (Fwindow_resize_apply): Fix doc-strings (see Bug#18112).
-
- 07 Aug, 2014 3 commits
-
-
Eli Zaretskii authored
src/fontset.c (Finternal_char_font): Recompute basic faces if the frame's face cache was cleared.
-
Paul Eggert authored
Fixes: debbugs:17691
-
Reuben Thomas authored
* README: ``MSDOG'' becomes ``MS-DOS''. * lisp/arc-mode.el: Fix a couple of ``MS-DOG''s missed in the previous commit. * lisp/file-mode.el: ditto. * src/editfns.c: Fix a couple of ``MS-DOG''s missed in the previous commit. * src/xfaces.c: ditto.
-
- 05 Aug, 2014 3 commits
-
-
Martin Rudalics authored
* w32term.c (w32_redeem_scroll_bar): * xterm.c (XTredeem_scroll_bar): Revert part of last change by not redeeming scroll bars that have been turned off.
-
Dmitry Antipov authored
* buffer.c (Fmake_indirect_buffer): Initialize undo list with the base buffer's undo list.
-
Dmitry Antipov authored
inhibit-quit to t and pass 2 args to safe_run_hook_funcall. See <http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00077.html>. (safe_run_hook_funcall): Adjust accordingly.
-
- 04 Aug, 2014 2 commits
-
-
Martin Rudalics authored
* frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS): Condition correctly according to toolkit used. * frame.c (make_initial_frame, make_terminal_frame) (x_set_horizontal_scroll_bars, x_set_scroll_bar_height) (Vdefault_frame_horizontal_scroll_bars): Correctly condition assignments according to presence of toolkit scrollbars. * window.h (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Condition correctly according to toolkit used. * window.c (set_window_scroll_bars): Set horizontal scroll bar only if toolkit supports it. * w32term.c (w32_redeem_scroll_bar): Always redeem scroll bar if present. * xterm.c (x_scroll_bar_create): Initialize horizontal slot for non-toolkit builds. (XTredeem_scroll_bar): Always redeem scroll bar if present.
-
Dmitry Antipov authored
Vinhibit_quit and prefer internal_condition_case_n to pass args. (safe_run_hooks_error, safe_run_hooks_1): Adjust accordingly. (safe_run_hooks): Remove comment which is not relevant any more.
-
- 03 Aug, 2014 4 commits
-
-
Paul Eggert authored
* dispnew.c (mirrored_line_dance, mirror_line_dance, scrolling): Use SAFE_NALLOCA, not alloca.
-
Paul Eggert authored
* lisp/calendar/parse-time.el (parse-time-rules): Allow years up to most-positive-fixnum. * lisp/calendar/time-date.el (date-to-time): Pass "Specified time is not representable" errors through. * lisp/url/url-cookie.el (url-cookie-expired-p): Treat out-of-range expiration dates as if they were far in the future. * src/editfns.c (decode_time_components): Store an invalid timespec on overflow, instead of returning false, so that the caller can distinguish overflow from other errors. (lisp_time_argument, lisp_seconds_argument): If the time is out of range, signal a time overflow instead of an invalid time spec. * src/keyboard.c (decode_timer): Treat time overflow like other timespec errors. Fixes: debbugs:18176
-
Paul Eggert authored
Caught by 'gcc -fsanitize=undefined'. * dispextern.h, scroll.c (scrolling_max_lines_saved, scrolling_1): * dispnew.c (line_hash_code, scrolling): * scroll.c (calculate_scrolling, calculate_direct_scrolling): Use 'unsigned', not 'int', for line hashes. (scrolling_max_lines_saved): Avoid mystery constants for hash sizes.
-
Dmitry Antipov authored
* xfns.c (Fx_create_frame): Move call to change_frame_size to a section where Lisp evaluation is disabled. This way a pointer to uninitialized frame is not accessible from Lisp, which becomes critical if following call to x_figure_window_size throws an error.
-
- 02 Aug, 2014 5 commits
-
-
Paul Eggert authored
* src/dired.c (directory_files_internal): Use a volatile variable to prevent the compiler from optimizing away all copies of a local. I wonder how many other GC-related bugs like this lurk elsewhere? Fixes: debbugs:16986
-
Paul Eggert authored
* src/xterm.h (struct x_display_info): New member 'connection'. * src/xterm.c (x_term_init, x_delete_terminal): Set and use it, so that x_delete_terminal has a file descriptor to pass to delete_keyboard_wait_descriptor. Fixes: debbugs:17691
-
Dmitry Antipov authored
-
Paul Eggert authored
* fns.c (Fcompare_strings): Silently bring too-large ends into range. Fixes: debbugs:17903
-
Jan Djärv authored
Don't add label between left and right buttons. Fixes: debbugs:18129
-
- 01 Aug, 2014 4 commits
-
-
Paul Eggert authored
* frame.c, frame.h (set_menu_bar_lines): * keyboard.c (Qleftmost, Qrightmost): * xfns.c, frame.h, menu.h (x_set_menu_bar_lines, x_set_tool_bar_lines) (x_set_internal_border_width): Now static.
-
Eli Zaretskii authored
See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html for the details. src/xdisp.c (extend_face_to_end_of_line): If the last glyph of an R2L row is visible only partially, give the row a negative x offset. (display_line): Fix the calculation of the glyph whose pixel width is used to decide whether the last produced glyph fits on the line. When the last glyph fits only partially, give the row a negative x offset.
-
Dmitry Antipov authored
(timerfd_callback): Ignore weird events with no data. Add tight assertions and comments. (init_atimer) [HAVE_TIMERFD]: Add environment variable to optionally disabletimerfd-based timer. Use TFD_NONBLOCK for timer descriptor.
-
Paul Eggert authored
I had confused && with ||.
-
- 31 Jul, 2014 2 commits
-
-
Paul Eggert authored
* configure.ac (HAVE_TIMERFD): Define only if TFD_CLOEXEC works, since the code leaked file descriptors to children when !TFD_CLOEXEC. (HAVE_TIMERFD_CLOEXEC): Remove; no longer used. * m4/clock_time.m4 (gl_CLOCK_TIME): Don't check for clock_getres. This reverts the previous change to this file, so it matches gnulib again. * src/atimer.c (TIMERFD_CREATE_FLAGS): Remove; we now assume TFD_CLOEXEC. (alarm_timer, alarm_timer_ok, set_alarm, init_atimer): Fall back on timer_create if timerfd_create fails at runtime. (resolution) [HAVE_CLOCK_GETRES]: Remove; we now rely on the kernel primitives to do resolution. All uses removed. (timerfd) [!HAVE_TIMERFD]: Define to be -1, for convenience. (turn_on_atimers): Clear timer_create-based timers too, for consistency.
-
Paul Eggert authored
Without this change, the code can access the local variable 'width' even when it has not been initialized, and likewise for 'height'; in either case this leads to undefined behavior.
-
- 30 Jul, 2014 2 commits
-
-
Dmitry Antipov authored
-
Dmitry Antipov authored
necessary, put horizontal scroll bar resources as well. See <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00430.html>.
-
- 29 Jul, 2014 4 commits
-
-
Dmitry Antipov authored
background value to match the resource of its vertical counterpart.
-
Martin Rudalics authored
* frame.c (adjust_frame_size): Use FRAME_WINDOW_P instead of FRAME_X_WINDOW when calling x_set_window_size (Bug#18138).
-
Eli Zaretskii authored
src/xdisp.c (append_stretch_glyph): In a R2L glyph row, decrease the pixel width of the first glyph that is hscrolled from display. (display_line): In R2L glyph rows, don't give a negative offset to row->x when the first glyph begins before first_visible_x.
-
Andreas Schwab authored
* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and kbd_macro_end together with kbd_macro_buffer.
-
- 28 Jul, 2014 1 commit
-
-
Martin Rudalics authored
* frame.c (x_set_frame_parameters): Revert part of 2014-07-24 change that added the top margin height to the requested height and revert (undocumented) part of 2014-07-28 change that changed the logic of whether a size change occurred.
-