diff options
| author | Colin Walters | 2002-05-21 20:59:04 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-05-21 20:59:04 +0000 |
| commit | 1bb57048b3c047820e429bffe409ee4a36900a72 (patch) | |
| tree | fad7950c9958c80702a0727795293f8687554d67 | |
| parent | 0555901649969ca694a6356f5795d37d4f916634 (diff) | |
| download | emacs-1bb57048b3c047820e429bffe409ee4a36900a72.tar.gz emacs-1bb57048b3c047820e429bffe409ee4a36900a72.zip | |
(define-ibuffer-column): Add third argument `ibuffer-buf'.
| -rw-r--r-- | lisp/ibuf-macs.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ibuf-macs.el b/lisp/ibuf-macs.el index 13e5636ff55..ac6bc5bae3b 100644 --- a/lisp/ibuf-macs.el +++ b/lisp/ibuf-macs.el | |||
| @@ -78,8 +78,8 @@ During evaluation of body, bind `it' to the value returned by TEST." | |||
| 78 | "Define a column SYMBOL for use with `ibuffer-formats'. | 78 | "Define a column SYMBOL for use with `ibuffer-formats'. |
| 79 | 79 | ||
| 80 | BODY will be called with `buffer' bound to the buffer object, and | 80 | BODY will be called with `buffer' bound to the buffer object, and |
| 81 | `mark' bound to the current mark on the buffer. The current buffer | 81 | `mark' bound to the current mark on the buffer. The original ibuffer |
| 82 | will be `buffer'. | 82 | buffer will be bound to `ibuffer-buf'. |
| 83 | 83 | ||
| 84 | If NAME is given, it will be used as a title for the column. | 84 | If NAME is given, it will be used as a title for the column. |
| 85 | Otherwise, the title will default to a capitalized version of the | 85 | Otherwise, the title will default to a capitalized version of the |
| @@ -105,7 +105,7 @@ change its definition, you should explicitly call | |||
| 105 | `(progn | 105 | `(progn |
| 106 | ,(if inline | 106 | ,(if inline |
| 107 | `(push '(,sym ,bod) ibuffer-inline-columns) | 107 | `(push '(,sym ,bod) ibuffer-inline-columns) |
| 108 | `(defun ,sym (buffer mark) | 108 | `(defun ,sym (buffer mark ibuffer-buf) |
| 109 | ,bod)) | 109 | ,bod)) |
| 110 | (put (quote ,sym) 'ibuffer-column-name | 110 | (put (quote ,sym) 'ibuffer-column-name |
| 111 | ,(if (stringp name) | 111 | ,(if (stringp name) |
| @@ -160,7 +160,9 @@ value if and only if `a' is \"less than\" `b'." | |||
| 160 | (active-opstring "Operate on") | 160 | (active-opstring "Operate on") |
| 161 | complex) | 161 | complex) |
| 162 | &rest body) | 162 | &rest body) |
| 163 | "Generate a function named `ibuffer-do-OP', which operates on a buffer. | 163 | "Generate a function which operates on a buffer. |
| 164 | OP becomes the name of the function; if it doesn't begin with | ||
| 165 | `ibuffer-do-', then that is prepended to it. | ||
| 164 | When an operation is performed, this function will be called once for | 166 | When an operation is performed, this function will be called once for |
| 165 | each marked buffer, with that buffer current. | 167 | each marked buffer, with that buffer current. |
| 166 | 168 | ||
| @@ -188,7 +190,9 @@ confirmation message, in the form: | |||
| 188 | COMPLEX means this function is special; see the source code of this | 190 | COMPLEX means this function is special; see the source code of this |
| 189 | macro for exactly what it does." | 191 | macro for exactly what it does." |
| 190 | `(progn | 192 | `(progn |
| 191 | (defun ,(intern (concat "ibuffer-do-" (symbol-name op))) ,args | 193 | (defun ,(intern (concat (if (string-match "^ibuffer-do" (symbol-name op)) |
| 194 | "" "ibuffer-do-") (symbol-name op))) | ||
| 195 | ,args | ||
| 192 | ,(if (stringp documentation) | 196 | ,(if (stringp documentation) |
| 193 | documentation | 197 | documentation |
| 194 | (format "%s marked buffers." active-opstring)) | 198 | (format "%s marked buffers." active-opstring)) |