unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Info mutilates user overlays.
Date: Wed, 1 Oct 2003 09:49:11 -0500 (CDT)	[thread overview]
Message-ID: <200310011449.h91EnBN28933@raven.dms.auburn.edu> (raw)
In-Reply-To: <jwvlls5f8s3.fsf-monnier+emacs/devel@vor.iro.umontreal.ca> (message from Stefan Monnier on 01 Oct 2003 08:22:39 -0400)

Stefan Monnier wrote:

   You say this is unexpected, but you don't say what you expected.
   The text of the buffer has changed, so the overlay has of course been
   moved, as is always the case.

On second thought yes.  Also, there are worse problems in Info than
this one, related to the same fact.  Position registers get treated
exactly like overlays and hence are unusable.  Bookmarks at first seem
to work, but malfunction.  After you save one bookmark, say in
(emacs)Secondary Selection, then all subsequent bookmarks in different
Info files get saved under "Secondary Selection".  The user believes
he has saved, say 10 bookmarks, but all but the last are gone and it
is saved under a misleading name.  Position registers and bookmarks are
mainly useful in large files, so the one place where they would be the
most useful (if they worked) are Info files.

In as far as Miles' question is concerned, I am using overlays to
highlight regions with a non-nil text or overlay property, but I
sometimes use overlays to highlight all kinds of stuff.  I can always
rehighlight.  That is somewhat inconvenient, but less inconvenient
than the register-bookmark stuff.

There is one more problem with that overlay repositioning.  Maybe it
applies to *Help* buffers as well.  Unreferenced deleted overlays are
inaccessible (in as far as I know) and hence are garbage, which (I
would guess) gets garbage collected.  But these repositioned overlays,
even if unreferenced, remain accessible through (overlays-in 1 2),
hence are not garbage and would (I guess) never get collected.  If
some package spews out a lot of these overlays and fails to delete
them during updates, as a result of narrowing, can that get a problem?

Sincerely,

Luc.

  reply	other threads:[~2003-10-01 14:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-01  2:16 Info mutilates user overlays Luc Teirlinck
2003-10-01  2:26 ` Miles Bader
2003-10-01  2:40   ` Luc Teirlinck
2003-10-01  4:00   ` Luc Teirlinck
2003-10-01  4:37     ` Miles Bader
2003-10-01 12:22 ` Stefan Monnier
2003-10-01 14:49   ` Luc Teirlinck [this message]
2003-10-01 17:33     ` Stefan Monnier
2003-10-01 18:49       ` Luc Teirlinck
2003-10-01 20:00         ` Stefan Monnier
2003-10-02 13:45           ` Richard Stallman
2003-10-01 19:14       ` Luc Teirlinck
2003-10-01 19:54         ` Stefan Monnier
2003-10-01 21:11           ` Luc Teirlinck
2003-10-01 23:18             ` Luc Teirlinck
2003-10-02  0:38               ` Miles Bader
2003-10-01 15:10   ` Luc Teirlinck

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=200310011449.h91EnBN28933@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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 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).