summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * * lisp/emacs-lisp/package.el: Update header commentsArtur Malabarba2015-12-011-23/+5
| |
| * Spelling and grammar fixesPaul Eggert2015-11-292-2/+2
| |
| * Byte compiler: Catch missing argument to `funcall'. Fixes bug#22051.Alan Mackenzie2015-11-291-2/+7
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-funcall): When there's no argument to `funcall', (i) Output an error message; (ii) Generate code to signal a `wrong-number-of-arguments' error.
| * Add ':version' tag to 'checkdoc-package-keywords-flag'Eli Zaretskii2015-11-271-0/+1
| | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): Add a ':version' tag.
| * Byte Compiler: generate code to adjust stack count after call to `signal'.Alan Mackenzie2015-11-261-1/+2
| | | | | | | | | | | | | | Corrects change from earlier today. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): supply the current value of `byte-compile--for-effect' as argument to `byte-compile-form'.
| * Byte compiler: on setq with an odd number of arguments, generate a `signal'Alan Mackenzie2015-11-262-35/+40
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cconv.el (cconv-convert): Don't transform `setq' form when it has an odd number of arguments, to allow bytecomp to handle the error. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): In a `setq' form with an odd number of arguments, generate a `signal' instead of the normal code.
| * Squashed commit of the following:Alan Mackenzie2015-11-241-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e1ecf76585bef2eb87995f7a7f92cc12003a6f70 Author: Alan Mackenzie <acm@muc.de> Date: Tue Nov 24 16:50:09 2015 +0000 Byte compile: minor amendments. * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): add a comment to explain the binding of variables around a subsidiary compilation. (byte-compile-new-defuns): Amend the doc string. commit c537bfed1dda1593d218956ff00c6105a3ff0316 Author: Alan Mackenzie <acm@muc.de> Date: Sat Nov 21 18:43:57 2015 +0000 Byte compiler: fix spurious warnings "might not be defined at runtime". Also initialize byte-compile-noruntime-functions between runs. * lisp/emacs-lisp/bytecomp.el (byte-compile-new-defuns): New variable. (byte-compile-initial-macro-environment): For eval-when-compile: bind byte-compile-unresolved-functions and byte-compile-new-defuns around byte-compile-top-level, to prevent spurious entries being made. (byte-compile-warn-about-unresolved-functions): Check whether function is in byte-compile-new-defuns before emitting a warning about it. (byte-compile-from-buffer): Initialize new variable and byte-compile-noruntime-functions to nil. (byte-compile-file-form-require): record all new functions defined by a `require' in byte-compile-new-defuns. (byte-compile-file-form-defmumble): record the new alias in byte-compile-new-defuns.
| * Byte compile: Output an error, not a warning, for odd number of args to setqAlan Mackenzie2015-11-241-3/+3
| | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
| * * lisp/emacs-lisp/nadvice.el (add-function): Fix debug spec.Johan Bockgård2015-11-231-2/+6
| | | | | | | | (remove-function): Ditto. (Bug#20376)
| * Signal an error when `setf' gets an odd number of arguments.Alan Mackenzie2015-11-231-0/+2
| | | | | | | | * lisp/emacs-lisp/gv.el (setf): Amend.
| * * lisp/emacs-lisp/smie.el (smie-backward-sexp): Handle BOB better.Stefan Monnier2015-11-231-1/+6
| |
| * Expunge occurrences of `setq' with an odd number of arguments.Alan Mackenzie2015-11-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-documentation): * lisp/obsolete/complete.el (PC-include-file-all-completions): * lisp/progmodes/compile.el (compilation-goto-locus): * lisp/vc/vc-cvs.el (vc-cvs-parse-root): (twice) Insert missing nil at end of `setq' forms. * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-autoload): Remove an erroneous trailing variable name from a setq, thus allowing a compilation properly to track functions not defined at runtime.
| * Issue a warning from the byte compiler on a malformed `setq' form.Alan Mackenzie2015-11-231-1/+5
| | | | | | | | | | | | Partly fixes bug#20241. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Issue a warning when a `setq' form with an odd number of arguments is compiled.
| * Don't let cconv_convert insert a nil argument into a `setq' form.Alan Mackenzie2015-11-231-4/+6
| | | | | | | | | | | | | | Fixes bug#21983. * lisp/emacs-lisp/cconv.el (cconv-convert): Don't silently insert a nil last argument into a `setq' when there're an odd number of args. This enables the byte compiler to issue a message in this case.
| * * lisp/emacs-lisp/package.el (package--with-response-buffer):Artur Malabarba2015-11-181-0/+1
| | | | | | | | | | Ensure we're at the start of the buffer before searching for the end of headers.
| * Fix docstring quoting problems with ‘ '’Paul Eggert2015-11-1710-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Artur Malabarba in: http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html Most of these fixes are to documentation; many involve fixing longstanding quoting glitches that are independent of the recent substitute-command-keys changes. The changes to code are: * lisp/cedet/mode-local.el (mode-local-augment-function-help) (describe-mode-local-overload): Substitute docstrings before displaying them. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Quote the generated docstring for later substitution.
| * pcase.el: Fix edebugging of backquoted cons patternsJohan Bockgård2015-11-161-1/+3
| | | | | | | | | | * lisp/emacs-lisp/pcase.el (pcase-QPAT): Fix edebugging of backquoted cons patterns. (Bug#21920)
| * * lisp/emacs-lisp/package.el (package--with-response-buffer): Missing requireArtur Malabarba2015-11-161-0/+1
| |
| * * lisp/emacs-lisp/nadvice.el (add-function): Escape quoteArtur Malabarba2015-11-161-1/+1
| |
| * Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.Artur Malabarba2015-11-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | * 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.
| * Backport: * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async.Artur Malabarba2015-11-141-82/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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'.
* | eieio generate autoloads to non-versioned file.Phillip Lord2015-12-175-130/+4
| | | | | | | | | | | | | | | | | | * lisp/Makefile.in: eieio-loaddefs add to autogenel. * lisp/emacs-lisp/eieio.el,lisp/emacs-lisp/eieio-core.el: Remove autoloads. * lisp/emacs-lisp/eieio-compat.el,lisp/emacs-lisp/eieio-custom.el, lisp/emacs-lisp/eieio-opt.el: Update file local. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: New test.
* | * lisp/emacs-lisp/let-alist.el: Now an Elpa :core packageArtur Malabarba2015-12-011-3/+6
| |
* | * lisp/emacs-lisp/package.el: Require url-handlersArtur Malabarba2015-11-271-3/+1
| |
* | * lisp/emacs-lisp/package.el: Declare `url-insert-buffer-contents'Juanma Barranquero2015-11-271-0/+3
| |
* | * lisp/emacs-lisp/eieio.el: Add some default implementationsStefan Monnier2015-11-252-29/+19
| | | | | | | | | | | | | | | | | | (standard-class): Mark it obsolete. (slot-missing): Give it a default implementation. (destructor): Simplify and mark it obsolete. (object-print): Give it a default implementation. (eieio-change-class): Rename from change-class. (change-class): Redefine as obsolete alias.
* | * lisp/emacs-lisp/package.el: Fix a decoding issueArtur Malabarba2015-11-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | (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. * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to `url-insert-buffer-contents'. (url-insert-buffer-contents): New function
* | * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-asyncArtur Malabarba2015-11-151-82/+76
|/ | | | | | | | | | | | | | | | | | | (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. (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'.
* Rename seq-p and map-p to seqp and mappNicolas Petton2015-11-112-8/+8
| | | | | | | * 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.
* Spelling fixesPaul Eggert2015-11-101-1/+1
| | | | | * lisp/net/soap-inspect.el (soap-inspect-xs-simple-type): Fix misspelling in output.
* * lisp/emacs-lisp/map.el (map-merge-with): New functionArtur Malabarba2015-11-101-5/+20
| | | | * test/automated/map-tests.el (test-map-merge-with): New test
* Merge branch 'project-next'Dmitry Gutov2015-11-101-1/+1
|\
| * Rename "search path" to "library roots"Dmitry Gutov2015-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bugArtur Malabarba2015-11-071-1/+1
|/ | | | | | | The defsubst was being created as: (cl-defsubst name (args) ("DOC") ...) * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
* ; Auto-commit of loaddefs files.Glenn Morris2015-11-051-1/+1
|
* * lisp/emacs-lisp/eieio-compat.el: Typo caught by testsStefan Monnier2015-11-041-1/+1
| | | | | | (eieio--generic-static-object-generalizer): Fix typo. * test/automated/eieio-tests.el: Byte-compile it again. It looks like the underlying cause of bug#17852 was fixed in the mean time.
* * lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.Michael Heerdegen2015-11-031-4/+4
|
* Avoid errors in redisplay--pre-redisplay-functionsEli Zaretskii2015-10-311-1/+1
| | | | | * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't use 'bobp', instead compare window-point with 1. (Bug#21730)
* * lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) contextStefan Monnier2015-10-291-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * lisp/emacs-lisp/smie.el: Use `declare' for `pure'Stefan Monnier2015-10-291-4/+4
| | | | | (smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2, smie-prec2->grammar): Use `declare'.
* * lisp/emacs-lisp/cl-generic.el: Accomodate future changesStefan Monnier2015-10-293-77/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.Stefan Monnier2015-10-291-1/+4
|
* (internal--syntax-propertize): Save match-data here (bug#21766)Stefan Monnier2015-10-281-6/+5
| | | | | * lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data. * lisp/simple.el (delete-trailing-whitespace): Undo last change.
* * lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizationsStefan Monnier2015-10-281-13/+25
| | | | | | | (macroexp-unprogn): Make sure we never return an empty list. (macroexp-if): Remove unused (and unsafe) optimization. Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does occur occasionally.
* * lisp/emacs-lisp/seq.el (seq-mapn): New functionArtur Malabarba2015-10-281-1/+16
| | | | * doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn
* * lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.Nicolas Petton2015-10-281-2/+2
|
* * lisp/emacs-lisp/map.el: Better docstrings.Nicolas Petton2015-10-261-11/+12
|
* * lisp/emacs-lisp/seq.el: Better docstrings.Nicolas Petton2015-10-261-26/+31
|
* * lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.Nicolas Petton2015-10-261-153/+153
|
* * lisp/emacs-lisp/ert.el: Print results without newline escapingPhillip Lord2015-10-261-2/+3
|