1. 08 Jul, 2014 8 commits
    • Dmitry Antipov's avatar
      * font.c (font_build_object) [HAVE_XFT || HAVE_FREETYPE || HAVE_NS]: · 96f17a2f
      Dmitry Antipov authored
      New function, with an intention to avoid code duplication between
      a few font drivers.
      * font.h (font_build_object) [HAVE_XFT || HAVE_FREETYPE || HAVE_NS]:
      Add prototype.
      * ftfont.c (ftfont_open):
      * macfont.m (macfont_open):
      * xftfont.c (xftfont_open): Use it.
    • Dmitry Antipov's avatar
    • Juri Linkov's avatar
      * lisp/vc/vc-annotate.el (vc-annotate-background-mode): New defcustom. · b89e78fd
      Juri Linkov authored
      (vc-annotate-color-map): Use less saturated colors (20%) for
      (vc-annotate-very-old-color): Add default value for background-mode.
      (vc-annotate-background): Set default value to nil since now text on
      the default backgrounds should be legible in light and dark modes.
      (vc-annotate-lines): Use `vc-annotate-background-mode'.  Doc fix.
      Fixes: debbugs:17808
    • Juri Linkov's avatar
      * lisp/simple.el (transpose-chars): Don't move point into read-only area. · 43bb0be6
      Juri Linkov authored
      Fixes: debbugs:17829
    • Juri Linkov's avatar
      * lisp/window.el (with-displayed-buffer-window): New macro. · f0f70ec0
      Juri Linkov authored
      (with-temp-buffer-window, with-current-buffer-window):
      Use `macroexp-let2' to evaluate and bind variables
      in the same order as macro arguments.
      (display-buffer--action-function-custom-type): Add
      `display-buffer-below-selected' and `display-buffer-at-bottom'.
      * lisp/minibuffer.el (minibuffer-completion-help): Replace
      `with-output-to-temp-buffer' with `with-displayed-buffer-window'
      with actions that display *Completions* at-bottom when called
      from the minibuffer, or below-selected in a normal buffer.
      Associate `window-height' with `fit-window-to-buffer'.
      Let-bind `pop-up-windows' to nil.
      * lisp/dired.el (dired-mark-pop-up): Use `with-displayed-buffer-window'
      instead of `with-current-buffer-window'.
      Fixes: debbugs:17809
    • Dmitry Antipov's avatar
      * chartab.c (char_table_translate): Move to... · f298de52
      Dmitry Antipov authored
      * character.h (char_table_translate): ... inline function here.
      Avoid Faref and assume that args are always valid.  This helps to
      speedup search, which is especially important for a huge buffers.
      * lisp.h (char_table_translate): Remove prototype.
    • Paul Eggert's avatar
      * process.c: Add sanity checks for file descriptors. · 12dc5429
      Paul Eggert authored
      (wait_reading_process_output, Fprocess_filter_multibyte_p):
      Check that infd is nonnegative before using it as an fd.
      (read_and_dispose_of_process_output, Fprocess_send_eof):
      Likewise, for outfd.
      (wait_reading_process_output): Omit unnecessary check of infd.
      Fixes: debbugs:17844
    • Luke Lee's avatar
      ChangeLog fix: correcting file path. · ffcba0a9
      Luke Lee authored
  2. 07 Jul, 2014 4 commits
    • Paul Eggert's avatar
      Minor fixups related to usage of the 'long' type. · cae17e36
      Paul Eggert authored
      * gnutls.c (emacs_gnutls_handshake):
      * xfaces.c (dump_realized_face):
      Work even if 'long' is narrower than 'void *'.
      * termcap.c (scan_file):
      * xselect.c (x_decline_selection_request)
      (x_reply_selection_request, x_get_window_property):
      * xterm.c (x_set_frame_alpha):
      Remove unnecessary 'L' suffixes of integer constants.
      * xfns.c (hack_wm_protocols):
      * xselect.c (x_fill_property_data):
      * xterm.c (x_set_offset, x_set_window_size_1, x_make_frame_invisible):
      Remove unnecessary casts to 'long'.
      (set_machine_and_pid_properties): Don't assume pid_t fits in 32 bits.
    • Paul Eggert's avatar
      Minor ImageMagick safety fixes. · 0e142329
      Paul Eggert authored
      * image.c (imagemagick_compute_animated_image):
      Remove useless assignment to local.  Avoid problems if dest_width is 0.
      (imagemagick_load_image): Use int for pixel counts that can't
      exceed INT_MAX.  Avoid problem if PixelGetNextIteratorRow returns
      a row width greater than the image width (or greater than LONG_MAX!).
    • Luke Lee's avatar
      HideIfDef mode bug fixes and enhancements. This is #3 of 3 patches based · 2c578850
      Luke Lee authored
      on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.
      - Add macro evaluation function and key binding for a marked region.
      - Merge continuous "..." lines into one.
      - Fix old hideif bugs that fail to hide the correct #elif regions
      - Support hide/show commands in a marked region.
      - Expand top level for .h files to prevent re-inclusion protection.
      - Change maintainer.
      * lisp/progmodes/hideif.el (hide-ifdef-env): Change to global.
      (hide-ifdef-env-backup): New variable.
      (hide-ifdef-expand-reinclusion-protection, hide-ifdef-header-regexp):
      New customizable variables.
      (hif-clear-all-ifdef-defined): New defun.
      (hif-merge-ifdef-region, hide-ifdef-region-internal, hide-ifdef-region)
      (hif-show-ifdef-region): Merge hidden regions to prevent continuous "...".
      (hif-tokenize): Fix for MS-DOS/Win EOL style.
      (hif-endif-to-ifdef, hif-make-range, hif-find-range, hif-possibly-hide):
      Fix bug to hide the correct #elif region(s).
      (hif-range-elif): New defun.
      (hif-recurse-level): New var.
      (hif-evaluate-region, hif-evaluate-macro): New defun.
      (hide-ifdef-guts): Prevent reinclusion protected C/C++ headers from
      fully hidden.
      (hide-ifdef-define, hide-ifdefs, hide-ifdef-block, show-ifdef-block):
      Better interaction.
    • Katsumi Yamaoka's avatar
  3. 05 Jul, 2014 1 commit
  4. 04 Jul, 2014 4 commits
  5. 03 Jul, 2014 7 commits
  6. 02 Jul, 2014 9 commits
  7. 01 Jul, 2014 7 commits
    • Juri Linkov's avatar
      Display man pages immediately and use process-filter to format them asynchronously. · a4b0fffe
      Juri Linkov authored
      * lisp/man.el (Man-width): Doc fix.
      (man): Doc fix.
      (Man-start-calling): Use `with-selected-window' to get
      `frame-width' and `window-width'.
      (Man-getpage-in-background): Call `Man-notify-when-ready'
      immediately after creating a new buffer.  Call `Man-mode' and set
      `mode-line-process' in the created buffer.  Set process-filter to
      `Man-bgproc-filter' in start-process branch.  In call-process branch
      call either `Man-fontify-manpage' or `Man-cleanup-manpage'.
      Use `Man-start-calling' inside `with-current-buffer'.
      (Man-fontify-manpage): Don't print messages.  Fix boundary condition.
      (Man-cleanup-manpage): Don't print messages.
      (Man-bgproc-filter): New function.
      (Man-bgproc-sentinel): Add `save-excursion' to keep point when
      user moved it during asynchronous formatting.  Move calls of
      `Man-fontify-manpage' and `Man-cleanup-manpage' to
      `Man-bgproc-filter'.  Move the call of `Man-mode' to
      `Man-getpage-in-background'.  Use `quit-restore-window'
      instead of `kill-buffer'.  Use `message' instead of `error'
      because errors are catched by process sentinel.
      (Man-mode): Move calls of `Man-build-page-list',
      `Man-strip-page-headers', `Man-unindent', `Man-goto-page' to
      `Man-bgproc-sentinel'.  Doc fix.  (Bug#2588, bug#5054, bug#9084, bug#17831)
    • Mario Lang's avatar
      * net/gnutls.el (gnutls-negotiate): Prevent destructive modification of · dd72a0ca
      Mario Lang authored
      customization option `gnutls-verify-error.
    • Stefan Monnier's avatar
      * lisp/simple.el (deactivate-mark, set-mark-command, handle-shift-selection): · 6372fc12
      Stefan Monnier authored
      Don't keep transient-mark-mode buffer-local when not needed.
      Fixes: debbugs:6316
    • Eli Zaretskii's avatar
      src/dispnew.c: Fix a typo in a comment. · cdadeecf
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Fix bug #17892 with mode/header line and display margins. · ff6e6a42
      Eli Zaretskii authored
       src/dispnew.c (prepare_desired_row): Accept 2 additional arguments:
       the window whose glyph row is being prepared and a flag whether it
       is for mode/header line.  Make sure the glyph row's marginal areas
       are in sync with what the window wants.
       src/xdisp.c (display_line, display_mode_line): Call
       prepare_desired_row with additional arguments, as appropriate.
       src/dispextern.h (prepare_desired_row): Adjust prototype.
       src/window.h: Improve commentary of the marginal columns.
    • Stefan Monnier's avatar
      * lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal) · 854b22ea
      Stefan Monnier authored
      (turn-off-xterm-mouse-tracking-on-terminal): Don't burp if the terminal
      is suspended.
      Fixes: debbugs:17857
    • Kenichi Handa's avatar
      merge trunk · 763a11d0
      Kenichi Handa authored