]> code.delx.au - gnu-emacs/commitdiff
lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
authorMark Oteiza <mvoteiza@udel.edu>
Thu, 31 Dec 2015 18:33:35 +0000 (13:33 -0500)
committerMark Oteiza <mvoteiza@udel.edu>
Thu, 31 Dec 2015 18:33:35 +0000 (13:33 -0500)
lisp/emacs-lisp/chart.el

index 6d641f908626b252699a42b7d311dc07cff9cbb6..aa7d8dd9880e42f64a1dc2d73e4ef18a487f4834 100644 (file)
@@ -125,14 +125,6 @@ too much in text characters anyways.")
   (font-lock-mode -1)                   ;Isn't it off already?  --Stef
   )
 
-(defun chart-new-buffer (obj)
-  "Create a new buffer NAME in which the chart OBJ is displayed.
-Returns the newly created buffer."
-  (with-current-buffer (get-buffer-create (format "*%s*" (oref obj title)))
-    (chart-mode)
-    (setq chart-local-object obj)
-    (current-buffer)))
-
 (defclass chart ()
   ((title :initarg :title
          :initform "Emacs Chart")
@@ -157,6 +149,14 @@ Returns the newly created buffer."
    )
   "Superclass for all charts to be displayed in an Emacs buffer.")
 
+(defun chart-new-buffer (obj)
+  "Create a new buffer NAME in which the chart OBJ is displayed.
+Returns the newly created buffer."
+  (with-current-buffer (get-buffer-create (format "*%s*" (oref obj title)))
+    (chart-mode)
+    (setq chart-local-object obj)
+    (current-buffer)))
+
 (cl-defmethod initialize-instance :after ((obj chart) &rest _fields)
   "Initialize the chart OBJ being created with FIELDS.
 Make sure the width/height is correct."