emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 9ee6ecb: lisp/emacs-lisp/chart.el (chart-new-buff


From: Mark Oteiza
Subject: [Emacs-diffs] emacs-25 9ee6ecb: lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
Date: Thu, 31 Dec 2015 18:34:34 +0000

branch: emacs-25
commit 9ee6ecb840c57aaf87316bccc2a892265087bafe
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>

    lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
---
 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 6d641f9..aa7d8dd 100644
--- a/lisp/emacs-lisp/chart.el
+++ b/lisp/emacs-lisp/chart.el
@@ -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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]