EMACS Report Design

I won’t say much about report design since manipulating text in an EMACS buffer is a pretty standard activity for EMACS users, with plenty of web resources available as tutorials. A couple of suggestions – with your results as a list of rows, you can iterate over the rows and print directly into a new buffer prepared with a header. Alternatively you can extract fields from each row using:

1
2
3
4
5
6
(while results-rows   
(setq line (split-string (car results-rows)"\t" nil ))
.
.
.
(setq results-rows (cdr results-rows)))

Now fields can individually be manipulated. Note that tab is being used as the field delimiter. This was specified previously when we started up the database.

Share