Delayed loading of Chart Tables

Because loading the tables is now getting time and space prohibited, we
are now just storing the the name of the table and the filename ... at
first. Then once we ask for a chart, we fetch the chart and choose some
results.

Loading the tables is now not a cost issue ... and Emacs more stable.
This commit is contained in:
Howard Abrams 2021-03-23 13:43:36 -07:00
parent 3da1174673
commit 70586400a4
3 changed files with 34 additions and 13 deletions

View file

@ -35,6 +35,7 @@
(defvar rpgdm-screen-window-size nil)
(defvar rpgdm-screen-fullscreen nil)
(defun rpgdm-screen-show (file-title)
"Display in a side-window, FILE-TITLE.
Interactively, display a list of files in `rpgdm-screen-directory'."
@ -50,6 +51,11 @@ Interactively, display a list of files in `rpgdm-screen-directory'."
rpgdm-screen-window-side))
(find-file filename))))
(defun rpgdm-quick-close ()
"Easily close the current chart."
(interactive)
(kill-buffer)
(delete-window))
(defun rpgdm-screen-screen-list ()
"A memoized list of cons cells containing the title and fully-qualified filename."