all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: PILCH Hartmut <phm@a2e.de>
Subject: rfc: convention for marking source texts vs secondary texts
Date: Fri, 24 May 2002 11:56:05 +0200 (CEST)	[thread overview]
Message-ID: <m17BBnp-002BakC@querty.oas.a2e.de> (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/

                 reply	other threads:[~2002-05-24  9:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m17BBnp-002BakC@querty.oas.a2e.de \
    --to=phm@a2e.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.