all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13796: 24.3.50; Minor bug in "(elisp) Managing Overlays"
@ 2013-02-23 23:57 Xue Fuqiao
  2013-02-24  3:35 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Xue Fuqiao @ 2013-02-23 23:57 UTC (permalink / raw)
  To: 13796


In (info "(elisp) Managing Overlays"):

 -- Function: move-overlay overlay start end &optional buffer
[...]
     This is the only valid way to change the endpoints of an overlay.
[...]

 -- Function: remove-overlays &optional start end name value
     This function removes all the overlays between START and END whose
     property NAME has the value VALUE.  It can move the endpoints of
     the overlays in the region, or split them.

I think both `move-overlay' and `remove-overlays' can change the
endpoints of an overlay.  So maybe it is a bug here.



In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0)
 of 2013-02-24 on Emacs
Bzr revision: 111865 rgm@gnu.org-20130223220645-ym5xjdm8i09p2huy
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10

Configured using:
 `configure --config-cache --enable-link-time-optimization'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <menu> r e - e m b <backspace> - b u g 
<tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13796: 24.3.50; Minor bug in "(elisp) Managing Overlays"
  2013-02-23 23:57 bug#13796: 24.3.50; Minor bug in "(elisp) Managing Overlays" Xue Fuqiao
@ 2013-02-24  3:35 ` Glenn Morris
  2013-02-25  2:10   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-02-24  3:35 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: 13796

Xue Fuqiao wrote:

> I think both `move-overlay' and `remove-overlays' can change the
> endpoints of an overlay.  So maybe it is a bug here.

remove-overlays may move them as a side effect. This does not invalidate
the point that

     This is the only valid way to change the endpoints of an overlay.
     Do not try modifying the markers in the overlay by hand, as that
     fails to update other vital data structures and can cause some
     overlays to be "lost".

is trying to make. Anyway, remove-overlays uses move-overlays.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13796: 24.3.50; Minor bug in "(elisp) Managing Overlays"
  2013-02-24  3:35 ` Glenn Morris
@ 2013-02-25  2:10   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2013-02-25  2:10 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Xue Fuqiao, 13796

>      This is the only valid way to change the endpoints of an overlay.
>      Do not try modifying the markers in the overlay by hand, as that
>      fails to update other vital data structures and can cause some
>      overlays to be "lost".

I'm wondering exactly what kind of "modifying the markers in the overlay
by hand" is being referred to here,


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-25  2:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23 23:57 bug#13796: 24.3.50; Minor bug in "(elisp) Managing Overlays" Xue Fuqiao
2013-02-24  3:35 ` Glenn Morris
2013-02-25  2:10   ` Stefan Monnier

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.