From: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: make-field suggestion
Date: Wed, 8 Sep 2004 18:44:51 -0400 [thread overview]
Message-ID: <20040908224451.GA14164@fencepost> (raw)
In-Reply-To: <psllfks8hd.fsf@diannao.ittc.ku.edu>
On Wed, Sep 08, 2004 at 05:26:22PM -0500, Jerry James wrote:
> > I think some attention should be paid to the issue of creating
> > text-property fields vs. overlay fields -- both are useful in different
> > circumstances, so any `make-field' function should allow creating both
> > (or there should be multiple `make...field' functions).
>
> That makes sense. How about something like this?
>
> (defun make-field (from to value &optional buffer front-advance rear-advance
> use-text-props)
The question remains which should be the default -- most current uses of
fields use text properties; perhaps this is not the right thing, but it's
worth considering.
> I'm not sure what this function could usefully return. It ought to
> return a reference to a field object, but there is no such thing.
In the button package the text-property variants just return the position of
the first character, since for text properties that's usable as a handle to
get at the properties (the various abstract button- operations know how to
deal with both positions and overlays).
Since all current field functions use the buffer position anyway, this should
work for both overlays and text-properties.
-Miles
--
`Life is a boundless sea of bitterness'
prev parent reply other threads:[~2004-09-08 22:44 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
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 [this message]
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=20040908224451.GA14164@fencepost \
--to=miles@gnu.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.