From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jerry James Newsgroups: gmane.emacs.devel Subject: Re: make-field suggestion Date: Tue, 07 Sep 2004 10:28:39 -0500 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094570971 32472 80.91.224.253 (7 Sep 2004 15:29:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2004 15:29:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 07 17:29:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4huJ-0000kT-00 for ; Tue, 07 Sep 2004 17:29:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4hzY-0006cs-4A for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2004 11:34:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4hzL-0006cJ-IZ for emacs-devel@gnu.org; Tue, 07 Sep 2004 11:34:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4hzI-0006bt-Ud for emacs-devel@gnu.org; Tue, 07 Sep 2004 11:34:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4hzI-0006bj-So for emacs-devel@gnu.org; Tue, 07 Sep 2004 11:34:28 -0400 Original-Received: from [129.237.125.220] (helo=stephens.ittc.ku.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4htl-00039a-7N for emacs-devel@gnu.org; Tue, 07 Sep 2004 11:28:45 -0400 Original-Received: from diannao.ittc.ku.edu (diannao.ittc.ku.edu [129.237.126.112]) by stephens.ittc.ku.edu (8.12.11/8.12.10/ITTC-ANTISPAM-ANTIVIRUS-3.1) with ESMTP id i87FSehY027387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Sep 2004 10:28:40 -0500 Original-Received: from diannao.ittc.ku.edu (localhost [127.0.0.1]) by diannao.ittc.ku.edu (8.12.11/8.12.11) with ESMTP id i87FSeHv014708; Tue, 7 Sep 2004 10:28:40 -0500 Original-Received: (from james@localhost) by diannao.ittc.ku.edu (8.12.11/8.12.11/Submit) id i87FSdYn014707; Tue, 7 Sep 2004 10:28:39 -0500 X-Authentication-Warning: diannao.ittc.ku.edu: james set sender to james@eecs.ku.edu using -f Original-To: Stefan X-Face: +5(Pfr,; N>q#6NT,Qi5^TQh-MaUnz#kGN~OW[CQj~RS+sIor( '_8K^f9u^Y#.N`>9oKN$\JpI In-Reply-To: (Stefan's message of "31 Aug 2004 22:48:14 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, linux) X-VirusScan: Clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26856 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26856 Stefan , 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/