summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.Mark Oteiza2015-12-311-8/+8
|
* Port chart.el methods to cl-generic.Mark Oteiza2015-12-311-15/+16
| | | | | | | | | | cl-call-next-method cannot be used inside EIEIO's defmethod. * lisp/emacs-lisp/chart.el: Require cl-generic at compile time. * lisp/emacs-lisp/chart.el (initialize-instance, chart-draw): (chart-draw-title, chart-size-in-dir, chart-draw-axis): (chart-axis-draw, chart-translate-xpos, chart-translate-ypos): (chart-translate-namezone, chart-draw-data, chart-add-sequence): (chart-trim, chart-sort): Use cl-defmethod instead of defmethod.
* Document support for ':documentation' in Lisp modeShakthi Kannan2015-12-301-0/+9
| | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-string-in-doc-position-p) (lisp-string-after-doc-keyword-p) (lisp-font-lock-syntactic-face-function): Add doc strings.
* Add ert-deftest to lisp-mode.elLeo Liu2015-12-271-1/+2
| | | | | * lisp-mode.el (lisp-imenu-generic-expression, lisp-el-font-lock-keywords-1): Add ert-deftest.
* add some cl-* aliases to lisp-mode imenuTom Tromey2015-12-221-1/+2
| | | | | * (lisp-imenu-generic-expression): Add cl-define-compiler-macro, cl-defgeneric, and cl-defmethod.
* * lisp/emacs-lisp/package.el (package-unpack): Security checkArtur Malabarba2015-12-121-1/+4
| | | | Check that we received the package we were offered.
* * lisp/emacs-lisp/package.el (package--compile): Don't activateArtur Malabarba2015-12-121-2/+3
| | | | | `package-unpack' takes care of all activations now (other than `package-initialize). `package--compile' now only compiles.
* Document new features of package.elEli Zaretskii2015-12-121-2/+2
| | | | | | | | | * doc/emacs/package.texi (Package Menu): Document the 'external' status and the new menu commands. (Package Installation): Document archive priorities. * lisp/emacs-lisp/package.el (package-archive-priorities): Doc fix. (package-menu-hide-low-priority): Doc fix.
* ; Restore selector `member' accidentally drooped in ert rewrite.Anders Lindgren2015-12-111-1/+1
| | | | | | | | | | ; `test/automated/ert.el' and `test/automated/ert-x.el' now run ; without errors. * lisp/emacs-lisp/ert.el (ert--insert-human-readable-selector): Add the `member' selector. This was accidentally dropped when code was converted from `cl-typecase' (where `member' has a special meaning) and `cl-ecase' (where it doesn't) to `pcase'.
* * lisp/emacs-lisp/package.el (package--with-response-buffer):Artur Malabarba2015-12-081-3/+4
| | | | Search for the blank-line in the right buffer.
* Spelling fixesPaul Eggert2015-12-071-1/+1
| | | | | | | | | | * doc/misc/calc.texi (Predefined Units): Use the bland modern scientific style for spelling the units “ampere” and “angstrom” rather than the older style “Ampere” and “Ångstrom”. The latter spelling was wrong anyway (it should have been “Ångström”). * lisp/emacs-lisp/ert.el (ert--explain-equal-rec): Fix misspelling of ‘atom’ in code.
* * lisp/emacs-lisp/package.el: Don't install bad signatures (bug#22089)Artur Malabarba2015-12-051-56/+62
| | | | | | | | | | | | | (package--with-response-buffer): NOERROR and ERROR-FORM only handle connection errors. (bad-signature): New error type. (package--check-signature-content): Use it. (package--check-signature): Properly distinguish connection errors from bad-signature errors. Do the check for `package-check-signature' `allow-unsigned' here instead of forcing the callbacks to do it. Add a new argument, UNWIND. (package--download-one-archive, package-install-from-archive): Update usage of `package--check-signature'.
* * lisp/emacs-lisp/ert.el: Prefer pcase over cl-typecaseStefan Monnier2015-12-041-170/+167
| | | | | | | * lisp/emacs-lisp/ert.el (ert--should-error-handle-error) (ert--explain-format-atom, ert--explain-equal-rec) (ert--print-backtrace, ert-test-result-type-p, ert-select-tests) (ert--insert-human-readable-selector): Prefer pcase over cl-typecase.
* * lisp/emacs-lisp/cl-macs.el (character): Can't be negativeStefan Monnier2015-12-041-1/+1
| | | | Fixes (bug#21701)
* ; Auto-commit of loaddefs files.Glenn Morris2015-12-041-1/+1
|
* * lisp/emacs-lisp/smie.el (smie-next-sexp): Fix BOB "token"Stefan Monnier2015-12-031-3/+4
|
* Fix some file headers for the purpose of `package--builtins'Artur Malabarba2015-12-032-0/+2
| | | | | | | | * lisp/emacs-lisp/cl-preloaded.el * lisp/emacs-lisp/eieio-compat.el * lisp/net/sasl-scram-rfc.el: Add a "Package:" header * lisp/ielm.el: Fix summary line.
* * lisp/emacs-lisp/package.el (package-unpack): Load before compilingArtur Malabarba2015-12-031-3/+8
| | | | | | | | | Reload any previously loaded package files before compiling the package (also reload the same files after compiling). This ensures that we have the most recent definitions during compilation, and avoids generating bad elc files when a macro changes and it is used in a different file from the one it's defined in.
* * lisp/emacs-lisp/package.el: Refactor package activation codeArtur Malabarba2015-12-031-29/+34
| | | | | | | | | (package-activate): Move code that activates dependencies into package-activate-1. (package--load-files-for-activation): New function. (package-activate-1): Add code for (optionally) activating dependencies, and move file-loading code into `package--load-files-for-activation'.
* Fix bug#22069 in cl-generic.elStephen Leake2015-12-021-4/+4
| | | | | * lisp/emacs-lisp/cl-generic.el (cl-no-method): Remove %S; this string is not run thru `format'.
* * 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'.
* 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
|