all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rfc: convention for marking source texts vs secondary texts
@ 2002-05-24  9:56 PILCH Hartmut
  0 siblings, 0 replies; only message in thread
From: PILCH Hartmut @ 2002-05-24  9:56 UTC (permalink / raw)


Just as applications need to be able to find the 'coding' and 'mode' of a text
file, they may also need to know whether a file is its own source or whether
and where an editable source text is available.

My text files now have a file variable called 'srcfile', used in the following
ways


	% -*- coding: utf-8; srcfile: /home/phm/swpat/bgh-dispo76.el -*-

This headline would say that the LaTeX file I just opened is coded in utf-8
and the result of compilation from a Lisp source file /home/phm/swpat/bgh-dispo76.el.
I use this convention for my multilingual hypertext generation system.

        ; -*- coding: utf-8; srcfile:// -*-

This would be written at the top of /home/phm/swpat/bgh-dispo76.el.
It says that this file is its own source file.

The notation '//' is easy to parse and can never be a name of a real file.

Is this a good convention that can somehow be useful to others and mentioned
in Emacs manuals?  

Is there already an established convention for the same purpose?

The purpose is indeed important for me.  For example, my daily backup program
will search all directories for new text files which are marked as being their
own sources.  Thus secondary files do not waste space in my backup archives by
default, and any file which I edit will carry the 'srcfile://' mark.

Btw the below mentioned website swpat.ffii.org is compiled using the MLHT
system, which is written in E-Lisp and poorly documented (years ago, to be
updated) at http://mlht.ffii.org.

-- 
Hartmut Pilch, FFII & Eurolinux Alliance              tel. +49-89-12789608   
Protecting Innovation against Patent Inflation	     http://swpat.ffii.org/
115,000 signatures against software patents      http://www.noepatents.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-24  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24  9:56 rfc: convention for marking source texts vs secondary texts PILCH Hartmut

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.