1. 18 Dec, 2014 13 commits
    • Sam Steingold's avatar
      Avoid a compilation warning · 0f765f45
      Sam Steingold authored
      * lisp/emacs-lisp/package.el: Avoid a compilation warning by declaring
      the `find-library-name' function.
      0f765f45
    • Stefan Monnier's avatar
      * lisp/gnus/gnus-art.el: Fix up compiler warnings. · 8f03888e
      Stefan Monnier authored
      (article-display-face, article-display-x-face): Remove unused `face'.
      (gnus-article-browse-html-save-cid-content): Remove unused var `type'.
      (article-date-ut): Remove unused var `first'.
      (gnus-article-prepare): Remove unused var `gnus-article'.
      (gnus-mime-save-part-and-strip): Remove unused var `param'.
      (gnus-mime-inline-part): Remove unused vars `charset', `contents', and
      `coding-system' along with corresponding dead code.
      (gnus-mime-view-part-externally): Remove unused var
      `mm-user-display-methods'.
      (gnus-insert-mime-button): Let-bind gnus-tmp-id explicitly.
      (gnus-display-mime): Remove unused var `handle'.
      (gnus-mime-display-alternative): Remove unused var `props'.
      (gnus-article-read-summary-keys): Remove unused var `up-to-top'.
      (gnus-article-edit-done): Remove unused var `p'.
      (gnus-url-mailto): Remove unused var `to'.
      (gnus-treat-article): Let-bind gnus-treat-condition, part-number,
      total-parts, and gnus-treat-type explicitly.  Remove unused var `elem'.
      
      * lisp/gnus/mm-util.el (mm-with-unibyte-current-buffer): Mark obsolete and
      add warning.
      8f03888e
    • Martin Rudalics's avatar
      Fix ispell window handling. · 655a6f35
      Martin Rudalics authored
      * textmodes/ispell.el (ispell-command-loop): Suppress horizontal
      scroll bar on ispell's windows.  Don't count window lines and
      don't deal with dedicated windows.
      (ispell-show-choices, ispell-help): Let `ispell-display-buffer'
      do the window handling.
      (ispell-adjusted-window-height, ispell-overlay-window): Remove.
      (ispell-display-buffer): New function to reuse, create and fit
      window to ispell's buffers. (Bug#3413)
      655a6f35
    • 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
    • Dmitry Gutov's avatar
      Fixes: debbugs:19390 · 36c43e95
      Dmitry Gutov authored
      * lisp/emacs-lisp/package.el (package-activate): Do not re-activate or
      reload the dependencies.
      36c43e95
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-cmds.el (c-subword-mode): Alias to subword-mode. · 39ead8cd
      Stefan Monnier authored
      (c-update-modeline):
      * lisp/progmodes/cc-langs.el (c-mode-menu): Use c-subword-mode.
      * lisp/progmodes/cc-mode.el (subword-mode): Move autoload to cc-cmds.el.
      (c-mode-base-map): Use c-subword-mode.
      39ead8cd
    • 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
    • Dmitry Gutov's avatar
      Remove extra semicolons · 687ae680
      Dmitry Gutov authored
      687ae680
    • Dmitry Gutov's avatar
      Fix recent vc-svn-dir-status-files breakage · af1040b3
      Dmitry Gutov authored
      Fixes: debbugs:19387 debbugs:19405
      
      * lisp/vc/vc-svn.el (vc-svn-dir-status-files): Revert the 2014-12-02
      change.  Use `apply' on `vc-dir-command'.
      af1040b3
    • NicolasPetton's avatar
      62d7857d
    • Eric Abrahamsen's avatar
      Fix Gnus registry pruning and sorting, and rename file · d20acfe0
      Eric Abrahamsen authored
      * lisp/gnus/gnus-registry.el (gnus-registry-prune-factor): Add new variable.
      (gnus-registry-max-pruned-entries): Remove obsolete variable.
      (gnus-registry-cache-file): Change default
      filename extension to "eieio".
      (gnus-registry-read): Add new function, split out from
      `gnus-registry-load', that does the actual object reading.
      (gnus-registry-load): Use it. Add condition case handler to check for
      old filename extension and rename to the new one.
      (gnus-registry-default-sort-function): New variable to specify a sort
      function to use when pruning.
      (gnus-registry-save, gnus-registry-insert): Use it.
      (gnus-registry-sort-by-creation-time): Define a default sort function.
      
      * lisp/gnus/registry.el (registry-db): Consolidate the :max-hard and
      :max-soft slots into a :max-size slot.
      (registry-db-version): Add new variable for database version number.
      (registry-prune): Use :max-size slot. Accept and use a sort-function
      argument.
      (registry-collect-prune-candidates): Add new function for finding
      non-precious pruning candidates.
      (registry-prune-hard-candidates, registry-prune-soft-candidates):
      Remove obsolete functions.
      (initialize-instance): Upgrade registry version when starting.
      
      * doc/misc/gnus.texi (Gnus Registry Setup): Explain pruning changes.
      Mention gnus-registry-prune-factor. Explain sorting changes and
      gnus-registry-default-sort-function. Correct file extension.
      d20acfe0
    • Dmitry Gutov's avatar
      Don't reload packages at startup · 18d4bdf1
      Dmitry Gutov authored
      Fixes: debbugs:19390
      
      * lisp/emacs-lisp/package.el (package-activate-1): Add RELOAD argument
      and a docstring.
      (package-activate): Call itself on dependencies on PACKAGE with
      the same FORCE argument.  Pass FORCE as RELOAD into
      `package-activate-1' .
      18d4bdf1
    • 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 11 commits
  3. 16 Dec, 2014 6 commits
  4. 15 Dec, 2014 9 commits
  5. 14 Dec, 2014 1 commit
    • 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