aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-05 05:31:36 +0000
committerRichard M. Stallman1994-08-05 05:31:36 +0000
commit81eee8abb0cc53ad9d4e7ae6949287a0eb26d03f (patch)
tree5cdf2ad3c6548a07f963e2262015a6f3d56e9076
parentb056da51fb5b4c2d16f7b1e92ba6025aa6a2b1c9 (diff)
downloademacs-81eee8abb0cc53ad9d4e7ae6949287a0eb26d03f.tar.gz
emacs-81eee8abb0cc53ad9d4e7ae6949287a0eb26d03f.zip
(ad-subr-arglist): Adapted to new DOC file format.
-rw-r--r--lisp/emacs-lisp/advice.el23
1 files changed, 16 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index ba9e3094eef..6495c3b2d3b 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Hans Chalupsky <hans@cs.buffalo.edu> 5;; Author: Hans Chalupsky <hans@cs.buffalo.edu>
6;; Created: 12 Dec 1992 6;; Created: 12 Dec 1992
7;; Version: advice.el,v 2.13 1994/08/03 23:27:05 hans Exp 7;; Version: advice.el,v 2.14 1994/08/05 03:42:04 hans Exp
8;; Keywords: extensions, lisp, tools 8;; Keywords: extensions, lisp, tools
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
@@ -26,7 +26,7 @@
26;; LCD Archive Entry: 26;; LCD Archive Entry:
27;; advice|Hans Chalupsky|hans@cs.buffalo.edu| 27;; advice|Hans Chalupsky|hans@cs.buffalo.edu|
28;; Overloading mechanism for Emacs Lisp functions| 28;; Overloading mechanism for Emacs Lisp functions|
29;; 1994/08/03 23:27:05|2.13|~/packages/advice.el.Z| 29;; 1994/08/05 03:42:04|2.14|~/packages/advice.el.Z|
30 30
31 31
32;;; Commentary: 32;;; Commentary:
@@ -1830,7 +1830,7 @@
1830;; @@ Variable definitions: 1830;; @@ Variable definitions:
1831;; ======================== 1831;; ========================
1832 1832
1833(defconst ad-version "2.13") 1833(defconst ad-version "2.14")
1834 1834
1835;;;###autoload 1835;;;###autoload
1836(defvar ad-redefinition-action 'warn 1836(defvar ad-redefinition-action 'warn
@@ -2567,10 +2567,19 @@ will clear the cache."
2567 ;; one with args `(a &rest c)' using that mechanism. Also, the argument 2567 ;; one with args `(a &rest c)' using that mechanism. Also, the argument
2568 ;; names from the docstring are more meaningful. Hence, I'll stick with 2568 ;; names from the docstring are more meaningful. Hence, I'll stick with
2569 ;; the old way of doing things. 2569 ;; the old way of doing things.
2570 (t (let ((doc (ad-real-documentation subr-name t))) 2570 (t (let ((doc (or (ad-real-documentation subr-name t) "")))
2571 (cond ((and doc 2571 (cond ((string-match "^\\(([^\)]+)\\)\n?\\'" doc)
2572 (string-match 2572 (ad-define-subr-args
2573 "[\n\t ]*\narguments: ?\\((.*)\\)\n?\\'" doc)) 2573 subr-name
2574 (cdr (car (read-from-string
2575 (downcase
2576 (substring doc
2577 (match-beginning 1)
2578 (match-end 1)))))))
2579 (ad-get-subr-args subr-name))
2580 ;; this is the old format used before Emacs 19.24:
2581 ((string-match
2582 "[\n\t ]*\narguments: ?\\((.*)\\)\n?\\'" doc)
2574 (ad-define-subr-args 2583 (ad-define-subr-args
2575 subr-name 2584 subr-name
2576 (car (read-from-string 2585 (car (read-from-string