From: Jerry James <james@xemacs.org>
Cc: emacs-devel@gnu.org
Subject: Re: make-field suggestion
Date: Tue, 07 Sep 2004 10:28:39 -0500 [thread overview]
Message-ID: <psn00214k8.fsf@diannao.ittc.ku.edu> (raw)
In-Reply-To: <m1zn4an1v0.fsf-monnier+emacs@gnu.org> (Stefan's message of "31 Aug 2004 22:48:14 -0400")
Stefan <monnier@iro.umontreal.ca>, on 31 Aug 2004 at 22:48:14 -0400 you
wrote:
>> make-overlay docstring in that case. Hmmmm.... so is it true that
>> overlays are neither front- nor rear-sticky by default? But the text
>
> No, AFAIK they're front-sticky ("not front-advance") and
> rear-non-sticky ("not rear-advance").
I'm misunderstanding something then. The docstring for make-overlay
says:
Create a new overlay with range BEG to END in BUFFER.
If omitted, BUFFER defaults to the current buffer.
BEG and END may be integers or markers.
The fourth arg FRONT-ADVANCE, if non-nil, makes the
front delimiter advance when text is inserted there.
The fifth arg REAR-ADVANCE, if non-nil, makes the
rear delimiter advance when text is inserted there.
Since front-advance and rear-advance are both optional, they default to
nil, no? Which means that (make-overlay 10 20) makes an overlay that is
front-non-sticky and rear-non-sticky. The code in buffer.c seems to
bear this out:
if (!NILP (front_advance))
XMARKER (beg)->insertion_type = 1;
if (!NILP (rear_advance))
XMARKER (end)->insertion_type = 1;
Where have I gone wrong? Is there some other function I should be
looking at instead of make-overlay?
Thanks,
--
Jerry James
http://www.ittc.ku.edu/~james/
next prev parent reply other threads:[~2004-09-07 15:28 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 [this message]
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
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=psn00214k8.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.