1. 14 Jan, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-generic.el: New file. · 9def17e9
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (cl-flet): Allow (FUN EXP) forms.
      (cl-load-time-value, cl-labels): Use closures rather than
      backquoted lambdas.
      (cl-macrolet): Use `eval' to create the function value, and support CL
      style arguments in for the defined macros.
      * test/automated/cl-generic-tests.el: New file.
      9def17e9
  2. 11 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Default to 'configure --enable-silent-rules' · b995b4ae
      Paul Eggert authored
      This greatly shortens the 'make' output, making it more readable
      and useful.  For example, on my platform it shortens a
      4125-character line "gcc -std=gnu99 -c -Demacs -I. -I. -I../lib
      ... emacs.c" -- a line so long that it's hard to see what's going
      on or where the diagnostics are -- to just "CC emacs.o".
      * INSTALL: Document this.
      * configure.ac: Add AM_SILENT_RULES([yes]).
      (AM_DEFAULT_VERBOSITY): Remove now-unnecessary initialization.
      * etc/NEWS: Document this.
      Fixes: bug#19501
      b995b4ae
  3. 10 Jan, 2015 1 commit
  4. 08 Jan, 2015 2 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/eieio*.el: Move the function defs to defclass. · 6a67b20d
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio.el (defclass): Move from eieio-defclass all the code
      that creates functions, and most of the sanity checks.
      Mark as obsolete the <class>-child-p function.
      * lisp/emacs-lisp/eieio-core.el (eieio--define-field-accessors): Remove.
      (eieio--class, eieio--object): Use cl-defstruct.
      (eieio--object-num-slots): Define manually.
      (eieio-defclass-autoload): Use eieio--class-make.
      (eieio-defclass-internal): Rename from eieio-defclass.  Move all the
      `(lambda...) definitions and most of the sanity checks to `defclass'.
      Mark as obsolete the <class>-list-p function, the <class> variable and
      the <initarg> variables.  Use pcase-dolist.
      (eieio-defclass): New compatibility function.
      * lisp/emacs-lisp/eieio-opt.el (eieio-build-class-alist)
      (eieio-class-speedbar): Don't use eieio-default-superclass var.
      6a67b20d
    • Glenn Morris's avatar
      * lisp/files.el (file-tree-walk): Remove; of unknown authorship. · ffa86039
      Glenn Morris authored
      * etc/NEWS: Remove entry.
      
      Fixes: debbugs:19325
      ffa86039
  5. 06 Jan, 2015 1 commit
  6. 05 Jan, 2015 1 commit
  7. 04 Jan, 2015 1 commit
    • Paul Eggert's avatar
      batch write-region no longer says "Wrote FOO" · d20f82e6
      Paul Eggert authored
      This cuts down on 'make' chatter a bit.
      * doc/lispref/files.texi (Writing to Files):
      * etc/NEWS: Document this.
      * src/fileio.c (Fwrite_region):
      Don't output "Wrote /whatever/foo.elc" if noninteractive.
      d20f82e6
  8. 01 Jan, 2015 1 commit
  9. 31 Dec, 2014 1 commit
  10. 29 Dec, 2014 3 commits
    • Paul Eggert's avatar
      97311068
    • Paul Eggert's avatar
      system-name's returned value can vary · f9acac75
      Paul Eggert authored
      Also, the system-name variable is now obsolete.
      Fixes Bug#19438.
      * doc/lispref/os.texi (System Environment):
      * etc/NEWS: Document this.
      * doc/misc/efaq.texi:
      (Displaying the current file name in the titlebar):
      * lisp/desktop.el (desktop-save-frameset):
      * lisp/dnd.el (dnd-get-local-file-uri):
      * lisp/gnus/message.el (message-make-fqdn):
      * lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers)
      (nnvirtual-update-xref-header):
      * lisp/nxml/rng-uri.el (rng-uri-file-name-1):
      * lisp/org/org-clock.el (org-clock-save):
      * src/filelock.c (current_lock_owner):
      * src/xrdb.c (get_environ_db):
      * src/xterm.c (same_x_server):
      * src/xterm.c (x_term_init):
      Prefer (system-name) to system-name, and avoid naming
      locals 'system-name'.
      * doc/misc/smtpmail.texi (Server workarounds): Fix grammar.
      * lisp/startup.el (system-name): Now an obsolete variable.
      * src/editfns.c (cached_system_name): New static var.
      (init_and_cache_system_name): New function.
      (init_editfns, Fsystem_name): Use it.
      (syms_of_editfns): Initialize it and Vsystem_name to the same value.
      * src/sysdep.c [HAVE_SOCKETS]: Don't include <sys/socket.h>, <netdb.h>.
      (h_errno) [TRY_AGAIN && !HAVE_H_ERRNO]: Remove decl.
      (init_system_name) [HAVE_SOCKETS]: Don't canonicalize the name.
      Don't create a new string if the current value is already correct.
      f9acac75
    • Dmitry Gutov's avatar
      Declare many etags command obsolete; update the goto menu · c1eec814
      Dmitry Gutov authored
      * lisp/menu-bar.el (menu-bar-goto-menu): Replace all but one etags item
      with xref ones.
      
      * lisp/progmodes/etags.el (find-tag-other-window)
      (find-tag-other-frame, find-tag-regexp, tags-loop-continue)
      (tags-apropos): Declare obsolete.
      c1eec814
  11. 28 Dec, 2014 1 commit
    • Juri Linkov's avatar
      Use diff faces for compare-windows · d143df5a
      Juri Linkov authored
      * lisp/vc/compare-w.el: Require diff-mode for diff faces.
      (compare-windows-removed, compare-windows-added): New faces
      inheriting from diff faces.
      (compare-windows): Define obsolete face alias.
      (compare-windows-highlight): Replace face `compare-windows' with
      new faces `compare-windows-added' and `compare-windows-removed'.
      (compare-windows-get-recent-window): Signal an error when
      no other window is found.
      
      Fixes: debbugs:19451
      d143df5a
  12. 26 Dec, 2014 1 commit
  13. 25 Dec, 2014 2 commits
    • Dmitry Gutov's avatar
      Consolidate cross-referencing commands · 394ce951
      Dmitry Gutov authored
      Move autoloaded bindings for `M-.', `M-,', `C-x 4 .' and
      `C-x 5 .' from etags.el to xref.el.
      
      * progmodes/xref.el: New file.
      
      * progmodes/elisp-mode.el (elisp--identifier-types): New variable.
      (elisp--identifier-location): New function, extracted from
      `elisp--company-location'.
      (elisp--company-location): Use it.
      (elisp--identifier-completion-table): New variable.
      (elisp-completion-at-point): Use it.
      (emacs-lisp-mode): Set the local values of `xref-find-function'
      and `xref-identifier-completion-table-function'.
      (elisp-xref-find, elisp--xref-find-definitions)
      (elisp--xref-identifier-completion-table): New functions.
      
      * progmodes/etags.el (find-tag-marker-ring): Mark obsolete in
      favor of `xref--marker-ring'.
      (tags-lazy-completion-table): Autoload.
      (tags-reset-tags-tables): Use `xref-clear-marker-stack'.
      (find-tag-noselect): Use `xref-push-marker-stack'.
      (pop-tag-mark): Make an alias for `xref-pop-marker-stack'.
      (etags--xref-limit): New constant.
      (etags-xref-find, etags--xref-find-definitions): New functions.
      394ce951
    • Karl Fogel's avatar
      * etc/NEWS: Mention new buffer display behavior for `shell'. · ac549019
      Karl Fogel authored
      This follows up to Sam Steingold's change of 2014-12-23
      in ../lisp/shell.el, in git commit e55a467e.
      ac549019
  14. 19 Dec, 2014 1 commit
  15. 18 Dec, 2014 5 commits
    • Sam Steingold's avatar
      Keyboard interface (C-f10) to `mouse-buffer-menu' (C-down-mouse-1). · 87f9ec7a
      Sam Steingold authored
      * lisp/mouse.el (mouse-buffer-menu-map): Extract from `mouse-buffer-menu'.
      (mouse-buffer-menu): Use `mouse-buffer-menu-map'.
      * lisp/menu-bar.el (menu-bar-buffer-vector): Extract from
      `menu-bar-update-buffers'.
      (menu-bar-update-buffers): Use `menu-bar-buffer-vector'.
      (buffer-menu-open): New user command, bound globally to C-f10,
      provides a keyboard interface to `mouse-buffer-menu' (C-down-mouse-1).
      (mouse-buffer-menu-keymap): Use `menu-bar-buffer-vector' to
      convert the value returned by `mouse-buffer-menu-map' to a list
      acceptable to `popup-menu' for `buffer-menu-open'.
      87f9ec7a
    • 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
      * lisp/subr.el (redisplay-dont-pause): Mark as obsolete. · 78101c2b
      Stefan Monnier authored
      * doc/lispref/display.texi (Forcing Redisplay): Remove references to
      redisplay-dont-pause and redisplay-preemption-period (which doesn't
      even exist).
      78101c2b
    • NicolasPetton's avatar
      62d7857d
  16. 15 Dec, 2014 1 commit
  17. 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
    • Cameron Desautels's avatar
      Provide custom-prompt-customize-unsaved-options. · 4c4f970c
      Cameron Desautels authored
      * doc/emacs/custom.texi (Saving Customizations): Mention
      `custom-prompt-customize-unsaved-options'.
      
      * etc/NEWS: Mention `custom-prompt-customize-unsaved-options'.
      
      * etc/TODO: Remove its entry.
      
      * lisp/cus-edit.el (custom-prompt-customize-unsaved-options): Add a
      mechanism for prompting user about unsaved customizations.
      (Bug#19328)
      4c4f970c
    • Glenn Morris's avatar
      Remove lib-src/grep-changelog · 49daed60
      Glenn Morris authored
      Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00145.html
      
      * lib-src/grep-changelog: Remove file.
      
      * lib-src/Makefile.in (INSTALLABLE_SCRIPTS): Remove.
      (all, install, uninstall): Remove INSTALLABLE_SCRIPTS.
      
      * doc/man/grep-changelog.1: Remove file.
      
      * make-dist: No more lib-src/grep-changelog.
      
      * INSTALL: No longer mention grep-changelog.
      
      * admin/quick-install-emacs (PUBLIC_LIBSRC_SCRIPTS): Remove, and all uses.
      
      * admin/authors.el (authors-valid-file-names): Add grep-changelog.
      
      * etc/NEWS: Mention this.
      49daed60
  18. 13 Dec, 2014 1 commit
  19. 09 Dec, 2014 3 commits
  20. 08 Dec, 2014 2 commits
  21. 07 Dec, 2014 1 commit
  22. 05 Dec, 2014 3 commits
  23. 04 Dec, 2014 1 commit
  24. 03 Dec, 2014 2 commits
    • Stefan Monnier's avatar
      Fixes: debbugs:19250 · 41bb375c
      Stefan Monnier authored
      * lisp/minibuffer.el (completion-table-dynamic): Add arg `switch-buffer'
      
      and change default to stay in the minibuffer when called from
      the minibuffer.
      (lazy-completion-table): Use this new argument to preserve the
      old behavior.
      
      * lisp/progmodes/elisp-mode.el (elisp--local-variables): Don't burp on
      incorrect lexical elements (bug#19250).
      41bb375c
    • Eli Zaretskii's avatar
      etc/NEWS: Mention 'file-tree-walk'. · e148a1ea
      Eli Zaretskii authored
      e148a1ea