summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* | Merge from emacs-24; up to 2014-03-21T21:27:25Z!dancol@dancol.orgGlenn Morris2014-03-221-1/+1
|\|
| * Fix bug#16873Dmitry Gutov2014-03-221-1/+1
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-desc): Use the contents of the quoted form, not its cdr.
* | Merge from emacs-24; up to 2014-03-21T08:51:02Z!eliz@gnu.orgGlenn Morris2014-03-211-2/+2
|\|
| * Fix bug#16826Dmitry Gutov2014-03-211-2/+2
| | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-compute-transaction): Use `version-list-<=' to compare the requirement version against the package version already to be installed. Update the error message.
* | lisp/emacs-lisp/cl-extra.el (cl--map-overlays): Remove obsolete code.Juanma Barranquero2014-03-201-37/+14
|/
* * lisp/emacs-lisp/nadvice.el (advice--make-docstring): Try harder to findStefan Monnier2014-03-201-4/+12
| | | | | | | | | | | the docstring of functions advised before dumping. * src/doc.c (store_function_docstring): Warn when we don't know where to put a docstring. (Fsubstitute_command_keys): Don't advertise the fact that text-properties are dropped, since we think it's a bug that we'll fix in 24.5. Fixes: debbugs:16993
* lisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733).Juanma Barranquero2014-03-191-1/+2
|
* * lisp/emacs-lisp/nadvice.el (advice--interactive-form): New function.Stefan Monnier2014-03-171-18/+16
| | | | | | (advice--make-interactive-form): Use it to avoid (auto)loading function. (advice--make-1, advice-add, advice-remove): Remove braindead :advice-pending hack.
* Fix debbugs#16971Dmitry Gutov2014-03-171-7/+2
| | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Set `comment-use-syntax' to t to avoid the unnecessary runtime check. Set `comment-start-skip' to a simpler value that doesn't try to check if the semicolon is escaped (this is handled by `syntax-ppss' now). * lisp/progmodes/scheme.el (scheme-mode-variables): Same.
* * package.el (package-menu-mode-map): Replace use of obsolete function alias.Glenn Morris2014-03-141-1/+1
| | | | Tweak menu item text.
* Move some help functions from help-fns.el to help.el, which is preloaded.Glenn Morris2014-03-131-1/+0
| | | | | | | | | | | | | | They are now needed by eg the function `documentation' in some circumstances. * lisp/help-fns.el (help-split-fundoc, help-add-fundoc-usage) (help-function-arglist, help-make-usage): Move from here... * lisp/help.el (help-split-fundoc, help-add-fundoc-usage) (help-function-arglist, help-make-usage): ... to here. * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Do not load help-fns. Fixes: debbugs:17001
* * lisp/emacs-lisp/package.el (package--prepare-dependencies):Tom Willemse2014-03-131-0/+2
| | | | | | Accept requirements without explicit version. Fixes: debbugs:14941
* lisp/emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998).Jonas Bernoulli2014-03-121-2/+2
|
* * lisp/emacs-lisp/nadvice.el (advice--make-1): Fix autoloading avoidance.Stefan Monnier2014-03-101-4/+9
| | | | | | (advice-add): Add a :advice--pending marker, so advice--make-1 knows when the advice is pending. (advice-remove): Remove this marker when not needed any more.
* * lisp/emacs-lisp/advice.el (ad-add-advice, defadvice): Doc fixGlenn Morris2014-03-101-4/+1
| | | | remove references to deleted info nodes.