Chong Yidong
25dec36509
Update Compilation and Advice chapters in Lisp manual.
...
* doc/lispref/advice.texi (Defining Advice): Clarify ad-unadvise.
(Activation of Advice): Specifying the ACTIVATE flag in defadvice
is not abnormal.
(Advising Primitives): Node deleted; ad-define-subr-args has been
removed.
* doc/lispref/compile.texi (Speed of Byte-Code): Use float-time in example.
(Compilation Functions): Note that the log uses Compilation mode.
Don't discuss the contents of byte-code function object here.
(Compilation Functions): De-document internal function byte-code.
(Docs and Compilation): Minor clarifications.
* doc/lispref/objects.texi (Byte-Code Type): Add xref to Byte-Code Function
Objects.
* lisp/emacs-lisp/advice.el: Update commentary to reflect deletion of
ad-define-subr-args
2012-02-10 23:50:11 +08:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
e9a452d9cd
Spelling fixes (mostly "inactive" vs "deactivate").
2011-11-27 10:17:40 -08:00
Paul Eggert
5396468298
Spelling fixes.
2011-11-19 01:18:31 -08:00
Paul Eggert
4c36be58ca
Spelling fixes.
2011-11-17 01:09:20 -08:00
Kevin Ryde
7de88b6e91
* lisp/emacs-lisp/advice.el (ad-read-advised-function):
...
Use `function-called-at-point' as the default default, if it has
advice and passes PREDICATE.
2011-05-23 11:38:28 -03:00
Stefan Monnier
c2bd2ab028
Preserve arg names for advice of subr and lexical functions.
...
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases. Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.
Fixes: debbugs:8457
2011-04-13 14:56:47 -03:00
Stefan Monnier
ba83908c4b
Misc fixes, and use lexical-binding in more files.
...
* lisp/subr.el (letrec): New macro.
(with-wrapper-hook): Move from lisp/simple.el and don't use CL.
* simple.el (with-wrapper-hook): Move with-wrapper-hook to subr.el.
* lisp/help-fns.el (help-function-arglist): Handle subroutines as well.
(describe-variable): Use special-variable-p to filter completions.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't expand `declare'
in defmacros.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Handle `declare'.
* lisp/emacs-lisp/cl.el (pushnew): Silence unfixable warning.
* lisp/emacs-lisp/cl-macs.el (defstruct, define-compiler-macro):
Mark unused arg as unused.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Use memq.
* lisp/emacs-lisp/autoload.el (make-autoload): Don't assume the macro's
first sexp is a list.
(autoload-generate-file-autoloads): Improve error message.
* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist
to understand the new byte-code arg format.
* lisp/vc/smerge-mode.el:
* lisp/vc/log-view.el:
* lisp/vc/log-edit.el:
* lisp/vc/cvs-status.el:
* lisp/uniquify.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/bibtex-style.el:
* lisp/reveal.el:
* lisp/newcomment.el:
* lisp/emacs-lisp/smie.el:
* lisp/abbrev.el: Use lexical-binding.
* src/eval.c (Fprog1, Fprog2): Simplify and use XCDR/XCAR.
(Fdefvar): Remove redundant SYMBOLP check.
(Ffunctionp): Don't signal an error for undefined aliases.
* doc/lispref/variables.texi (Converting to Lexical Binding): New node.
2011-03-11 15:04:22 -05:00
Leo Liu
b1ea593c81
Fix help-mode highlighting of advice warning (Bug#6304).
...
* emacs-lisp/advice.el (ad-make-advised-docstring): Don't apply
highlighting to the "this function is advisted" message.
* help-mode.el (help-mode-finish): Apply highlighting here, to
avoid clobbering by substitute-command-keys (Bug#6304).
2011-01-28 16:42:11 -05:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Chong Yidong
bd78fa1d54
Add "Package:" file headers to denote built-in packages.
2010-08-29 12:17:13 -04:00
Stefan Monnier
989bc97f04
* lisp/emacs-lisp/advice.el (ad-compile-function):
...
Define warning-suppress-types before we let-bind it.
Fixes: debbugs:6275
2010-06-08 21:18:31 -04:00
Stefan Monnier
ad10faa16f
(ad-compile-function): Fix last change.
2010-02-15 15:03:22 -05:00
Stefan Monnier
2b8c974a6f
(ad-compile-function): Suppress byte-compiler warnings, since it is annoying
...
for the user to see them each time he runs the code.
2010-02-15 14:55:51 -05:00
Chong Yidong
02c6d0d0f2
* emacs-lisp/advice.el (ad-set-orig-definition): Fix typo (Bug#3541).
2010-01-23 18:05:16 -05:00
Chong Yidong
bbdc98eff1
* emacs-lisp/advice.el (ad-add-advice): Doc fix (Bug#5274)
2010-01-16 16:20:43 -05:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Juanma Barranquero
32226619c5
Use called-interactively-p' instead of
interactive-p'.
2009-10-02 03:48:36 +00:00
Juanma Barranquero
12a3c28c78
* image-mode.el (image-toggle-display):
...
* emacs-lisp/elp.el (elp-instrument-function):
* emacs-lisp/advice.el (ad-make-advised-definition):
* emacs-lisp/easy-mmode.el (define-minor-mode):
* net/browse-url.el (browse-url-maybe-new-window):
* progmodes/sh-script.el (sh-learn-buffer-indent):
Pass new argument 'any to `called-interactively-p'.
2009-10-02 00:02:02 +00:00
Chong Yidong
e2045997ee
* emacs-lisp/advice.el (ad-get-argument, ad-set-argument): Doc
...
fix (Bug#3932).
2009-09-19 20:06:54 +00:00
Glenn Morris
cb71155600
Remove leading * from defcustom docs.
2009-07-22 02:45:34 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Juanma Barranquero
ec0159f045
(ad-special-form-p): Don't use `iff' in docstring.
2008-05-08 03:38:21 +00:00
Glenn Morris
d6cba7ae45
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 03:21:21 +00:00
Miles Bader
5bc6ddff00
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
2008-04-05 23:01:26 +00:00
Richard M. Stallman
7aefbb0613
(defadvice): Add usage pattern.
2008-03-13 15:28:04 +00:00
Miles Bader
59ce725a3b
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88
Add 2008 to copyright years.
2008-01-07 01:14:52 +00:00
Glenn Morris
e92d2ff731
(ad-compile-function): Use byte-compile-disable-warning.
2007-10-28 23:52:21 +00:00
Juanma Barranquero
5eceba819d
(ad-make-advised-docstring): Add ad-advice-info text property to doc string.
2007-10-23 08:42:39 +00:00
Richard M. Stallman
745dc723d9
(ad-get-advice-info): Change to a function.
...
(ad-get-advice-info-macro): New macro, like old ad-get-advice-info.
(ad-is-advised, ad-get-advice-info-field)
(ad-set-advice-info-field): Use ad-get-advice-info-macro.
2007-10-16 02:37:33 +00:00
Richard M. Stallman
974992a66b
(ad-get-advice-info): Change to a function.
...
(ad-get-advice-info-macro): New macro, like old ad-get-advice-info.
(ad-is-advised, ad-get-advice-info-field)
(ad-set-advice-info-field): Use ad-get-advice-info-macro.
2007-10-16 02:34:58 +00:00
Richard M. Stallman
15975e3514
(documentation): Advice deleted. Doc for advised functions
...
is now handled at C level.
(ad-stop-advice, ad-start-advice): Don't enable or disable
advice for `documentation'.
(ad-advised-definition-docstring-regexp): Var deleted.
(ad-make-advised-definition-docstring): Store orig name
as text property of string.
(ad-advised-definition-p): Check for text property of docstring.
2007-10-14 22:46:38 +00:00
Glenn Morris
feb47a092c
Johan Bockg� <bojohan at dd.chalmers.se>
...
(ad-make-advised-docstring): Highlight note in doc string.
2007-09-05 03:47:22 +00:00
Stefan Monnier
806bc6df0a
(ad-interactive-form): Re-introduce.
...
(ad-body-forms, ad-advised-interactive-form): Revert this part of last change.
2007-07-28 19:57:23 +00:00
Stefan Monnier
05bfa8f34f
(ad-interactive-p, ad-interactive-form): Remove.
...
(ad-body-forms, ad-advised-interactive-form, ad-make-cache-id)
(ad-make-advised-definition, ad-cache-id-verification-code):
Use commandp and interactive-form instead.
2007-07-26 18:49:14 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
e0085d62fa
Switch license to GPLv3 or later.
2007-07-25 04:14:29 +00:00
Juanma Barranquero
6c4f5400cd
(defadvice): Doc fix.
2007-07-16 10:17:51 +00:00
David Kastrup
287a387cf5
(defadvice): Doc fix.
2007-07-14 16:14:58 +00:00
Stefan Monnier
5d08a78606
(ad-special-forms): Remove.
...
(ad-special-form-p): Use subr-arity.
2007-05-08 16:05:02 +00:00
Glenn Morris
f0fa15c5e5
Add 2007 to copyright years.
2007-01-21 02:48:43 +00:00
Glenn Morris
d59c31376c
Update copyright years.
2006-12-07 05:06:17 +00:00
Juanma Barranquero
6b0a96341e
(ad-remove-advice, ad-parse-arglist, ad-make-mapped-call):
...
Use `let', not `let*'.
2006-10-05 15:53:30 +00:00
Richard M. Stallman
379ba58e76
(ad-enable-advice, ad-activate, ad-disable-advice): Add autoloads.
2006-05-25 00:00:50 +00:00
Thien-Thi Nguyen
ceb4c4d303
Update years in copyright notice; nfc.
2006-02-06 12:31:40 +00:00
Stefan Monnier
18880c272f
(ad-make-advised-definition): Fix arg-order.
...
(defadvice): Add `doc-string' declaration.
2005-10-24 16:14:34 +00:00