summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | * 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
| * Backport fix for bug#12879 from trunkStefan Monnier2012-11-141-1/+1
| | | | | | | | * lisp/emacs-lisp/gv.el (setf): Fix debug spec for multiple assignments
| * Use new names for hooks rather than obsolete aliasesGlenn Morris2012-11-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-lex-text-string): * lisp/cedet/semantic/util.el (semantic-describe-buffer): * lisp/cedet/semantic/bovine/c.el (semantic-c-parse-lexical-token) (semantic-default-c-setup): * lisp/emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke): * lisp/gnus/gnus-diary.el (nndiary-request-create-group-functions) (nndiary-request-update-info-functions) (gnus-subscribe-newsgroup-functions) (nndiary-request-accept-article-functions): * lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Use new names for hooks rather than obsolete aliases. * lisp/arc-mode.el: * lisp/emacs-lisp/checkdoc.el: Related comments. * etc/NEWS: Related markup.
* | * lisp/emacs-lisp/advice.el (ad-definition-type): Make sure we don't useStefan Monnier2012-11-141-9/+8
| | | | | | | | a preactivated advice from an old advice.el; they're not compatible!
* | * lisp/emacs-lisp/advice.el (ad-make-advised-definition): Fix undefined case.Katsumi Yamaoka2012-11-142-2/+2
| | | | | | | | | | * lisp/emacs-lisp/nadvice.el (advice--make-interactive-form): Fix string-spec case.
* | * lisp/emacs-lisp/nadvice.el: Add buffer-local support to add-function.Stefan Monnier2012-11-142-5/+31
| | | | | | | | | | | | (advice--buffer-local-function-sample): New var. (advice--set-buffer-local, advice--buffer-local): New functions. (add-function, remove-function): Use them.
* | * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Defend againstStefan Monnier2012-11-141-3/+5
| | | | | | | | | | | | | | potential binding of print-gensym to t, and prettify (back)quotes in case they appear in args's default values. Fixes: debbugs:12884
* | * lisp/emacs-lisp/nadvice.el: Add around advice for interactive specs.Stefan Monnier2012-11-141-25/+41
| | | | | | | | | | | | | | (advice-eval-interactive-spec): New function. (advice--make-interactive-form): Support around advice. Fixes: debbugs:12844
* | * lisp/emacs-lisp/gv.el (setf): Fix debug spec for multiple assignments.Stefan Monnier2012-11-131-1/+1
| | | | | | | | Fixes: debbugs:12879
* | * emacs-lisp/advice.el: Fix typos in comment.Tsuyoshi Kitamoto2012-11-131-2/+2
| |
* | * lisp/emacs-lisp/advice.el: Layer on top of nadvice.el.Stefan Monnier2012-11-131-492/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove out of date self-require hack. (ad-do-advised-functions): Use simple `dolist'. (ad-advice-name, ad-advice-protected, ad-advice-enabled) (ad-advice-definition): Redefine as functions. (ad-advice-classes): Move before first use. (ad-make-origname, ad-set-orig-definition, ad-clear-orig-definition) (ad-make-mapped-call, ad-make-advised-docstring, ad-make-plain-docstring) (ad--defalias-fset): Remove functions. (ad-make-advicefunname, ad-clear-advicefunname-definition): New functions. (ad-get-orig-definition): Rewrite. (ad-make-advised-definition-docstring): Change base docstring. (ad-real-orig-definition): Rewrite. (ad-map-arglists): Change name of called function. (ad--make-advised-docstring): Redirect `function' from ad-Advice-... (ad-make-advised-definition): Simplify. (ad-assemble-advised-definition): Tweak for new calling context. (ad-activate-advised-definition): Setup ad-Advice-* instead of ad-Orig-*. (ad--defalias-fset): Rename from ad-handle-definition. Make it set the function and call ad-activate if needed. (ad-activate, ad-deactivate): Don't call ad-handle-definition any more. (ad-recover): Clear ad-Advice-* instead of ad-Orig-*. (ad-compile-function): Compile ad-Advice-*. (ad-activate-on-top-level, ad-with-auto-activation-disabled): Remove. (ad-start-advice, ad-stop-advice): Remove.
* | * lisp/emacs-lisp/advice.el: Remove support for freezing.Stefan Monnier2012-11-121-117/+21
| | | | | | | | | | | | (ad-make-freeze-docstring, ad-make-freeze-definition): Remove functions. (ad-make-single-advice-docstring, ad-defadvice-flags, defadvice): Remove support for `freeze'.
* | * lisp/emacs-lisp/cl.el (dolist, dotimes, declare): Use advice-add toStefan Monnier2012-11-124-53/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | override the default. * lisp/emacs-lisp/cl-macs.el (cl-dolist, cl-dotimes): Rewrite without using cl--dotimes/dolist. * lisp/subr.el (dolist, dotimes, declare): Redefine them normally, even when `cl' is loaded. * lisp/emacs-lisp/nadvice.el (advice--normalize): New function, extracted from add-advice. (advice--strip-macro): New function. (advice--defalias-fset): Use them to handle macros. (advice-add): Use them. (advice-member-p): Correctly handle macros.
* | Merge from emacs-24; up to 2012-11-09T14:45:15Z!dmantipov@yandex.ruGlenn Morris2012-11-122-6/+7
|\|
| * * lisp/emacs-lisp/gv.el (gv-define-simple-setter): One more fix.Stefan Monnier2012-11-121-2/+3
| | | | | | | | Fixes: debbugs:12871
| * Document debugger-bury-or-killGlenn Morris2012-11-101-3/+3
| | | | | | | | | | | | | | | | * doc/lispref/debugging.texi (Using Debugger): Mention debugger-bury-or-kill. * lisp/emacs-lisp/debug.el (debugger-bury-or-kill): Doc tweak. * etc/NEWS: Related edit.