From: Jerry James <james@xemacs.org>
Cc: emacs-devel@gnu.org
Subject: Re: make-field suggestion
Date: Tue, 07 Sep 2004 10:32:46 -0500 [thread overview]
Message-ID: <psisaq14dd.fsf@diannao.ittc.ku.edu> (raw)
In-Reply-To: <E1C2NBU-000479-LH@fencepost.gnu.org> (Richard Stallman's message of "Wed, 01 Sep 2004 00:57:24 -0400")
Richard Stallman <rms@gnu.org>, on Wed, 01 Sep 2004 at 00:57:24 -0400
you wrote:
> 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.
The reason for having a make-field function is to complete the
abstraction. It is almost possible to treat fields as abstract data
types using field-beginning, etc., but it is not possible to create them
without breaking the abstraction.
Regards,
--
Jerry James
http://www.ittc.ku.edu/~james/
next prev parent reply other threads:[~2004-09-07 15:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 14:45 make-field suggestion Jerry James
2004-08-31 15:39 ` Stefan
2004-09-01 2:42 ` Jerry James
2004-09-01 2:48 ` Stefan
2004-09-07 15:28 ` Jerry James
2004-09-07 15:56 ` Stefan
2004-09-07 19:46 ` Jerry James
2004-09-01 4:57 ` Richard Stallman
2004-09-07 15:32 ` Jerry James [this message]
2004-09-08 1:25 ` Miles Bader
2004-09-08 22:26 ` Jerry James
2004-09-08 22:41 ` Stefan
2004-09-08 22:44 ` Miles Bader
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=psisaq14dd.fsf@diannao.ittc.ku.edu \
--to=james@xemacs.org \
--cc=emacs-devel@gnu.org \
/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.