[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixed width record mode?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Fixed width record mode? |
Date: |
Thu, 02 Jun 2016 15:21:09 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Sean LeBlanc <seanleblanc@gmail.com> writes:
> I'm just wondering if there is any mode in Emacs in which you could
> supply the "schema" of a fixed-width record format and view, possibly
> edit, files of that type?
To edit files of record, there's forms-mode.
It uses a separator bound to forms-field-sep to separate the various
fields in a record, and records are lines as per forward-line as used in
forms--goto-record.
However, it has a set of filter hooks: forms-read-file-filter
forms-write-file-filter forms-new-record-filter
forms-modified-record-filter, that could be used to transform between a
fixed-length record to a fields with separator line and back. Those
hooks work on the whole buffer, so they would be able to insert lines
in addition to field separators too.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Fixed width record mode?,
Pascal J. Bourguignon <=