1. 22 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Fixes in window size functions around Bug#16430 and Bug#16470. · 6cb4da45
      Martin Rudalics authored
      * window.c (Fwindow_pixel_width, Fwindow_pixel_height)
      (Fwindow_mode_line_height, Fwindow_header_line_height)
      (Fwindow_right_divider_width, Fwindow_bottom_divider_width):
      Minor doc-string adjustments.
      (Fwindow_total_height, Fwindow_total_width): New argument ROUND.
      Rewrite doc-strings.
      (window_body_height, window_body_width): Do not count partially
      visible lines/columns when PIXELWISE is nil (Bug#16470).
      (Qfloor, Qceiling): New symbols.
      * window.el (window-total-size, window-size): New argument
      ROUND.
      (window--min-delta-1, window-min-delta, window--max-delta-1): Be
      more conservative when calculating the numbers of lines or
      columns a window can shrink (Bug#16430).
      (fit-window-to-buffer): Simplify code.
      * term.el (term-window-width): Call window-body-width again.
      6cb4da45
  2. 21 Jan, 2014 2 commits
  3. 20 Jan, 2014 4 commits
  4. 19 Jan, 2014 2 commits
  5. 18 Jan, 2014 2 commits
    • Eli Zaretskii's avatar
      Fix file name handling on MS-Windows 9X. · 5197f0c2
      Eli Zaretskii authored
       src/w32.c (maybe_load_unicows_dll): New function.
       src/emacs.c (main) [WINDOWSNT]: Call maybe_load_unicows_dll early
       on, to make sure we can convert file names to and from UTF-8 on
       Windows 9X.  This fixes a failure to start up because Emacs cannot
       find term/w32-win.el.  Reported by oslsachem <oslsachem@gmail.com>.
       src/w32font.c [WINDOWSNT]: Include w32.h.
       (w32_load_unicows_or_gdi32): Call maybe_load_unicows_dll, instead
       of implementing the same stuff.
       Remove now unused g_b_init_is_windows_9x.
       src/w32.h (maybe_load_unicows_dll): Add prototype.
      
       nt/runemacs.c (ensure_unicows_dll): Don't tell in the message box
       that "emacs -nw" can do without UNICOWS.DLL on Windows 9X.  See
       w32.c:maybe_load_unicows_dll and its callers for the reason.
      5197f0c2
    • Glenn Morris's avatar
      ChangeLog and Author: header comment fixes · 812a0930
      Glenn Morris authored
      812a0930
  6. 17 Jan, 2014 1 commit
  7. 15 Jan, 2014 2 commits
  8. 14 Jan, 2014 1 commit
  9. 13 Jan, 2014 4 commits
  10. 12 Jan, 2014 1 commit
  11. 11 Jan, 2014 5 commits
    • Fabrice Popineau's avatar
      Fix minor build problems related to MinGW64. · e05d3a05
      Fabrice Popineau authored
       configure.ac: Read $srcdir/nt/mingw-cfg.site when $MSYSTEM is
       "MINGW64" as well.
      
       nt/inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64.
      
       src/unexw32.c (_start) [__MINGW64__]: Define to __start.
      e05d3a05
    • Eli Zaretskii's avatar
      Fix bug #16347 with updating redisplay of company-mode's "tooltip". · 02013850
      Eli Zaretskii authored
       src/xdisp.c (try_window_id): Don't use this function's optimizations
       if overlays in the buffer displayed by the window have changed
       since last redisplay.
       (message_dolog): Fix indentation.
      02013850
    • Martin Rudalics's avatar
      Fix doc-string of frame_resize_pixelwise. · f96d0a6b
      Martin Rudalics authored
      * frame.c (frame_resize_pixelwise): Fix doc-string.
      f96d0a6b
    • Martin Rudalics's avatar
      Fix handling of internal borders (Bug#16348). · 7d7ccb88
      Martin Rudalics authored
      * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Remove
      internal border width from pixel width of windows.
      (change_frame_size_1): Don't return early when frame's pixel
      size changes - we still have to record the new sizes in the
      frame structure.
      * w32fns.c (x_set_tool_bar_lines): Clear internal border width
      also when toolbar gets larger.
      * window.c (check_frame_size): Include internal_border_width in
      check.
      * xdisp.c (Ftool_bar_height): Fix doc-string typo.
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): In
      non-toolkit/non-GTK version clear internal border.
      * xterm.c (x_clear_under_internal_border): New function for
      non-toolkit/non-GTK version.
      (x_after_update_window_line): In non-toolkit/non-GTK version
      don't do that.
      (handle_one_xevent, x_set_window_size): Call
      x_clear_under_internal_border in non-toolkit/non-GTK version.
      * xterm.h (x_clear_under_internal_border): Extern it.
      7d7ccb88
    • Glenn Morris's avatar
      ChangeLog fixes · a12bf61e
      Glenn Morris authored
      a12bf61e
  12. 07 Jan, 2014 1 commit
  13. 06 Jan, 2014 1 commit
  14. 05 Jan, 2014 2 commits
    • Paul Eggert's avatar
      Spelling fixes. · da5ecfa9
      Paul Eggert authored
      * lib-src/Makefile.in (regex.o): Remove reference to no-longer-used macros
      CONFIG_BROKETS and INHIBIT_STRING_HEADER.  "BROKETS" was a
      misspelling anyway....
      * src/nsterm.h (updateCollectionBehavior): Rename from
      updateCollectionBehaviour.  All uses changed.
      da5ecfa9
    • Paul Eggert's avatar
      Port to GNU/Linux with recent grsecurity/PaX patches (Bug#16343). · 81da295e
      Paul Eggert authored
      Problem and proposed patch reported by Ulrich Mueller;
      this patch uses a somewhat-different approach.
      * configure.ac (SETFATTR): New variable.
      * src/Makefile.in (SETFATTR): New macro.
      (temacs$(EXEEXT)): Use it.
      81da295e
  15. 04 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Fix maximization behavior on Windows (Bug#16300). · 5159d590
      Martin Rudalics authored
      Fix maximization behavior on Windows (Bug#16300).
      * w32fns.c (w32_fullscreen_rect): Don't handle
      FULLSCREEN_MAXIMIZED and FULLSCREEN_NONE specially.
      * w32term.c (w32fullscreen_hook): Use SetWindowPlacement instead
      of SetWindowPos.  Restore last placement also when leaving
      FULLSCREEN_HEIGHT and FULLSCREEN_WIDTH.  Call ShowWindow in all
      but the FULLSCREEN_BOTH case.
      5159d590
  16. 03 Jan, 2014 2 commits
    • Paul Eggert's avatar
      Port to C89. · 56a0e352
      Paul Eggert authored
      * data.c (arithcompare_driver):
      * fileio.c (Fcar_less_than_car):
      * fns.c (internal_equal):
      * frame.c (delete_frame):
      * lisp.h (enum More_Lisp_Bits):
      * lread.c (read1):
      Avoid C99 constructs that don't work in C89.
      * data.c (ULL_MAX, count_trailing_zeros_ll): New macros,
      to port to C89, which doesn't have 'long long'.
      (count_trailing_zero_bits): Use them.
      56a0e352
    • Chong Yidong's avatar
      Remove the dynamic-docstring-function feature. · 0d53f628
      Chong Yidong authored
      * emacs-lisp/advice.el (ad--make-advised-docstring): Change args.
      Ignore function-documentation property when getting documentation.
      (ad-activate-advised-definition): Use function-documentation
      generate the docstring.
      (ad-make-advised-definition): Don't call
      ad-make-advised-definition-docstring.
      (ad-make-advised-definition-docstring, ad-advised-definition-p):
      Delete functions.
      
      * emacs-lisp/nadvice.el (advice--make-docstring): Change args.
      (advice--docstring): Delete variable.
      (advice--make-1): Leave the docstring empty.
      (advice-add): Use function-documentation for advised docstring.
      
      * progmodes/sql.el (sql-help): Use function-documentation instead
      of dynamic-docstring-function property.  No need to autoload now.
      (sql--help-docstring): New variable.
      (sql--make-help-docstring): Use it.
      
      * doc.c (Fdocumentation): Remove dynamic-docstring-function.
      0d53f628
  17. 02 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Further adjust frame/window scrollbar width calculations. · 44c5e192
      Martin Rudalics authored
      * window.c (apply_window_adjustment): Set
      windows_or_buffers_changed.
      (Fwindow_scroll_bars): Return actual scrollbar width.
      * xfns.c (x_set_scroll_bar_default_width): Rename wid to unit.
      For non-toolkit builds again use 14 as minimum width and set
      FRAME_CONFIG_SCROLL_BAR_WIDTH accordingly.
      * xterm.c (XTset_vertical_scroll_bar): Take width from
      WINDOW_SCROLL_BAR_AREA_WIDTH.
      (x_new_font): Rename wid to unit.  Base calculation of new
      scrollbar width on toolkit used and make it analogous to that of
      x_set_scroll_bar_default_width.
      * w32fns.c (x_set_scroll_bar_default_width): Rename wid to unit.
      (Fx_create_frame): Call x_set_scroll_bar_default_width instead
      of GetSystemMetrics.
      * w32term.c (w32_set_vertical_scroll_bar): Take width from
      WINDOW_SCROLL_BAR_AREA_WIDTH.
      (x_new_font): Make it correspond to changes in xterm.c.
      44c5e192
  18. 01 Jan, 2014 3 commits
    • Paul Eggert's avatar
      * lisp.h (EMACS_INT): Configure based on INTPTR_MAX, not LONG_MAX. · b00cdd96
      Paul Eggert authored
      This is a cleaner way to fix the MinGW-w64 porting problem.
      Check for INTPTR_MAX misconfiguration.
      b00cdd96
    • Eli Zaretskii's avatar
      Fix bug #16265 with buffer caches when modifying text in indirect buffers. · c10e9ece
      Eli Zaretskii authored
       src/search.c (newline_cache_on_off, find_newline): In indirect
       buffers, use the newline cache of the base buffer.
       src/insdel.c (invalidate_buffer_caches): If BUF is an indirect
       buffer, invalidate the caches of its base buffer.
       src/indent.c (width_run_cache_on_off, compute_motion): In indirect
       buffers, use the width-run cache of the base buffer.
       src/xdisp.c (redisplay_window): When the window displays an indirect
       buffer, and the character widths in the display table have
       changed, invalidate the width-run cache of the corresponding base
       buffer.
       src/fileio.c (Finsert_file_contents): When invalidating the newline
       cache, consider the case of inserting into indirect buffer.
       src/bidi.c (bidi_paragraph_cache_on_off, bidi_find_paragraph_start):
       In indirect buffers, use the paragraph cache of the base buffer.
      c10e9ece
    • Paul Eggert's avatar
  19. 31 Dec, 2013 4 commits
    • Martin Rudalics's avatar
      Fix last change of grow_mini_window. · 91415fb1
      Martin Rudalics authored
      * window.c (grow_mini_window): Fix last change.
      91415fb1
    • Jan Djärv's avatar
      * nsterm.m (windowDidResignKey:): Set mouse_moved to 0. · a2301006
      Jan Djärv authored
      Fixes: debbugs:8421
      a2301006
    • Fabrice Popineau's avatar
      Minor fixes for MinGW64 build. · bd717ca4
      Fabrice Popineau authored
       configure.ac (canonical, C_SWITCH_SYSTEM): Support a 64-bit
       MinGW64 build on MS-Windows.
      
       nt/inc/ms-w32.h (sys_kill): Fix prototype.
      
       src/w32term.c (w32_initialize): Use LCID and LOWORD.
       src/w32proc.c (create_child): Use pid_t for 5th argument.
       (IsValidLocale): Don't provide prototype for MinGW64.
       (Fw32_get_valid_keyboard_layouts, Fw32_get_keyboard_layout)
       (Fw32_set_keyboard_layout): Use HKL and HIWORD/LOWORD.
       src/w32heap.c (allocate_heap) [_WIN64]: Use "ull", not "i64", which
       MinGW64 doesn't support.
       src/lisp.h (EMACS_INT) [_WIN64]: Define for the MinGW64 build.
      bd717ca4
    • Fabrice Popineau's avatar
      Fall back on SetNamedSecurityInfo if SetFileSecurity fails in acl_set_file. · 0bbd0e0b
      Fabrice Popineau authored
       src/w32.c (set_named_security_info): New function.
       (acl_set_file): Fall back on set_named_security_info if
       set_file_security fails.  Fixes rare failures in backups.
       (g_b_init_set_named_security_info_w)
       (g_b_init_set_named_security_info_a): New static variables.
       (globals_of_w32): Initialize them to zero.
       (set_named_security_info): Set them to non-zero if the
       corresponding API is available.
       (SetNamedSecurityInfoW_Proc, SetNamedSecurityInfoA_Proc): New
       function typedefs.
      0bbd0e0b