[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make-field suggestion

From: Richard Stallman
Subject: Re: make-field suggestion
Date: Wed, 01 Sep 2004 00:57:24 -0400

    I would like to suggest the make-field interface for Emacs.  The Emacs
    version would look something like this, if defaulting to text properties
    is okay:

    (defun make-field (from to value &optional buffer)
      "Make a field with value VALUE over the range [FROM, TO) in BUFFER.
    BUFFER defaults to the current buffer."
      (with-current-buffer (or buffer (current-buffer))
        (put-text-property from to 'field value)))

We can certainly install something like this, once it is clear what is
best.  It depends, I suppose, on how someone would plan to use it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]