summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update copyright notices for 2013.Paul Eggert2013-01-0173-78/+88
| |
| * * emacs-lisp/byte-run.el (defmacro): Use same argument parsing asAndreas Schwab2012-12-311-28/+35
| | | | | | | | | | defun. Don't check for DECL if DOCSTRING isn't a string. (defun): Likewise.
| * Fixes: debbugs:13316Andreas Schwab2012-12-311-5/+5
| | | | | | | | | | * emacs-lisp/byte-run.el (defmacro): Don't lose final nil if neither DOCSTRING nor DECL was given.
* | Merge from emacs-24; up to 2012-12-05T00:13:56Z!yamaoka@jpl.orgGlenn Morris2012-12-301-3/+11
|\|
| * * emacs-lisp/package.el (package-untar-buffer): Improve integrity check for ↵Chong Yidong2012-12-291-7/+11
| | | | | | | | tarball contents.
| * * emacs-lisp/package.el (package-untar-buffer): Handle problematic tarfile ↵Matt Fidler2012-12-291-1/+5
| | | | | | | | | | | | content listings. Fixes: debbugs:13136
* | * lisp/emacs-lisp/lisp-mnt.el (lm-section-end): Always end before theJonas Bernoulli2012-12-191-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | following non-comment text. (lm-header-multiline): Continuation lines need to be indented more than the first line. (lm-homepage): New function. (lm-with-file): Don't be confused if narrowing is in effect. * doc/lispref/tips.texi (Library Headers): New header keyword `Homepage'. Make continuation lines syntax more precise. Fixes: debbugs:13207
* | macroexp--warn-and-return message tweak (bug#13132)Glenn Morris2012-12-141-1/+4
| | | | | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp--warn-and-return): Try to include filename in non-bytecomp warning.
* | lisp/emacs-lisp/edebug.el: Fix previous change.Juanma Barranquero2012-12-131-6/+3
| | | | | | | | | | | | (edebug-unload-function): Make sure that unload-feature finishes even when aborting an ongoing edebug session. Also, do not worry about edebug-mode, unload-feature takes care of it.
* | lisp/emacs-lisp/edebug.el: Fix bug#13163.Juanma Barranquero2012-12-131-4/+23
| | | | | | | | | | | | (edebug--require-cl-read): New function. (edebug-setup-hook, cl-read-load-hooks): Use it. (edebug-unload-function): New function.
* | * lisp/emacs-lisp/cl.el (letf): Make it an alias of cl-letf.Stefan Monnier2012-12-121-23/+1
| | | | | | | | (cl--symbol-function): Remove (now that funbound is like nil).
* | * lisp/emacs-lisp/eieio.el: Prettier object pretty-printing.Jonas Bernoulli2012-12-111-17/+25
| | | | | | | | | | | | | | | | | | | | | | (eieio-override-prin1): Don't quote kewords and booleans. (object-write) <eieio-default-superclass>: Don't put closing parens on new line, avoid needless empty lines, align values that are objects with the slot keyword (instead of beginning on the same line). (eieio-list-prin1): Align value with slot keyword; increase eieio-print-depth before printing members of the list. Fixes: debbugs:13115
* | Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.caGlenn Morris2012-12-092-8/+9
|\|
| * * lisp/emacs-lisp/debug.el (debug): Fix hard-coded frame counts.Michael Heerdegen2012-12-061-3/+3
| | | | | | | | | | | | Virtually backported from trunk. Fixes: debbugs:10025
| * * lisp/emacs-lisp/cl.el, lisp/emacs-lisp/cl-lib.el: Move cl-unload-function andStefan Monnier2012-12-062-8/+9
| | | | | | | | cl-load-hook where they belong.
* | * lisp/emacs-lisp/cl-lib.el (cl-declaim): Paren typo.Stefan Monnier2012-12-091-1/+1
| |
* | Make eval-defun on a pre-defined defcustom call any :set functionGlenn Morris2012-12-081-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix. Respect a defcustom's :set function, if appropriate. (eval-defun): Doc fix. * doc/lispref/customize.texi (Variable Definitions): Mention eval-defun on a defcustom calls the :set function when appropriate. * etc/NEWS: Mention this. Fixes: debbugs:109
* | * lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro.Stefan Monnier2012-12-062-4/+63
| |
* | Further cleanup of the "cl-" namespace. Fit CL in 80 columns.Stefan Monnier2012-12-065-134/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety) (cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause) (cl--expand-do-loop, cl--proclaim-history, cl--declare-stack) (cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix. (cl-progv): Don't rely on dynamic scoping to find the body. * lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety) (cl--proclaims-deferred): Rename from the "cl-" prefix. (cl-declaim): Use backquotes. * lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p): Use "cl--" prefix for the object's tag.
* | Fix last change.Chong Yidong2012-12-011-22/+23
| | | | | | | | | | | | | | | | * emacs-lisp/lisp-mode.el (lisp-current-defun-name): * progmodes/m4-mode.el (m4-current-defun-name): * progmodes/perl-mode.el (perl-current-defun-name): * textmodes/tex-mode.el (tex-current-defun-name): * textmodes/texinfo.el (texinfo-current-defun-name): Use save-excursion.
* | Modularize add-log-current-defun.Chong Yidong2012-12-011-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Jari Aalto. * lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): New. (lisp-mode-variables): Use it. * lisp/progmodes/cc-mode.el (c-common-init): * lisp/progmodes/cperl-mode.el (cperl-mode): Set a value for add-log-current-defun-function. * lisp/progmodes/m4-mode.el (m4-current-defun-name): New function. (m4-mode): Use it. * lisp/progmodes/perl-mode.el (perl-current-defun-name): New. (perl-mode): Use it. * lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use lisp-current-defun-name. * lisp/textmodes/tex-mode.el (tex-current-defun-name): New. (tex-common-initialization): Use it. * lisp/textmodes/texinfo.el (texinfo-current-defun-name): New. (texinfo-mode): Use it. * lisp/vc/add-log.el (add-log-current-defun-function): Doc fix. (add-log-current-defun): Move mode-specific code to other files. (add-log-lisp-like-modes, add-log-c-like-modes) (add-log-tex-like-modes): Variables deleted. Fixes: debbugs:2224
* | Convert several major modes to setq-local.Chong Yidong2012-12-011-32/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode): * progmodes/autoconf.el (autoconf-mode): * progmodes/js.el (js-mode): * progmodes/make-mode.el (makefile-mode, makefile-makepp-mode) (makefile-bsdmake-mode, makefile-imake-mode, makefile-browse): * progmodes/perl-mode.el (perl-mode): * progmodes/sh-script.el (sh-mode, sh-set-shell): * textmodes/css-mode.el (css-mode): * textmodes/sgml-mode.el (html-mode, sgml-mode) (sgml-tags-invisible, sgml-guess-indent): * textmodes/tex-mode.el (tex-common-initialization) (latex-complete-bibtex-keys, tex-shell, tex-main-file) (doctex-mode, plain-tex-mode, latex-mode): * textmodes/texinfo.el (texinfo-mode): Use setq-local.
* | derived-mode-make-docstring tweak for bug#11277Glenn Morris2012-11-271-9/+25
| | | | | | | | | | * lisp/emacs-lisp/derived.el (derived-mode-make-docstring): Don't mention "abbrev" or "syntax" if nil.
* | Auto-commit of loaddefs files.Glenn Morris2012-11-271-1/+1
| |
* | Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.caGlenn Morris2012-11-261-1/+6
|\|
| * Auto-commit of loaddefs files.Glenn Morris2012-11-251-1/+1
| |
| * * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' inStefan Monnier2012-11-241-1/+6
| | | | | | | | | | | | the constructs to keep outside of the `cl-block'. Fixes: debbugs:12977
* | * lisp/emacs-lisp/advice.el (ad-should-compile): Don't compile advice if theStefan Monnier2012-11-261-28/+27
| | | | | | | | | | | | | | | | base function is not yet defined. (ad-activate-advised-definition): Use ad-compile-function. (ad-activate): Use cond. Fixes: debbugs:12965
* | Revamp face-spec-set to be more analogous to setq for faces.Chong Yidong2012-11-251-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/faces.el (face-spec-set): Change the third arg to specify whether this function is being called via defface, customize, or a third party. Set the appropriate symbol properties. Clear the override spec if setting via Custom. Initialize face if necessary. (face-spec-recalc): Allow theme faces to completely replace the defface spec, in the same way as custom faces (Bug#8454). * lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save) (custom-face-reset-saved, custom-face-mark-to-reset-standard): Simplify by using the new arg to face-spec-set. * lisp/cus-face.el (custom-declare-face): Move face initialization to face-spec-set. (custom-theme-set-faces): Don't initialize the face name here, as that is now done in face-spec-set. * lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface, reset face-override-spec too, and use custom-declare-face. Fixes: debbugs:4988
* | Merge from emacs-24; up to 2012-11-19T11:36:02Z!yamaoka@jpl.orgGlenn Morris2012-11-231-0/+3
|\|
| * * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Setup default value forStefan Monnier2012-11-231-0/+3
| | | | | | | | | | | | lexical-binding. Fixes: debbugs:12938
* | * emacs-lisp/ert.el, emacs-lisp/ert-x.el: Use cl-lib and lexical-binding.Stefan Monnier2012-11-222-413/+423
| |
* | Merge from emacs-24; up to 2012-11-17T22:12:47Z!eggert@cs.ucla.eduGlenn Morris2012-11-201-10/+5
|\|
| * * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Don't acceptStefan Monnier2012-11-191-1/+3
| | | | | | | | non-symbols for compiler macros (yet).
| * * lisp/emacs-lisp/ert.el (ert--expand-should-1): Adapt to cl-lib.Stefan Monnier2012-11-191-10/+5
| |
* | * lisp/emacs-lisp/trace.el: Rewrite, use nadvice and lexical-binding.Stefan Monnier2012-11-201-92/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (trace-buffer): Don't purecopy. (trace-entry-message, trace-exit-message): Add `context' arg. (trace--timer): New var. (trace-make-advice): Adjust for use in nadvice. Add `context' argument. Delay `display-buffer' via a timer. (trace-function-internal): Use advice-add. (trace--read-args): New function. (trace-function-foreground, trace-function-background): Use it. (trace-function): Rename to trace-function-foreground and redefine as an alias to that new name. (untrace-function, untrace-all): Adjust to the use of nadvice.
* | * lisp/emacs-lisp/bytecomp.el (byte-compile): Fix handling of closures.Stefan Monnier2012-11-201-2/+2
| |
* | * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Fix last change.Stefan Monnier2012-11-201-1/+1
| |
* | Make called-interactively-p work for edebug or advised code.Stefan Monnier2012-11-192-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (called-interactively-p-functions): New var. (internal--called-interactively-p--get-frame): New macro. (called-interactively-p, interactive-p): Rewrite in Lisp. * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/allout.el (allout-called-interactively-p): Don't assume called-interactively-p is a subr. * src/eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove. (syms_of_eval): Remove corresponding defsubr. * src/bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function. * test/automated/advice-tests.el (advice-tests--data): Remove. (advice-tests): Move the tests directly here instead. Add called-interactively-p tests.
* | * lisp/emacs-lisp/byte-run.el (defun-declarations-alist):Stefan Monnier2012-11-191-2/+8
| | | | | | | | | | | | | | | | Allow compiler-macros to be lambda expressions. * lisp/progmodes/python.el: Use cl-lib. Move var declarations outside of eval-when-compile. (python-syntax-context): Add compiler-macro. (python-font-lock-keywords): Simplify with De Morgan.
* | Merge from emacs-24; up to 2012-11-15T23:31:37Z!dancol@dancol.orgGlenn Morris2012-11-172-8/+14
|\|
| * * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.Chong Yidong2012-11-171-7/+13
| | | | | | | | Fixes: debbugs:12810
| * Use set-face-underline rather than the alias set-face-underline-pGlenn Morris2012-11-161-1/+1
| | | | | | | | | | | | * lisp/woman.el (woman-non-underline-faces): * lisp/emacs-lisp/cl-lib.el (face-underline-p): Use set-face-underline rather than the alias set-face-underline-p.
* | Auto-commit of loaddefs files.Glenn Morris2012-11-171-6/+6
| |
* | * lisp/emacs-lisp/advice.el (ad-make-advised-definition): Improve last fix.Stefan Monnier2012-11-161-1/+3
| |
* | Merge from emacs-24; up to 2012-11-13T18:57:26Z!dgutov@yandex.ruGlenn Morris2012-11-164-8/+8
|\|
| * * lisp/emacs-lisp/cl-lib.el: Set more meaningful version number.Stefan Monnier2012-11-161-1/+1
| |
| * Auto-commit of loaddefs files.Glenn Morris2012-11-161-6/+6
| |
| * lisp/emacs-lisp/cl-macs.el (cl-loop, cl-do, cl-do*): Doc fixes.Juanma Barranquero2012-11-151-3/+3
| |
| * * lisp/emacs-lisp/cl-macs.el (cl-flet, cl-flet*): Fix docstring.Stefan Monnier2012-11-151-2/+2
| | | | | | | | Fixes: debbugs:12895