diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/emacs-lisp/chart.el | 10 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-comp.el | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-datadebug.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-opt.el | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-speedbar.el | 10 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 18 |
7 files changed, 39 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cf6b0d4e5d5..0eb18c02cff 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2009-10-01 Glenn Morris <rgm@gnu.org> | 1 | 2009-10-01 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/chart.el (chart-zap-chars, chart-bar-quickie) | ||
| 4 | (chart-file-count): | ||
| 5 | * emacs-lisp/eieio-comp.el (byte-compile-defmethod-param-convert): | ||
| 6 | * emacs-lisp/eieio-datadebug.el (data-debug-insert-object-button): | ||
| 7 | * emacs-lisp/eieio-opt.el (eieio-describe-class): | ||
| 8 | * emacs-lisp/eieio-speedbar.el (eieio-speedbar-create): | ||
| 9 | * emacs-lisp/eieio.el (defclass, eieio-defclass-autoload) | ||
| 10 | (eieio-copy-parents-into-subclass, make-instance, class-children) | ||
| 11 | (eieio-generic-form): | ||
| 3 | * cedet/cedet-files.el (cedet-directory-name-to-file-name): | 12 | * cedet/cedet-files.el (cedet-directory-name-to-file-name): |
| 4 | * cedet/cedet-idutils.el (cedet-idutils-search) | 13 | * cedet/cedet-idutils.el (cedet-idutils-search) |
| 5 | (cedet-idutils-expand-filename, cedet-idutils-support-for-directory) | 14 | (cedet-idutils-expand-filename, cedet-idutils-support-for-directory) |
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el index ba7982df731..b2c3989c56e 100644 --- a/lisp/emacs-lisp/chart.el +++ b/lisp/emacs-lisp/chart.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; chart.el --- Draw charts (bar charts, etc) | 1 | ;;; chart.el --- Draw charts (bar charts, etc) |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1996, 1998, 1999, 2001, 2004, 2005, 2007, 2008, 2009 | 3 | ;; Copyright (C) 1996, 1998, 1999, 2001, 2004, 2005, 2007, 2008, 2009 |
| 4 | ;;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 0.2 | 7 | ;; Version: 0.2 |
| @@ -528,7 +528,7 @@ cons cells of the form (NAME . NUM). See SORT for more details." | |||
| 528 | (remove-text-properties p (point) '(face)))))) | 528 | (remove-text-properties p (point) '(face)))))) |
| 529 | 529 | ||
| 530 | (defun chart-zap-chars (n) | 530 | (defun chart-zap-chars (n) |
| 531 | "Zap up to N chars without deleteting EOLs." | 531 | "Zap up to N chars without deleting EOLs." |
| 532 | (if (not (eobp)) | 532 | (if (not (eobp)) |
| 533 | (if (< n (- (save-excursion (end-of-line) (point)) (point))) | 533 | (if (< n (- (save-excursion (end-of-line) (point)) (point))) |
| 534 | (delete-char n) | 534 | (delete-char n) |
| @@ -579,7 +579,7 @@ R1 and R2 are dotted pairs. Colorize it with FACE." | |||
| 579 | (defun chart-bar-quickie (dir title namelst nametitle numlst numtitle | 579 | (defun chart-bar-quickie (dir title namelst nametitle numlst numtitle |
| 580 | &optional max sort-pred) | 580 | &optional max sort-pred) |
| 581 | "Wash over the complex eieio stuff and create a nice bar chart. | 581 | "Wash over the complex eieio stuff and create a nice bar chart. |
| 582 | Creat it going in direction DIR ['horizontal 'vertical] with TITLE | 582 | Create it going in direction DIR ['horizontal 'vertical] with TITLE |
| 583 | using a name sequence NAMELST labeled NAMETITLE with values NUMLST | 583 | using a name sequence NAMELST labeled NAMETITLE with values NUMLST |
| 584 | labeled NUMTITLE. | 584 | labeled NUMTITLE. |
| 585 | Optional arguments: | 585 | Optional arguments: |
| @@ -619,7 +619,7 @@ SORT-PRED if desired." | |||
| 619 | ;;; Sample utility function | 619 | ;;; Sample utility function |
| 620 | 620 | ||
| 621 | (defun chart-file-count (dir) | 621 | (defun chart-file-count (dir) |
| 622 | "Draw a chart displaying the number of different file extentions in DIR." | 622 | "Draw a chart displaying the number of different file extensions in DIR." |
| 623 | (interactive "DDirectory: ") | 623 | (interactive "DDirectory: ") |
| 624 | (if (not (string-match "/$" dir)) | 624 | (if (not (string-match "/$" dir)) |
| 625 | (setq dir (concat dir "/"))) | 625 | (setq dir (concat dir "/"))) |
diff --git a/lisp/emacs-lisp/eieio-comp.el b/lisp/emacs-lisp/eieio-comp.el index 8b21490e5b8..1ee314acc34 100644 --- a/lisp/emacs-lisp/eieio-comp.el +++ b/lisp/emacs-lisp/eieio-comp.el | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | ;;; eieio-comp.el -- eieio routines to help with byte compilation | 1 | ;;; eieio-comp.el -- eieio routines to help with byte compilation |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1995,1996, 1998, 1999, 2000, 2001, 2002, 2005, 2008, | 3 | ;; Copyright (C) 1995,1996, 1998, 1999, 2000, 2001, 2002, 2005, 2008, |
| 4 | ;;; 2009 Free Software Foundation, Inc. | 4 | ;; 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 0.2 | 7 | ;; Version: 0.2 |
| 8 | ;; Keywords: oop, lisp, tools | 8 | ;; Keywords: oop, lisp, tools |
| 9 | 9 | ||
| @@ -126,7 +126,7 @@ that is called but rarely. Argument FORM is the body of the method." | |||
| 126 | 126 | ||
| 127 | (defun byte-compile-defmethod-param-convert (paramlist) | 127 | (defun byte-compile-defmethod-param-convert (paramlist) |
| 128 | "Convert method params into the params used by the defmethod thingy. | 128 | "Convert method params into the params used by the defmethod thingy. |
| 129 | Argument PARAMLIST is the paramter list to convert." | 129 | Argument PARAMLIST is the parameter list to convert." |
| 130 | (let ((argfix nil)) | 130 | (let ((argfix nil)) |
| 131 | (while paramlist | 131 | (while paramlist |
| 132 | (setq argfix (cons (if (listp (car paramlist)) | 132 | (setq argfix (cons (if (listp (car paramlist)) |
diff --git a/lisp/emacs-lisp/eieio-datadebug.el b/lisp/emacs-lisp/eieio-datadebug.el index 0e74d5d2e55..77bf7004ac2 100644 --- a/lisp/emacs-lisp/eieio-datadebug.el +++ b/lisp/emacs-lisp/eieio-datadebug.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; eieio-datadebug.el --- EIEIO extensions to the data debugger. | 1 | ;;; eieio-datadebug.el --- EIEIO extensions to the data debugger. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | ;; Keywords: OO, lisp | 6 | ;; Keywords: OO, lisp |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -51,7 +51,7 @@ PREFIX specifies what to insert at the start of each line." | |||
| 51 | 51 | ||
| 52 | (defun data-debug-insert-object-button (object prefix prebuttontext) | 52 | (defun data-debug-insert-object-button (object prefix prebuttontext) |
| 53 | "Insert a button representing OBJECT. | 53 | "Insert a button representing OBJECT. |
| 54 | PREFIX is the text that preceeds the button. | 54 | PREFIX is the text that precedes the button. |
| 55 | PREBUTTONTEXT is some text between PREFIX and the object button." | 55 | PREBUTTONTEXT is some text between PREFIX and the object button." |
| 56 | (let ((start (point)) | 56 | (let ((start (point)) |
| 57 | (end nil) | 57 | (end nil) |
diff --git a/lisp/emacs-lisp/eieio-opt.el b/lisp/emacs-lisp/eieio-opt.el index 846ea61da34..12fd666f415 100644 --- a/lisp/emacs-lisp/eieio-opt.el +++ b/lisp/emacs-lisp/eieio-opt.el | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | ;;; eieio-opt.el -- eieio optional functions (debug, printing, speedbar) | 1 | ;;; eieio-opt.el -- eieio optional functions (debug, printing, speedbar) |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005, | 3 | ;; Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2008, |
| 4 | ;;; 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 0.2 | 7 | ;; Version: 0.2 |
| 8 | ;; Keywords: OO, lisp | 8 | ;; Keywords: OO, lisp |
| 9 | 9 | ||
| @@ -75,7 +75,7 @@ Argument CH-PREFIX is another character prefix to display." | |||
| 75 | 75 | ||
| 76 | (defun eieio-describe-class (class &optional headerfcn) | 76 | (defun eieio-describe-class (class &optional headerfcn) |
| 77 | "Describe a CLASS defined by a string or symbol. | 77 | "Describe a CLASS defined by a string or symbol. |
| 78 | If CLASS is actually an object, then also display current values of that obect. | 78 | If CLASS is actually an object, then also display current values of that object. |
| 79 | Optional HEADERFCN should be called to insert a few bits of info first." | 79 | Optional HEADERFCN should be called to insert a few bits of info first." |
| 80 | (interactive (list (eieio-read-class "Class: "))) | 80 | (interactive (list (eieio-read-class "Class: "))) |
| 81 | (with-output-to-temp-buffer (help-buffer) ;"*Help*" | 81 | (with-output-to-temp-buffer (help-buffer) ;"*Help*" |
diff --git a/lisp/emacs-lisp/eieio-speedbar.el b/lisp/emacs-lisp/eieio-speedbar.el index 3a1995a773c..8eb0a919a0b 100644 --- a/lisp/emacs-lisp/eieio-speedbar.el +++ b/lisp/emacs-lisp/eieio-speedbar.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2005, 2007, 2008, 2009 | 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2005, 2007, 2008, 2009 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 0.2 | 7 | ;; Version: 0.2 |
| 8 | ;; Keywords: OO, tools | 8 | ;; Keywords: OO, tools |
| 9 | 9 | ||
| @@ -77,9 +77,9 @@ | |||
| 77 | ;; string. This will automatically handle cases when speedbar is | 77 | ;; string. This will automatically handle cases when speedbar is |
| 78 | ;; not already loaded, and specifying all overload functions. | 78 | ;; not already loaded, and specifying all overload functions. |
| 79 | ;; | 79 | ;; |
| 80 | ;; 5) Create an initliazer function which looks like this: | 80 | ;; 5) Create an initializer function which looks like this: |
| 81 | ;; | 81 | ;; |
| 82 | ;; (defun my-speedbar-mode-initilaize () | 82 | ;; (defun my-speedbar-mode-initialize () |
| 83 | ;; "documentation" | 83 | ;; "documentation" |
| 84 | ;; (interactive) | 84 | ;; (interactive) |
| 85 | ;; (speedbar-frame-mode 1) | 85 | ;; (speedbar-frame-mode 1) |
| @@ -136,8 +136,8 @@ | |||
| 136 | "Create a speedbar mode for displaying an object hierarchy. | 136 | "Create a speedbar mode for displaying an object hierarchy. |
| 137 | MAP-FN is the keymap generator function used for extra keys. | 137 | MAP-FN is the keymap generator function used for extra keys. |
| 138 | MAP-VAR is the keymap variable used. | 138 | MAP-VAR is the keymap variable used. |
| 139 | MENU-VAR is the symbol containting an easymenu compatible menu part to use. | 139 | MENU-VAR is the symbol containing an easymenu compatible menu part to use. |
| 140 | MODENAME is a s tring used to identify this browser mode. | 140 | MODENAME is a string used to identify this browser mode. |
| 141 | FETCHER is a generic function used to fetch the base object list used when | 141 | FETCHER is a generic function used to fetch the base object list used when |
| 142 | creating the speedbar display." | 142 | creating the speedbar display." |
| 143 | (if (not (featurep 'speedbar)) | 143 | (if (not (featurep 'speedbar)) |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 60a8cef36ce..f9ac09001c6 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | ;;; eieio.el --- Enhanced Implementation of Emacs Interpreted Objects | 1 | ;;; eieio.el --- Enhanced Implementation of Emacs Interpreted Objects |
| 2 | ;;; or maybe Eric's Implementation of Emacs Intrepreted Objects | 2 | ;;; or maybe Eric's Implementation of Emacs Intrepreted Objects |
| 3 | 3 | ||
| 4 | ;;; Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, | 4 | ;; Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 5 | ;;; 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 5 | ;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 7 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 8 | ;; Version: 0.2 | 8 | ;; Version: 0.2 |
| 9 | ;; Keywords: OO, lisp | 9 | ;; Keywords: OO, lisp |
| 10 | 10 | ||
| @@ -307,7 +307,7 @@ Options added to EIEIO: | |||
| 307 | If a string, use as an error string if someone does | 307 | If a string, use as an error string if someone does |
| 308 | try to make an instance. | 308 | try to make an instance. |
| 309 | :method-invocation-order | 309 | :method-invocation-order |
| 310 | - Control the method invokation order if there is | 310 | - Control the method invocation order if there is |
| 311 | multiple inheritance. Valid values are: | 311 | multiple inheritance. Valid values are: |
| 312 | :breadth-first - The default. | 312 | :breadth-first - The default. |
| 313 | :depth-first | 313 | :depth-first |
| @@ -333,7 +333,7 @@ wish, and reference them using the function `class-option'." | |||
| 333 | ;;;###autoload | 333 | ;;;###autoload |
| 334 | (defun eieio-defclass-autoload (cname superclasses filename doc) | 334 | (defun eieio-defclass-autoload (cname superclasses filename doc) |
| 335 | "Create autoload symbols for the EIEIO class CNAME. | 335 | "Create autoload symbols for the EIEIO class CNAME. |
| 336 | SUPERCLASSES are the superclasses that CNAME inherites from. | 336 | SUPERCLASSES are the superclasses that CNAME inherits from. |
| 337 | DOC is the docstring for CNAME. | 337 | DOC is the docstring for CNAME. |
| 338 | This function creates a mock-class for CNAME and adds it into | 338 | This function creates a mock-class for CNAME and adds it into |
| 339 | SUPERCLASSES as children. | 339 | SUPERCLASSES as children. |
| @@ -1020,7 +1020,7 @@ if default value is nil." | |||
| 1020 | 1020 | ||
| 1021 | (defun eieio-copy-parents-into-subclass (newc parents) | 1021 | (defun eieio-copy-parents-into-subclass (newc parents) |
| 1022 | "Copy into NEWC the slots of PARENTS. | 1022 | "Copy into NEWC the slots of PARENTS. |
| 1023 | Follow the rules of not overwritting early parents when applying to | 1023 | Follow the rules of not overwriting early parents when applying to |
| 1024 | the new child class." | 1024 | the new child class." |
| 1025 | (let ((ps (aref newc class-parent)) | 1025 | (let ((ps (aref newc class-parent)) |
| 1026 | (sn (class-option-assoc (aref newc class-options) | 1026 | (sn (class-option-assoc (aref newc class-options) |
| @@ -1101,7 +1101,7 @@ for each slot. For example: | |||
| 1101 | 1101 | ||
| 1102 | (make-instance 'foo :slot1 value1 :slotN valueN) | 1102 | (make-instance 'foo :slot1 value1 :slotN valueN) |
| 1103 | 1103 | ||
| 1104 | Compatability note: | 1104 | Compatibility note: |
| 1105 | 1105 | ||
| 1106 | If the first element of INITARGS is a string, it is used as the | 1106 | If the first element of INITARGS is a string, it is used as the |
| 1107 | name of the class. | 1107 | name of the class. |
| @@ -1615,7 +1615,7 @@ The CLOS function `class-direct-superclasses' is aliased to this function." | |||
| 1615 | `(aref (class-v ,class) class-children)) | 1615 | `(aref (class-v ,class) class-children)) |
| 1616 | 1616 | ||
| 1617 | (defun class-children (class) | 1617 | (defun class-children (class) |
| 1618 | "Return child classses to CLASS. | 1618 | "Return child classes to CLASS. |
| 1619 | 1619 | ||
| 1620 | The CLOS function `class-direct-subclasses' is aliased to this function." | 1620 | The CLOS function `class-direct-subclasses' is aliased to this function." |
| 1621 | (if (not (class-p class)) (signal 'wrong-type-argument (list 'class-p class))) | 1621 | (if (not (class-p class)) (signal 'wrong-type-argument (list 'class-p class))) |
| @@ -2274,7 +2274,7 @@ function performs no type checking!" | |||
| 2274 | If CLASS is not a class then use `generic' instead. If class has no | 2274 | If CLASS is not a class then use `generic' instead. If class has no |
| 2275 | form, but has a parent class, then trace to that parent class. The | 2275 | form, but has a parent class, then trace to that parent class. The |
| 2276 | first time a form is requested from a symbol, an optimized path is | 2276 | first time a form is requested from a symbol, an optimized path is |
| 2277 | memoized for future faster use." | 2277 | memorized for future faster use." |
| 2278 | (let ((emto (aref (get method 'eieio-method-obarray) | 2278 | (let ((emto (aref (get method 'eieio-method-obarray) |
| 2279 | (if class key (+ key 3))))) | 2279 | (if class key (+ key 3))))) |
| 2280 | (if (class-p class) | 2280 | (if (class-p class) |