1. 03 Jan, 2015 3 commits
  2. 02 Jan, 2015 1 commit
  3. 01 Jan, 2015 1 commit
  4. 31 Dec, 2014 1 commit
    • Paul Eggert's avatar
      Simplify setfattr use by assuming GNU make · 25346768
      Paul Eggert authored
      * Makefile.in (PAXCTL_if_present, SETFATTR_if_present): New macros.
      (emacs$(EXEEXT), temacs$(EXEEXT), bootstrap-emacs$(EXEEXT)): Use them.
      Simplify by using GNU make rather than shell conditionals,
      by using ln -f rather than rm -f followed by ln,
      and by preferring $@ to spelling out the destination.
      25346768
  5. 30 Dec, 2014 1 commit
  6. 29 Dec, 2014 1 commit
  7. 28 Dec, 2014 4 commits
    • Eli Zaretskii's avatar
    • Paul Eggert's avatar
      Fix produce_composite_width typo · 20791069
      Paul Eggert authored
      * term.c (produce_composite_glyph):
      Fix typo that confused number of columns for pixel width.
      20791069
    • Paul Eggert's avatar
      Wrap dll functions more simply · e092accb
      Paul Eggert authored
      * decompress.c, gnutls.c, image.c, xml.c:
      If WINDOWSNT, use '#define FOO fn_FOO' to wrap dll functions,
      rather than the inverse when not WINDOWSNT.  This isolates the
      fn_* business into the WINDOWSNT-specific section of the code,
      which makes it easier to maintain the generic code.
      * decompress.c (DEF_ZLIB_FN, LOAD_ZLIB_FN):
      * gnutls.c (DEF_GNUTLS_FN, LOAD_GNUTLS_FN):
      * image.c (DEF_IMGLIB_FN, LOAD_IMGLIB_FN):
      * xml.c (DEF_XML2_FN, LOAD_XML2_FN):
      Remove.  All uses replaced by DEF_DLL_FN.
      * w32.h (DEF_DLL_FN, LOAD_DLL_FN): New macros.
      e092accb
    • Paul Eggert's avatar
      Port memory-full checking to GnuTLS 3.3 · b54f5721
      Paul Eggert authored
      Instead of using gnutls_global_set_mem_functions, check every call
      to a GnuTLS function that might return an indication of memory
      exhaustion.  Suggested by Dmitry Antipov in:
      http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
      * src/gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
      (init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
      (fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
      All uses removed.
      (check_memory_full): New function.
      (emacs_gnutls_handshake, emacs_gnutls_handle_error)
      (gnutls_make_error, Fgnutls_boot): Use it.
      (emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.
      b54f5721
  8. 27 Dec, 2014 2 commits
  9. 26 Dec, 2014 3 commits
    • Paul Eggert's avatar
      Use bool for boolean in xselect.c, xsettings.c · 7a305f8b
      Paul Eggert authored
      * xselect.c (x_get_local_selection, struct selection_data)
      (x_selection_request_lisp_error, struct prop_location)
      (x_handle_selection_request, x_convert_selection)
      (waiting_for_other_props_on_window, expect_property_change)
      (wait_for_property_change, x_handle_property_notify)
      (x_get_foreign_selection, x_get_window_property)
      (receive_incremental_selection)
      (x_get_window_property_as_lisp_data)
      (lisp_data_to_selection_data, Fx_get_selection_internal)
      (x_send_client_event):
      * xselect.c, xterm.h (x_handle_dnd_message):
      * xsettings.c (dpyinfo_valid, parse_settings, read_settings)
      (apply_xft_settings, read_and_apply_settings)
      (xft_settings_event, init_gsettings, init_xsettings)
      (syms_of_xsettings):
      Use bool for boolean.
      * xselect.c (x_get_window_property): Omit last arg, which was an
      unused boolean.
      * xsettings.c (apply_xft_settings): Remove 2nd arg, which was
      always true.  All callers changed.
      7a305f8b
    • Eli Zaretskii's avatar
      MS-Windows followup to stpcpy changes. · d6552628
      Eli Zaretskii authored
       src/w32proc.c (sys_spawnve, get_lcid_callback): Use strcpy instead
       of strcat.
       src/w32menu.c (add_menu_item): Use stpcpy instead of strcat.
       src/w32.c (sys_readdir, stat_worker, symlink): Use strcpy instead of
       strcat.
      
       nt/gnulib.mk (stpcpy, string): Sync with the latest change in
       lib/gnulib.mk.
      d6552628
    • Paul Eggert's avatar
      Use bool for boolean in xsmfns.c · f7695664
      Paul Eggert authored
      * xsmfns.c, xterm.h (x_session_have_connection):
      * xsmfns.c (doing_interact, smc_interact_CB, Fhandle_save_session):
      Use bool for boolean.
      (x_session_initialize, Fhandle_save_session):
      Prefer NILP (x) to EQ (x, Qnil).
      f7695664
  10. 25 Dec, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix rendering of composed caharacters on the mode line. (Bug#19435) · a41d07b3
      Eli Zaretskii authored
       src/xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in
       composition_compute_stop_pos to the number of characters in the
       string.
       <GET_FROM_BUFFER, GET_FROM_STRING>: Simplify code.
       src/composite.c (composition_compute_stop_pos): If no composition
       was found in a string before ENDPOS, and ENDPOS is the string end,
       no need to back up to a safe point.
       src/dispextern.h (struct it) <end_charpos>: Improve commentary.
      a41d07b3
  11. 24 Dec, 2014 5 commits
  12. 23 Dec, 2014 1 commit
  13. 22 Dec, 2014 3 commits
    • Jan D's avatar
      Keep maximized when going fullscreen. · 8e818d17
      Jan D authored
      Author:
      Fixes: Bug#19427
      
      * xterm.c (do_ewmh_fullscreen): Don't remove maximized_horz/vert
      when going to fullscreen (Bug#19427).
      8e818d17
    • Jan D's avatar
      Fix setting icon for Gtk+ on non-initial frame. · 6f3f6050
      Jan D authored
      Fixes: debbugs:19403
      
      * xterm.c (x_bitmap_icon): Partly revert change from 2014-03-21 which
      breaks icon setting for Gtk+ except for initial frame.
      6f3f6050
    • Paul Eggert's avatar
      Use bool for boolean in xterm.c · 455e5469
      Paul Eggert authored
      * frame.h, nsterm.m, w32term.c, w32term.h, xterm.c:
      (x_set_window_size, x_bitmap_icon):
      * nsterm.m (ns_frame_raise_lower, x_new_font):
      * termhooks.h (struct terminal.toggle_invisible_pointer_hook)
      (struct terminal.frame_raise_lower_hook):
      * w32term.c (w32_frame_raise_lower):
      * xterm.c, xterm.h (x_text_icon):
      * xterm.c (x_update_window_begin, x_update_window_end)
      (x_update_end, x_after_update_window_line)
      (x_set_glyph_string_gc, x_draw_glyph_string_background)
      (x_draw_glyph_string_foreground)
      (x_draw_composite_glyph_string_foreground)
      (x_alloc_lighter_color, x_draw_relief_rect)
      (x_draw_glyph_string_box, x_draw_image_relief)
      (x_draw_image_glyph_string, x_draw_stretch_glyph_string)
      (x_draw_underwave, x_draw_glyph_string, x_show_hourglass)
      (x_hide_hourglass):
      (XFillRectangle) [HAVE_GTK3]:
      (XTtoggle_invisible_pointer, frame_highlight, frame_unhighlight)
      (x_focus_changed, x_find_modifier_meanings, note_mouse_movement)
      (XTmouse_position, xt_action_hook, xt_horizontal_action_hook)
      (x_send_scroll_bar_event, xm_scroll_callback)
      (xg_scroll_callback, xaw_jump_callback, xaw_scroll_callback)
      (x_create_toolkit_scroll_bar)
      (x_create_horizontal_toolkit_scroll_bar)
      (x_set_toolkit_horizontal_scroll_bar_thumb, x_scroll_bar_create)
      (x_scroll_bar_set_handle, XTset_vertical_scroll_bar)
      (XTset_horizontal_scroll_bar, x_scroll_bar_expose)
      (x_scroll_bar_handle_click, x_scroll_bar_note_movement)
      (x_scroll_bar_report_motion)
      (x_horizontal_scroll_bar_report_motion, x_net_wm_state)
      (handle_one_xevent, XTread_socket, x_draw_bar_cursor)
      (x_draw_window_cursor, x_clear_errors)
      (x_trace_wire, x_new_font, x_set_offset, wm_supports)
      (set_wm_state, x_set_sticky, get_current_wm_state)
      (do_ewmh_fullscreen, x_handle_net_wm_state)
      (x_check_expected_move, x_sync_with_move, x_wait_for_event)
      (x_set_window_size_1, XTframe_raise_lower)
      (x_make_frame_visible, x_iconify_frame)
      (x_timeout_atimer_activated_flag, same_x_server, x_display_ok)
      (x_term_init, x_process_timeouts, x_activate_timeout_atimer)
      (x_delete_terminal, x_initialize, syms_of_xterm):
      Use bool for boolean.
      455e5469
  14. 20 Dec, 2014 3 commits
    • Paul Eggert's avatar
      * composite.h (struct composition.width): Now int · 67bb1c19
      Paul Eggert authored
      instead of unsigned short, as we prefer signed integers.
      67bb1c19
    • Paul Eggert's avatar
      Let charset tick grow past USHRT_MAX · 4cc2f691
      Paul Eggert authored
      * charset.c, charset.h (charset_ordered_list_tick):
      Now EMACS_UINT, not unsigned short.
      * fontset.c (reorder_font_vector): Allow the tick to grow to the
      maximum representable Emacs integer value before wrapping it around.
      4cc2f691
    • Paul Eggert's avatar
      Simplify unexec file mode setting · 9b14d8b6
      Paul Eggert authored
      * unexaix.c, unexcoff.c, unexelf.c, unexmacosx.c:
      Don't include <sys/stat.h> when no longer needed.
      (unexec): Create file with correct mode in the first place,
      rather than overwriting the mode later and fiddling with the
      global umask in the mean time.  Avoid bogus usage like
      'umask (777)', which should have been 'umask (0777)'.
      (mark_x): Remove. All callers removed.
      9b14d8b6
  15. 19 Dec, 2014 2 commits
    • Paul Eggert's avatar
      8fa2e254
    • Paul Eggert's avatar
      Minor cleanups for Lisp objects and symbols · ad013ba6
      Paul Eggert authored
      * alloc.c (next_vector, set_next_vector):
      * lisp.h (lisp_h_INTEGERP, make_number, XFASTINT, make_natnum):
      (lisp_h_make_number) [USE_LSB_TAG]:
      Use Lisp_Int0 instead of the mystery constant 0.
      * alloc.c (mark_object): Always set and use po; that's simpler.
      (CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE):
      Properly parenthesize definientia.
      * bidi.c (bidi_initialize):
      * buffer.c (init_buffer_once):
      * nsfns.m (syms_of_nsfns):
      * nsmenu.m (syms_of_nsmenu):
      * nsselect.m (syms_of_nsselect):
      Prefer DEFSYM to defining by hand.
      * data.c: Fix too-long line.
      * lisp.h (DECLARE_GDB_SYM): New macro.
      (DEFINE_GDB_SYMBOL_BEGIN): Use it.
      (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END) [!MAIN_PROGRAM]:
      Declare the symbol, so it's visible to everywhere lisp.h is included.
      Move forward decls as far forward as they can go,
      to allow future changes to use them.
      ad013ba6
  16. 18 Dec, 2014 6 commits
    • Paul Eggert's avatar
      * gnutls.c: Include gnutls.h. · d9639a28
      Paul Eggert authored
      This to check syms_of_gnutls's API even when !HAVE_GNUTLS.
      d9639a28
    • Paul Eggert's avatar
      d8183f8f
    • Eli Zaretskii's avatar
      811aceea
    • Martin Rudalics's avatar
      Add code for "preserving" window sizes. · 47f730e3
      Martin Rudalics authored
      * frame.c (frame_windows_min_size): New argument IGNORE.
      (adjust_frame_size): When called from change_frame_size call
      frame_windows_min_size with IGNORE Qt so we can ignore size
      restrictions.
      
      * dired.el (dired-pop-to-buffer): Call fit-window-to-buffer with
      `preserve-size' t.
      (dired-mark-pop-up): Preserve size of window showing marked
      files.
      * electric.el (Electric-pop-up-window):
      * help.el (resize-temp-buffer-window): Call fit-window-to-buffer
      with `preserve-size' t.
      * minibuffer.el (minibuffer-completion-help): Use
      `resize-temp-buffer-window' instead of `fit-window-to-buffer'
      (Bug#19355).  Preserve size of completions window.
      * register.el (register-preview): Preserve size of register
      preview window.
      * tmm.el (tmm-add-prompt): Call fit-window-to-buffer
      with `preserve-size' t (Bug#1291).
      * window.el (with-displayed-buffer-window): Add calls to
      `window-preserve-size'.
      (window-min-pixel-size, window--preservable-size)
      (window-preserve-size, window-preserved-size)
      (window--preserve-size, window--min-size-ignore-p): New
      functions.
      (window-min-size, window-min-delta, window--resizable)
      (window--resize-this-window, split-window-below)
      (split-window-right): Amend doc-string.
      (adjust-window-trailing-edge): Handle preserving window
      sizes.  Signal user-error instead of an error when there's no
      window above or below.
      (window--min-size-1, window-sizable, window--size-fixed-1)
      (window-size-fixed-p, window--min-delta-1)
      (frame-windows-min-size, window--max-delta-1, window-resize)
      (window--resize-child-windows, window--resize-siblings)
      (enlarge-window, shrink-window, split-window): Handle preserving
      window sizes.
      (window--state-put-2): Handle horizontal scroll bars.
      (window--display-buffer): Call `preserve-size' if asked for.
      (display-buffer): Mention `preserve-size' alist member in
      doc-string.
      (fit-window-to-buffer): New argument PRESERVE-SIZE.
      47f730e3
    • Eli Zaretskii's avatar
      Allow querying font by name for its height and other info. (Bug#19395) · b1978229
      Eli Zaretskii authored
       src/font.c (Ffont_info): Add more font information to the vector
       returned by the function, inspired by query-font.  Doc fix.
      
       doc/lispref/display.texi (Low-Level Font): Document font-info and query-font.
      
       lisp/international/mule-diag.el (describe-font-internal): Display
       additional info returned by font-info.
       lisp/linum.el (linum--face-width): Rename from linum--face-height,
       and use the new functionality of font-info.
       (linum-update-window): Use linum--face-width and frame-char-width,
       instead of approximating with height.
      
       etc/NEWS: Mention the enhancement in font-info.
      b1978229
    • Stefan Monnier's avatar
      * src/keyboard.c (input_was_pending): New var. · 9e77c1b7
      Stefan Monnier authored
      (read_char): Use it to make sure we only skip redisplay when we can't
      keep up with the repeat rate.
      9e77c1b7
  17. 17 Dec, 2014 2 commits