summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.orgGlenn Morris2014-05-112-170/+22
|\
| * * lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooledStefan Monnier2014-05-121-1/+1
| | | | | | | | into autoloading just because of a silly indirection.
| * Move lisp/emacs-lisp/find-gc.el to admin/Glenn Morris2014-05-101-149/+0
| | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00118.html
| * * lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.Stefan Monnier2014-05-101-20/+21
| | | | | | | | | | | | | | | | | | (advice--member-p): If name is given, only compare the name. (advice--remove-function): Don't stop at the first match. (advice--normalize-place): New function. (add-function, remove-function): Use it. (advice--add-function): Pass the name, if any, to advice--remove-function.
* | * lisp/emacs-lisp/lisp-mode.el (preceding-sexp): Exclude leading "," whichStefan Monnier2014-05-101-16/+10
| | | | | | | | are a hindrance for C-x C-e.
* | Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.orgGlenn Morris2014-05-072-61/+59
|\|
| * * lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.Stefan Monnier2014-05-061-9/+19
| | | | | | | | | | | | Add optional `seen' argument to detect and break infinite loops. Fixes: debbugs:16994
| * Minor stylistic changes in find-gc.el.Eli Zaretskii2014-05-061-8/+4
| | | | | | | | | | | | lisp/emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs) (trace-unsafe, trace-use-tree): Make parentheses style be according to Emacs style.
| * find-gc.el misc fixesGlenn Morris2014-05-051-44/+36
| | | | | | | | | | | | | | | | The whole file looks obsolete and/or broken. * lisp/emacs-lisp/find-gc.el (find-gc-source-directory): Give it a value. (find-gc-source-files): Update some names. (trace-call-tree): Simplify and update. Avoid predictable temp-file names.
* | Merge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.eduPaul Eggert2014-05-041-1/+1
|\|
| * * emacs-lisp/cl-macs.el (cl-deftype): Fix indentation.Leo Liu2014-05-021-1/+1
| |
* | * lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight pastStefan Monnier2014-05-011-1/+2
| | | | | | | | | | | | the last consecutive closing paren. Fixes: debbugs:17345
* | Merge from emacs-24; up to 2014-04-25T10:35:01Z!michael.albinus@gmx.deJuanma Barranquero2014-04-252-1/+2
|\|
| * * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):Leo Liu2014-04-241-1/+1
| | | | | | | | | | | | Fix syntax for @. Fixes: debbugs:17325
| * Require gv early to break eager macro-expansion cyclesDaniel Colascione2014-04-231-0/+1
| | | | | | | | | | * lisp/emacs-lisp/cl.el (gv): Require gv early to break eager macro-expansion cycles.
* | * lisp/emacs-lisp/cl-macs.el (cl--loop-let): Fix last merge.Stefan Monnier2014-04-221-1/+2
| |
* | 2014-04-22 Daniel Colascione <dancol@dancol.org>Daniel Colascione2014-04-221-12/+13
| | | | | | | | | | * emacs-lisp/byte-run.el (function-put): Unbreak build: don't use defun to define `function-put'.
* | Merge from emacs-24; up to 2014-04-22T20:19:17Z!eggert@cs.ucla.eduPaul Eggert2014-04-221-2/+3
|\|
| * * lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.Stefan Monnier2014-04-211-2/+4
| |
* | * lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): New function.Stefan Monnier2014-04-221-1/+24
| | | | | | | | | | (lisp-el-font-lock-keywords-2, lisp-cl-font-lock-keywords-2): Use it. (lisp-mode-variables): Set font-lock-extra-managed-props.
* | * lisp/emacs-lisp/byte-run.el (function-put): New function.Stefan Monnier2014-04-222-21/+41
| | | | | | | | | | | | | | (defun-declarations-alist): Use it. Add `pure' and `side-effect-free'. * lisp/emacs-lisp/cl-macs.el (cl-defstruct, cl-struct-sequence-type) (cl-struct-slot-info, cl-struct-slot-offset, cl-struct-slot-value): Use them.
* | Correctly macroexpand top-level forms during eager macroexpandDaniel Colascione2014-04-222-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile): Improve docstrings. * lisp/emacs-lisp/macroexp.el (internal-macroexpand-for-load): Add `full-p' parameter; when nil, call `macroexpand' instead of `macroexpand-all'. * src/lread.c (readevalloop_eager_expand_eval): New function that can recurse into toplevel forms. (readevalloop): Call it. * src/lisp.h: Declare Qprogn. * src/callint.c (Qprogn): No longer static. * test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load): Add compile flag. (test-byte-comp-macro-expansion) (test-byte-comp-macro-expansion-eval-and-compile) (test-byte-comp-macro-expansion-eval-when-compile) (test-byte-comp-macro-expand-lexical-override): Use it. (test-eager-load-macro-expansion) (test-eager-load-macro-expansion-eval-and-compile) (test-eager-load-macro-expansion-eval-when-compile) (test-eager-load-macro-expand-lexical-override): New tests.
* | Minor bytecomp.el fixesDaniel Colascione2014-04-211-20/+20
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Use lambda function values, not quoted lambdas. (byte-compile-recurse-toplevel): Remove extraneous &optional.
* | Optimize cl-struct-slot-value; fix testDaniel Colascione2014-04-211-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2014-04-22 Daniel Colascione <dancol@dancol.org> * emacs-lisp/cl-macs.el (cl-struct-sequence-type,cl-struct-slot-info): Declare pure. (cl-struct-slot-value): Conditionally use aref or nth so that the compiler produces optimal code. 2014-04-22 Daniel Colascione <dancol@dancol.org> * automated/cl-lib.el (cl-lib-struct-accessors): Fix test to account for removal of `cl-struct-set-slot-value'.
* | * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure.Stefan Monnier2014-04-213-48/+9
| | | | | | | | | | | | | | | | | | | | | | (cl--set-elt): Don't proclaim as inline. (cl-struct-slot-value): Remove explicit gv-setter and compiler-macro. Define as inlinable instead. (cl-struct-set-slot-value): Remove. * doc/misc/cl.texi (Structures): Remove cl-struct-set-slot-value. * lisp/emacs-lisp/cl-lib.el (cl--set-elt): Remove. * lisp/emacs-lisp/cl-seq.el (cl-replace, cl-substitute, cl-nsubstitute): Use setf instead.
* | Remove excess parameters on cl--const-expr-valDaniel Colascione2014-04-211-22/+15
| | | | | | | | | | | | | | | | | | | | 2014-04-21 Daniel Colascione <dancol@dancol.org> * emacs-lisp/cl-macs.el (cl--const-expr-val): We didn't need the last two parameters after all. (cl--expr-contains,cl--compiler-macro-typep,cl--compiler-macro-member) (cl--compiler-macro-assoc,cl-struct-slot-value) (cl-struct-set-slot-value): Stop using them.
* | Correctly treat progn contents as toplevel forms when byte compilingDaniel Colascione2014-04-212-24/+48
| |
* | Fix cl-loop destructuring under `with' clauseDaniel Colascione2014-04-201-1/+1
| |
* | unbreak the buildDaniel Colascione2014-04-201-60/+62
| |
* | defstruct introspectionDaniel Colascione2014-04-191-10/+109
| |
* | * lisp/emacs-lisp/cl-lib.el (current-case-table): Remove setter.Stefan Monnier2014-04-121-1/+0
| | | | | | | | * lisp/leim/quail/sisheng.el (sisheng-list): Use with-case-table.
* | Make up-list and backward-up-list get out of more spotsDaniel Colascione2014-04-091-29/+87
| |
* | Tweak regex from last changeDaniel Colascione2014-04-091-1/+1
| |
* | Make cl-indent work better for elispDaniel Colascione2014-04-091-14/+48
| |
* | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): AddLeo Liu2014-04-051-1/+2
| | | | | | | | define-compilation-mode.
* | Merge from emacs-24; up to 2014-03-28T01:39:30Z!rgm@gnu.orgJuanma Barranquero2014-04-021-1/+1
|\|
| * * lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version ofStefan Monnier2014-03-281-1/+1
| | | | | | | | 0 like nil.
* | * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): RefactorLeo Liu2014-03-311-18/+16
| | | | | | | | | | | | out eldoc-documentation-function-default. (eldoc-documentation-function-default): New function. (eldoc-documentation-function): Change value.
* | Merge from emacs-24; up to 2014-03-24T03:06:35Z!dancol@dancol.orgJuanma Barranquero2014-03-271-12/+6
|\|
| * lisp/emacs-lisp/package-x.el: Follow-up to change in package.el.Juanma Barranquero2014-03-271-12/+6
| | | | | | | | | | (package--archive-contents-from-url): Use url-insert-file-contents; package-handle-response no longer exists.
* | Merge from emacs-24; up to 2014-03-23T23:14:52Z!yamaoka@jpl.orgJuanma Barranquero2014-03-261-51/+23
|\|
| * * lisp/emacs-lisp/package.el: Fix bug#16733 (again).Juanma Barranquero2014-03-261-39/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | (url-http-parse-response, url-http-end-of-headers, url-recreate-url) (url-http-target-url): Remove unused declarations. (package-handle-response): Remove. (package--with-work-buffer): Use url-insert-file-contents and simplify. (package--download-one-archive): Use current-buffer instead of dynamic binding of `buffer'. (describe-package-1): Do not decode readme-string. * lisp/url/url-handlers.el (url-http-parse-response): Add autoload. (url-insert-file-contents): Signal file-error in case of HTTP error.
| * Fix bug#16762Dmitry Gutov2014-03-251-10/+8
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package--add-to-archive-contents): Include already installed and built-in packages in `package-archive-contents'. (package-install): Don't include already installed packages in the options on interactive invocation.
| * Backport &key-parsing improvement from trunkDaniel Colascione2014-03-241-2/+1
| |
| * * lisp/emacs-lisp/package.el (package-show-package-list): If the bufferDmitry Gutov2014-03-231-2/+5
| | | | | | | | is already displayed in another window, switch to that window.
| * Fix keyword argument parsing. Please bootstrap.Daniel Colascione2014-03-221-1/+2
| |
* | Make gulp.el obsoleteGlenn Morris2014-03-251-178/+0
| | | | | | | | | | | | * lisp/obsolete/gulp.el: Move here from emacs-lisp/. * doc/emacs/ack.texi (Acknowledgments): Remove reference to obsolete file.
* | Improve performance of &key parsingDaniel Colascione2014-03-231-2/+1
| |
* | Fix cl-defun keyword arg parsing. Please bootstrap.Daniel Colascione2014-03-221-1/+2
| |
* | Allow `declare' to set the interactive-only propertyGlenn Morris2014-03-221-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Add interactive-only. Doc tweak. (macro-declarations-alist): Doc tweak. * lisp/subr.el (declare): Doc tweak (add xref to manual). * lisp/comint.el (comint-run): * lisp/files.el (insert-file-literally, insert-file): * lisp/replace.el (replace-string, replace-regexp): * lisp/simple.el (beginning-of-buffer, end-of-buffer, delete-backward-char) (delete-forward-char, goto-line, insert-buffer, next-line) (previous-line): Set interactive-only via declare. * doc/lispref/functions.texi (Declare Form): Add interactive-only. * doc/lispref/commands.texi (Defining Commands) Mention declare. * etc/NEWS: Mention this.