1. 16 Nov, 2015 1 commit
  2. 15 Nov, 2015 1 commit
    • Artur Malabarba's avatar
      Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue. · d99ccd6d
      Artur Malabarba authored
      * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to
      `url-insert-buffer-contents'.
      (url-insert-buffer-contents): New function
      
      (package--with-response-buffer): Use `url-insert-buffer-contents'.
      The previous code had some issues with decoding. Refactoring that
      function allows us to use the decoding from url-handlers while still
      treating both sync and async requests the same.
      d99ccd6d
  3. 14 Nov, 2015 1 commit
    • Artur Malabarba's avatar
      Backport: * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async. · e7f2c91b
      Artur Malabarba authored
      (package--with-work-buffer-async): Reimplement as
      `package--with-response-buffer'.
      (package--with-work-buffer): Mark obsolete.
      (package--with-response-buffer): New macro. This is a more self
      contained and less contrived version of
      `package--with-work-buffer-async'.  It uses keyword arguments,
      doesn't have async on the name, doesn't fallback on
      `package--with-work-buffer', and has _much_ simpler error
      handling.  On master, this macro will soon be part of another
      library (either standalone or inside url.el), which is why this
      commit is not to be merged back.
      
      (package--check-signature, package--download-one-archive)
      (package-install-from-archive, describe-package-1): Use it.
      
      (package--download-and-read-archives): Let
      `package--download-one-archive' take care of calling
      `package--update-downloads-in-progress'.
      e7f2c91b
  4. 11 Nov, 2015 1 commit
    • NicolasPetton's avatar
      Rename seq-p and map-p to seqp and mapp · 51d840a8
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seqp): New name.
      * lisp/emacs-lisp/map.el (mapp): New name.
      * doc/lispref/sequences.texi: Update the documentation for seqp.
      * test/automated/map-tests.el: Update the tests for mapp.
      51d840a8
  5. 10 Nov, 2015 2 commits
  6. 07 Nov, 2015 1 commit
  7. 06 Nov, 2015 1 commit
    • Dmitry Gutov's avatar
      Rename "search path" to "library roots" · 97769720
      Dmitry Gutov authored
      * lisp/emacs-lisp/cl-seq.el (cl-set-difference): Retain the order
      of the elements from CL-LIST1.
      
      * test/automated/cl-lib-tests.el (cl-lib-test-set-functions):
      Update WRT to the above change.
      
      * lisp/progmodes/project.el (project-search-path-function): Rename
      to project-library-roots-function, update the documentation and
      references.
      (project-search-path): Likewise, to project-library-roots.
      (project-roots): Clarify documentation.
      (project-vc-search-path): Likewise, to project-vc-library-roots.
      (project-library-roots): In addition to the renames, thread the
      results through file-name-as-directory.
      (project-prune-directories): Accept a variable number of
      arguments.  Rename to project-combine-directories.
      (project-subtract-directories): New function.
      
      * lisp/progmodes/elisp-mode.el (elisp--xref-find-references):
      Append project-roots and project-library-roots together.
      
      * lisp/progmodes/etags.el (etags--xref-find-references): Ditto.
      97769720
  8. 05 Nov, 2015 1 commit
  9. 04 Nov, 2015 1 commit
  10. 03 Nov, 2015 1 commit
  11. 31 Oct, 2015 1 commit
  12. 29 Oct, 2015 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context · 84dcdbeb
      Stefan Monnier authored
      (cl--generic-derived-specializers): New function.
      (cl--generic-derived-generalizer): New generalizer.
      (cl-generic-generalizers): New specializer (derived-mode MODE).
      (cl--generic-split-args): Apply the rewriter, if any.
      (cl-generic-define-context-rewriter): New macro.
      (major-mode): Use it to define a new context-rewriter, so we can write
      `(major-mode MODE)' instead of `(major-mode (derived-mode MODE))'.
      
      * lisp/frame.el (window-system): New context-rewriter so we can write
      `(window-system VAL)' instead of (window-system (eql VAL)).
      (cl--generic-split-args): Apply the rewriter, if any.
      (frame-creation-function): Use the new syntax.
      
      * lisp/term/x-win.el (window-system-initialization)
      (handle-args-function, frame-creation-function)
      (gui-backend-set-selection, gui-backend-selection-owner-p)
      (gui-backend-selection-exists-p, gui-backend-get-selection):
      * lisp/term/w32-win.el (window-system-initialization)
      (handle-args-function, frame-creation-function)
      (gui-backend-set-selection, gui-backend-get-selection)
      (gui-backend-selection-owner-p, gui-backend-selection-exists-p):
      * lisp/term/pc-win.el (gui-backend-get-selection)
      (gui-backend-selection-exists-p, gui-backend-selection-owner-p)
      (gui-backend-set-selection, window-system-initialization)
      (frame-creation-function, handle-args-function):
      * lisp/term/ns-win.el (window-system-initialization)
      (handle-args-function, frame-creation-function)
      (gui-backend-set-selection, gui-backend-selection-exists-p)
      (gui-backend-get-selection):
      * lisp/startup.el (handle-args-function):
      * lisp/term/xterm.el (gui-backend-get-selection)
      (gui-backend-set-selection): Use the new syntax.
      84dcdbeb
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/smie.el: Use `declare' for `pure' · be81cc27
      Stefan Monnier authored
      (smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2, smie-prec2->grammar):
      Use `declare'.
      be81cc27
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-generic.el: Accomodate future changes · aa1c4ae2
      Stefan Monnier authored
      (cl--generic-generalizer): Add `name' field.
      (cl-generic-make-generalizer): Add corresponding `name' argument.
      (cl-generic-define-generalizer): New macro.
      (cl--generic-head-generalizer, cl--generic-eql-generalizer)
      (cl--generic-struct-generalizer, cl--generic-typeof-generalizer)
      (cl--generic-t-generalizer): Use it.
      (cl-generic-ensure-function): Add `noerror' argument.
      (cl-generic-define): Use it so we don't follow aliases.
      (cl-generic-define-method): Preserve pre-existing ordering of methods.
      (cl--generic-arg-specializer): New function.
      (cl--generic-cache-miss): Use it.
      (cl-generic-generalizers): Only fset a temporary definition
      during bootstrap.
      (cl--generic-struct-tag, cl--generic-struct-specializers):
      Allow extra arguments.
      
      * lisp/emacs-lisp/eieio-compat.el (eieio--generic-static-symbol-generalizer)
      (eieio--generic-static-object-generalizer): Use cl-generic-define-generalizer.
      (eieio--generic-static-symbol-specializers): Allow extra arguments.
      
      * lisp/emacs-lisp/eieio-core.el (eieio--generic-generalizer)
      (eieio--generic-subclass-generalizer): Use cl-generic-define-generalizer.
      (eieio--generic-subclass-specializers): Allow extra arguments.
      aa1c4ae2
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      (internal--syntax-propertize): Save match-data here (bug#21766) · d7a67c5a
      Stefan Monnier authored
      * lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data.
      * lisp/simple.el (delete-trailing-whitespace): Undo last change.
      d7a67c5a
  13. 28 Oct, 2015 3 commits
  14. 26 Oct, 2015 4 commits
  15. 23 Oct, 2015 3 commits
  16. 21 Oct, 2015 1 commit
    • Paul Eggert's avatar
      (/ N) now returns the reciprocal of N · e9af822a
      Paul Eggert authored
      This is more compatible with Common Lisp and XEmacs (Bug#21690).  See:
      http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html
      * lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb)
      (color-xyz-to-srgb, color-xyz-to-lab):
      * lisp/emacs-lisp/cl-extra.el (cl-float-limits):
      * lisp/net/shr-color.el (shr-color-hue-to-rgb)
      (shr-color-hsl-to-rgb-fractions):
      Exploit the change to simplify the code a bit.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-quo):
      Don’t complain about single-argument calls to ‘/’.
      * src/data.c (arith_driver, float_arith_driver):
      Implement the change.
      e9af822a
  17. 19 Oct, 2015 1 commit
    • NicolasPetton's avatar
      New function seq-position · 04d604e0
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-position): New function.
      * test/automated/seq-tests.el: New tests for seq-position.
      * doc/lispref/sequences.texi: Add documentation for `seq-position'.
      04d604e0
  18. 17 Oct, 2015 1 commit
  19. 16 Oct, 2015 1 commit
  20. 14 Oct, 2015 2 commits
  21. 07 Oct, 2015 1 commit
  22. 06 Oct, 2015 1 commit
  23. 02 Oct, 2015 1 commit
    • Paul Eggert's avatar
      Fix a few problems with directed quotes · dd6346e0
      Paul Eggert authored
      This is in response to a problem report by Kaushal Modi in:
      http://bugs.gnu.org/21588#25
      * lisp/cedet/mode-local.el (describe-mode-local-overload):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header):
      * lisp/info-xref.el (info-xref-check-all-custom):
      * lisp/mail/emacsbug.el (report-emacs-bug-hook):
      Prefer directed to undirected single quotes in diagnostics.
      dd6346e0
  24. 29 Sep, 2015 1 commit
  25. 28 Sep, 2015 2 commits
  26. 25 Sep, 2015 1 commit
    • Alan Mackenzie's avatar
      Resurrect edebug-set-initial-mode, repurposing it to set the global mode. · feddb99a
      Alan Mackenzie authored
      lisp/emacs-lisp/edebug.el (edebug-initial-mode-alist): Uncomment, and
      amend to match current modes and functions.
      (edebug-set-initial-mode): Uncomment and change from setting a defun's
      `edebug-initial-mode''s property to setting the variable
      `edebug-initial-mode'.
      (top level): Create new binding C-x C-a C-m for
      `edebug-set-initial-mode'.
      
      doc/lispref/edebug.texi (Edebug Execution Modes): document
      `edebug-set-initial-mode' and its new key binding.
      (Edebug Options): Mention the new command in the pertinent place.
      
      etc/NEWS: Write entry for this change.
      feddb99a