|
From: | Dmitry Antipov |
Subject: | bug#12426: 24.2.50; Emacs is closed unexpectedly after query-replace |
Date: | Fri, 14 Sep 2012 16:35:08 +0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
On 09/13/2012 08:47 PM, Eli Zaretskii wrote:
But marker_position and marker_byte_position are simple getters of these two attributes of a marker. If these attributes can be out of range for some window of time, then the getters shouldn't enforce this limitation. Otherwise, they are getters that cannot be used in some situations, which is IMO bad SE. At the very least that should be documented.
IIUC no, since this window of time is very short and it's entirely within adjust_markers_for_* functions. Also note that adjust_after_replace and del_range_2 adjusts markers first and overlays next, but replace_range and replace_range_2 adjusts overlays first; moreover, both replace_range and replace_range_2 has comments which says that "markers first, overlays next" is the correct order. This is pretty strange. Dmitry
[Prev in Thread] | Current Thread | [Next in Thread] |