1. 18 Dec, 2014 5 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
    • 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
  2. 17 Dec, 2014 4 commits
  3. 16 Dec, 2014 1 commit
  4. 15 Dec, 2014 2 commits
  5. 14 Dec, 2014 3 commits
    • Alan Mackenzie's avatar
      New feature optionally to accelerate auto-repeated scrolling. · 37139317
      Alan Mackenzie authored
      src/xdisp.c: Remove "static" from declaration of
      Qfontification_functions.
      
      src/window.c (window_scroll): bind fontification-functions to nil when
      scrolling by whole screens and fast-but-imprecise-scrolling is non-nil.
      (syms_of_window): New DEFVAR_BOOL fast-but-imprecise-scrolling.
      
      src/lisp.h (bool): Declare Qfontification_functions extern.
      
      lisp/cus-start.el (all): Add fast-but-imprecise-scrolling.
      
      doc/emacs/display.texi (Scrolling): fast-but-imprecise-scrolling.
      Describe new variable.
      
      etc/NEWS: Add entry for fast-but-imprecise-scrolling.
      37139317
    • Eli Zaretskii's avatar
      Load system's default trusted Certificate Authorities if available. · e99ce632
      Eli Zaretskii authored
       src/gnutls.c (gnutls_certificate_set_x509_system_trust)
       [GNUTLS >= 3.0.20]: Declare for WINDOWSNT.
       (init_gnutls_functions)(gnutls_certificate_set_x509_system_trust)
       [GNUTLS >= 3.0.20]: Load from shared library for WINDOWSNT.
       (fn_gnutls_certificate_set_x509_system_trust) [!WINDOWSNT]: Define
       new macro.
       (Fgnutls_boot) [GNUTLS >= 3.0.20]: Call
       gnutls_certificate_set_x509_system_trust.  Log an error message if
       it fails.
      e99ce632
    • Glenn Morris's avatar
      a8af924b
  6. 13 Dec, 2014 2 commits
    • Eli Zaretskii's avatar
      c081fe29
    • Ted Zlatanov's avatar
      Merge from origin/emacs-24 · 28e0d0c9
      Ted Zlatanov authored
      bd6c4418 * simple.el (password-word-equivalents): Add "passcode", used for numeric secrets like PINs or RSA tokens.
      16d4c1cd A better fix for bug#19346
      82ec808f * .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.
      3cf7629f Git ignore lib/std*.h
      301a4014 Always define `gnutls-available-p' even if GnuTLS is not available.
      d76b9b2a Don't break example string between 2 lines (bug#19257)
      75b4857e Port commit-msg to mawk
      9ac03320 Improve commit-msg messages and autosquash
      0c2f254b Support overflow-newline-into-fringe together with word-wrap (bug#19300)
      935ee05f * net/tramp-sh.el (tramp-get-remote-path): Use a login shell in order to determine `tramp-own-remote-path'.
      c2db9393 python.el: Support interpreter paths with spaces
      d83f3299 ChangeLog fix
      0f9fbb92 Port commit-message checking to FreeBSD 9.
      3db1adac admin/MAINTAINERS: Update my interests and responsibilities.
      6382f241 * .gitignore: Ignore autosave files.
      
      Conflicts:
      	ChangeLog
      	lisp/progmodes/python.el
      	src/gnutls.c
      28e0d0c9
  7. 12 Dec, 2014 1 commit
    • Eli Zaretskii's avatar
      A better fix for bug#19346 · 16d4c1cd
      Eli Zaretskii authored
       src/gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move
       gnutls-available-p out of the HAVE_GNUTLS conditional, and define
       them only once.
      16d4c1cd
  8. 11 Dec, 2014 3 commits
    • Ted Zlatanov's avatar
      Always define `gnutls-available-p' even if GnuTLS is not available. · 301a4014
      Ted Zlatanov authored
      Fixes: debbugs:19346
      
      * gnutls.c (Fgnutls_available_p syms_of_gnutls): Move later for
      clarity.  Let the availability check return Qnil when the GnuTLS
      integration is not available, instead of erroring out.
      
      * gnutls.h: Always declare syms_of_gnutls.
      
      * emacs.c (main): Always include gnutls.h and run syms_of_gnutls.
      301a4014
    • Stefan Monnier's avatar
      Fixes: debbugs:19161 · aeeaf082
      Stefan Monnier authored
      * src/fileio.c: Better preserve window-points during revert.
      
      (Qget_buffer_window_list): New var.
      (get_window_points_and_markers, restore_window_points): New functions.
      (Finsert_file_contents): Use them to save and restore window-points.
      aeeaf082
    • Dmitry Antipov's avatar
      Never pass an invalid X connection descriptor to an input reading loop · 3e92b988
      Dmitry Antipov authored
      Fixes: debbugs:19147
      
      * xterm.c (x_delete_terminal): Call emacs_close for X connection
      descriptor if called from x_connection_closed and always delete
      this descriptor from keyboard waiting set (Bug#19147).
      3e92b988
  9. 10 Dec, 2014 3 commits
    • Eli Zaretskii's avatar
      Support overflow-newline-into-fringe together with word-wrap (bug#19300) · 0c2f254b
      Eli Zaretskii authored
       src/xdisp.c (move_it_in_display_line_to, display_line): Don't
       disallow overflow-newline-into-fringe when word-wrap is in
       effect.
      0c2f254b
    • Eli Zaretskii's avatar
      Fix out-of-memory condition in display of long bracketed lines (bug#19322) · f3e16cbb
      Eli Zaretskii authored
       src/bidi.c (BIDI_CACHE_MAX_ELTS_PER_SLOT): New macro.
       (bidi_cache_max_elts): New global variable.
       (bidi_shelve_header_size): Add the sizeof bidi_cache_max_elts.
       (bidi_cache_shrink, bidi_initialize): Reset bidi_cache_max_elts to
       its initial value.
       (bidi_cache_search): Handle overflown cache.  Improve commentary.
       (bidi_cache_ensure_space): Limit allocations to the current value
       of bidi_cache_max_elts.  Force xpalloc not to over-allocate.  If
       less than a full BIDI_CACHE_CHUNK is left to the limit, decrease
       the increment to not exceed the limit.
       (bidi_cache_iterator_state): Now returns non-zero if succeeded to
       cache, zero otherwise (meaning the cache overflowed).  In the
       latter case, set bidi_cache_last_idx to -1.
       (bidi_peek_at_next_level): Handle overflown cache.
       (bidi_push_it): Increase the cache limit for iterating the new
       object.
       (bidi_pop_it): Decrease the cache limit back to previous value.
       (bidi_shelve_cache): Shelve the current value of the cache limit.
       (bidi_unshelve_cache): Restore the value of cache limit.
       (bidi_find_bracket_pairs): If the cache overflows while looking
       for the paired bracket, give up and let bidi_resolve_neutrals
       process the bracket as a simple neutral.
       (bidi_find_other_level_edge): If the cache overflows, fall back on
       Plan B, which effectively stops the reordering and restarts it on
       the next character (after resetting the cache).
       (bidi_move_to_visually_next): When the cache overflows, reset it
       after processing the last cached character.
      f3e16cbb
    • Paul Eggert's avatar
      Fix glitches in gnutls.c, mostly memory-related · 99be7508
      Paul Eggert authored
      * gnutls.c: Sort macro definitions by name.
      (fn_gnutls_transport_set_errno): Omit unreachable definition.
      (fn_gnutls_x509_crt_get_signature): Omit unused symbol.
      (gnutls_hex_string): Arg is now unsigned char *, to avoid a cast.
      Prefer ptrdiff_t for sizes.  Check for arithmetic overflow when
      calculating string length.  Use make_uninit_string, to avoid
      copying the string.  Cast the char, not the pointer.
      (gnutls_certificate_details): Use xmalloc and xfree, not malloc
      and free.  Work even for dates past the year 9999.  Use void *
      for buffers, to avoid casts.
      99be7508
  10. 09 Dec, 2014 1 commit
  11. 08 Dec, 2014 10 commits
  12. 07 Dec, 2014 1 commit
    • Jan D's avatar
      Fixes: debbugs:19133 · f3a68581
      Jan D authored
      * nsimage.m (setPixmapData): Make bmRep local so class member is not
      set.
      f3a68581
  13. 05 Dec, 2014 1 commit
    • Eli Zaretskii's avatar
      Reduce memory footprint of struct bidi_it by a factor of 5. · fcc4da3e
      Eli Zaretskii authored
       src/dispextern.h (enum bidi_dir_t): Force NEUTRAL_DIR to be zero.
       (struct bidi_stack): Reduce size by using bit fields and by
       packing sos, override, and isolate_status into a single 8-bit
       byte called 'flags'.
       src/bidi.c (ISOLATE_STATUS, OVERRIDE): New macros.
       (bidi_push_embedding_level): Construct flags from individual
       bits.  Adapt to changes in prev_for_neutral and next_for_neutral
       members.
       (bidi_pop_embedding_level): Use ISOLATE_STATUS.  Extract 'sos'
       from flags.  Adapt to changes in prev_for_neutral,
       next_for_neutral, and last_strong members.
       (bidi_line_init): Initialize flags to zero.
       (bidi_resolve_explicit, bidi_resolve_weak, bidi_resolve_brackets)
       (bidi_resolve_neutral): Use ISOLATE_STATUS and OVERRIDE.
      fcc4da3e
  14. 04 Dec, 2014 2 commits
  15. 03 Dec, 2014 1 commit
    • Chris Zheng's avatar
      Fix gnutls.c build on MinGW · 38aaf904
      Chris Zheng authored
      Fixes: debbugs:19231
      
      * gnutls.c (init_gnutls_functions, gnutls_certificate_details):
      Use gnutls_sign_get_name directly because
      gnutls_sign_algorithm_get_name is a macro on MinGW.
      (init_gnutls_functions): Load missing gnutls_server_name_set.
      38aaf904