diff options
| author | Mark Oteiza | 2015-12-31 13:33:35 -0500 |
|---|---|---|
| committer | Mark Oteiza | 2015-12-31 13:33:35 -0500 |
| commit | 9ee6ecb840c57aaf87316bccc2a892265087bafe (patch) | |
| tree | 66ecc6e440fabecc8236e877d9e6f2c68f2dc131 | |
| parent | 526d80ce6f1a08dac4ddfd528ef1d973dc60362b (diff) | |
| download | emacs-9ee6ecb840c57aaf87316bccc2a892265087bafe.tar.gz emacs-9ee6ecb840c57aaf87316bccc2a892265087bafe.zip | |
lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
| -rw-r--r-- | lisp/emacs-lisp/chart.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el index 6d641f90862..aa7d8dd9880 100644 --- a/lisp/emacs-lisp/chart.el +++ b/lisp/emacs-lisp/chart.el | |||
| @@ -125,14 +125,6 @@ too much in text characters anyways.") | |||
| 125 | (font-lock-mode -1) ;Isn't it off already? --Stef | 125 | (font-lock-mode -1) ;Isn't it off already? --Stef |
| 126 | ) | 126 | ) |
| 127 | 127 | ||
| 128 | (defun chart-new-buffer (obj) | ||
| 129 | "Create a new buffer NAME in which the chart OBJ is displayed. | ||
| 130 | Returns the newly created buffer." | ||
| 131 | (with-current-buffer (get-buffer-create (format "*%s*" (oref obj title))) | ||
| 132 | (chart-mode) | ||
| 133 | (setq chart-local-object obj) | ||
| 134 | (current-buffer))) | ||
| 135 | |||
| 136 | (defclass chart () | 128 | (defclass chart () |
| 137 | ((title :initarg :title | 129 | ((title :initarg :title |
| 138 | :initform "Emacs Chart") | 130 | :initform "Emacs Chart") |
| @@ -157,6 +149,14 @@ Returns the newly created buffer." | |||
| 157 | ) | 149 | ) |
| 158 | "Superclass for all charts to be displayed in an Emacs buffer.") | 150 | "Superclass for all charts to be displayed in an Emacs buffer.") |
| 159 | 151 | ||
| 152 | (defun chart-new-buffer (obj) | ||
| 153 | "Create a new buffer NAME in which the chart OBJ is displayed. | ||
| 154 | Returns the newly created buffer." | ||
| 155 | (with-current-buffer (get-buffer-create (format "*%s*" (oref obj title))) | ||
| 156 | (chart-mode) | ||
| 157 | (setq chart-local-object obj) | ||
| 158 | (current-buffer))) | ||
| 159 | |||
| 160 | (cl-defmethod initialize-instance :after ((obj chart) &rest _fields) | 160 | (cl-defmethod initialize-instance :after ((obj chart) &rest _fields) |
| 161 | "Initialize the chart OBJ being created with FIELDS. | 161 | "Initialize the chart OBJ being created with FIELDS. |
| 162 | Make sure the width/height is correct." | 162 | Make sure the width/height is correct." |