unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: problem of marker as position
Date: Thu, 20 Nov 2003 12:41:16 -0700	[thread overview]
Message-ID: <3FBD18DC.2040504@yahoo.com> (raw)
In-Reply-To: m1AMolO-000UNaC@rattlesnake.com

Robert J. Chassell wrote:

> I am a native English speaker and, to my embarrassment, have been
> confused.  Extra explanation is useful, since the notion of marker
> encompasses two different concepts:
> 
>   1. a position within a buffer that relocates automatically when
>      text is inserted or deleted, 
> 
>   2. a specification of which buffer the position is within.
> 
> My problem is that sometimes, I focus on concept # 2 when the person
> writing the code focuses on concept # 1 --- I should, of course, focus
> on both concepts, but forget.  A better explanation would help me
> remember.
> 
> The two concepts cannot be separated because the position must be
> within a particular buffer.

Indeed.  It would be interesting to add debugging code to marker.c
(analagous to byte_char_debug_check) that would signal an error if any
marker was being used as a position in a different buffer.  If there
aren't too many cases, it'd be simple to convert the references to the
marker M to (marker-position M).  Then the run-time check could be left
in for Lisp programmers, dependent upon a variable (analgous to
byte-debug-flag).

-- 
Kevin Rodgers

  reply	other threads:[~2003-11-20 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19  0:23 problem of marker as position Kenichi Handa
2003-11-19  3:34 ` Luc Teirlinck
2003-11-20 11:47   ` Kenichi Handa
2003-11-20 13:22     ` Robert J. Chassell
2003-11-20 19:41       ` Kevin Rodgers [this message]
2003-11-21  5:03     ` Luc Teirlinck
2003-11-19 16:00 ` Luc Teirlinck
2003-11-21  4:09 ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FBD18DC.2040504@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).