diff options
author | Thanos Apollo <[email protected]> | 2023-11-29 08:05:25 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-11-29 08:05:25 +0200 |
commit | 658a7c2f246e6adaa37c8e27d547e0b26ee46150 (patch) | |
tree | 491c15d3c323ef8e4dda87182f9d8911f763fa5c | |
parent | ac99bcc1583147f9e6ee8e071efb8071bc515d0d (diff) |
Update gnosis-init & test buffer for testing purposes
-rw-r--r-- | gnosis.el | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -137,17 +137,22 @@ use it like this: (interactive) (with-current-buffer (switch-to-buffer (get-buffer-create "*gnosis*")) - (setq-local minibuffer-history nil) + (read-only-mode 0) + (erase-buffer) (gnosis--display-question 1) (gnosis-review 1) (gnosis-mode))) (defun gnosis-init () "Create notes content table." - (gnosis--create-table 'notes '([(question_id integer :primary-key) - type - question - choices + (interactive) + (condition-case nil + (gnosis--drop-table 'notes) + (error (message "No NOTES table to drop, recreating new one."))) + (gnosis--create-table 'notes '([(id integer :primary-key) + (type text) + (main text) + options answer tags rev_log |