* Fixed width record mode?
@ 2016-05-09 23:45 Sean LeBlanc
0 siblings, 0 replies; 2+ messages in thread
From: Sean LeBlanc @ 2016-05-09 23:45 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fixed width record mode?
[not found] <mailman.2533.1462840990.7477.help-gnu-emacs@gnu.org>
@ 2016-05-10 19:42 ` Pascal J. Bourguignon
0 siblings, 0 replies; 2+ messages in thread
From: Pascal J. Bourguignon @ 2016-05-10 19:42 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-10 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 23:45 Fixed width record mode? Sean LeBlanc
[not found] <mailman.2533.1462840990.7477.help-gnu-emacs@gnu.org>
2016-05-10 19:42 ` Pascal J. Bourguignon
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.