diff options
author | Arun Isaac | 2022-06-27 18:09:16 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-28 10:05:01 +0530 |
commit | e0348f347c1c95c0cb527cd2389a107cd7305ef6 (patch) | |
tree | 95ac15dac365ef4d93ceda65d2642f0708291f18 /.gitignore | |
parent | 712bada146097dc9edd032f5810b753e1fea97a0 (diff) | |
download | tissue-e0348f347c1c95c0cb527cd2389a107cd7305ef6.tar.gz tissue-e0348f347c1c95c0cb527cd2389a107cd7305ef6.tar.lz tissue-e0348f347c1c95c0cb527cd2389a107cd7305ef6.zip |
Migrate to GOOPS.
* tissue/document.scm: Do not import (srfi srfi-9). Import (srfi
srfi-19), (ice-9 match) and (oop goops).
(<document>): Delete type.
(<document>, <file-document>): New classes.
(date->alist, alist->date, object->scm, scm->object): New functions.
(document->alist, alist->document, print-document): Delete functions.
(document-term-generator, document-type, document-id-term,
document-text, print): New generic methods.
(read-gemtext-document): Return <file-document> object.
(index-document): Delete function.
* tissue/issue.scm: Do not import (srfi srfi-9) and (srfi
srfi-19). Import (oop goops) and (tissue document).
(date->iso-8601, iso-8601->date): Move to tissue/document.scm.
(<issue>, <post>): Re-implement as class.
(issue->alist, post->alist, alist->issue, alist->post, index-issue):
Delete functions.
(print-issue): Rename to print, a generic method.
(print): Use document-title and file-document-path instead of
issue-title and issue-file respectively. Accept mset argument.
(print-issue-to-gemtext): Use document-title instead of issue-title.
(read-gemtext-issue): Return a <issue> object.
(document-term-generator): New generic methods.
* bin/tissue: Import (tissue document) without a prefix.
(print-document, alist->document, document->text, index-document):
Delete functions.
(tissue-search): Use the print generic function.
(main): Use the document-type, document-id-term,
document-term-generator generic functions and replace-document!
instead of index-document.
* tissue/conditions.scm (&unknown-document-type-violation): Delete
condition.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions