* Display bug
@ 2002-09-12 3:30 Richard Stallman
2002-09-14 4:56 ` Karl Eichwalder
0 siblings, 1 reply; 8+ messages in thread
From: Richard Stallman @ 2002-09-12 3:30 UTC (permalink / raw)
I think I fixed the display bug now with the latest changes in xdisp.c.
^ permalink raw reply [flat|nested] 8+ messages in thread
* display bug
@ 2007-07-14 1:42 Patrick Drechsler
2007-07-14 1:45 ` Patrick Drechsler
2007-07-14 5:17 ` Carsten Dominik
0 siblings, 2 replies; 8+ messages in thread
From: Patrick Drechsler @ 2007-07-14 1:42 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hi,
small display bug (found while trying to use ascii art):
Take ~/tmp/a.org:
--8<---------------cut here---------------start------------->8---
* foo
: +-
: +-+
--8<---------------cut here---------------end--------------->8---
Displayed as (see attachment; note to horizontal black line)...
[-- Attachment #2: org-display-bug.png --]
[-- Type: image/png, Size: 9897 bytes --]
[-- Attachment #3: Type: text/plain, Size: 203 bytes --]
Versions:
GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of
2007-03-18 on golem
Org-mode version 5.02
Patrick
--
._(@I@)_.
.--{___}--.
.-/ Y \-.
/ | \
\__/-\__/
[-- Attachment #4: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: display bug
2007-07-14 1:42 display bug Patrick Drechsler
@ 2007-07-14 1:45 ` Patrick Drechsler
2007-07-14 5:17 ` Carsten Dominik
1 sibling, 0 replies; 8+ messages in thread
From: Patrick Drechsler @ 2007-07-14 1:45 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 375 bytes --]
Patrick Drechsler <patrick@pdrechsler.de> writes:
> Hi,
>
> small display bug (found while trying to use ascii art):
>
> Take ~/tmp/a.org:
>
> --8<---------------cut here---------------start------------->8---
> * foo
> : +-
> : +-+
> --8<---------------cut here---------------end--------------->8---
>
> Displayed as (see attachment; note to horizontal black line)...
[-- Attachment #2: org-display-bug.png --]
[-- Type: image/png, Size: 9897 bytes --]
[-- Attachment #3: Type: text/plain, Size: 194 bytes --]
> Versions:
>
> GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of
> 2007-03-18 on golem
>
> Org-mode version 5.02
>
>
> Patrick
--
If you choke a smurf, what color does it turn?
[-- Attachment #4: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: display bug
2007-07-14 1:42 display bug Patrick Drechsler
2007-07-14 1:45 ` Patrick Drechsler
@ 2007-07-14 5:17 ` Carsten Dominik
1 sibling, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2007-07-14 5:17 UTC (permalink / raw)
To: Patrick Drechsler; +Cc: emacs-orgmode
This is again an issue with emphasis. No fixed in this area for a
while.
- Carsten
On Jul 14, 2007, at 3:42, Patrick Drechsler wrote:
> * foo
> : +-
> : +-+
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
^ permalink raw reply [flat|nested] 8+ messages in thread
* Display bug
@ 2007-03-12 1:27 Richard Stallman
2007-03-13 22:13 ` Chong Yidong
0 siblings, 1 reply; 8+ messages in thread
From: Richard Stallman @ 2007-03-12 1:27 UTC (permalink / raw)
To: emacs-devel
Since this happens in the CVS trunk, it should be fixed now.
Has anyone looked at this? Please DTRT and ack.
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
From: Kenichi Handa <handa@m17n.org>
To: Kenichi Handa <handa@m17n.org>
In-reply-to: <E1HOoEX-0002hK-18@etlken.m17n.org> (message from Kenichi Handa
on Wed, 07 Mar 2007 13:58:37 +0900)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Date: Wed, 07 Mar 2007 14:37:39 +0900
Cc: nickrob@snap.net.nz, hongyi.zhao@gmail.com, emacs-devel@gnu.org
Subject: Display bug [Re: My Emacs unicode 2 crash again ...]
In article <E1HOoEX-0002hK-18@etlken.m17n.org>, Kenichi Handa <handa@m17n.org> writes:
> It now shows the correct place of calling abort() as below,
> and I can reproduce the bug by compiling Emacs with
> --enable-asserts.
> Breakpoint 1, abort () at emacs.c:431
> (gdb) bt full
> #0 abort () at emacs.c:431
> No locals.
> #1 0x0808a8ec in try_window_id (w=0x8867cc8) at xdisp.c:15132
[...]
> xassert (w->window_end_bytepos >= 0); <-- line 15132
> IF_DEBUG (debug_method_add (w, "A"));
> }
> I'm now trying to find what is wrong.
I found that the same bug can be reproduced even with Emacs
22 (latest CVS HEAD) when it is configured with
- --enable-asserts. Please try to build Emacs that way, and
run this code:
(defun temp ()
(with-temp-buffer
(switch-to-buffer (current-buffer))
(insert "a-\n-\nd\n")
(let ((nbsp (string (decode-char 'ucs #xa0))))
(while t
(goto-char 1)
(replace-string "-" nbsp)
(sit-for 0.1)
(goto-char 1)
(replace-string nbsp "-")
(sit-for 0.1)))))
It just swaps "-" and NBSP repeatedly. As the logic of the
function try_window_id is quite complicated, I still don't
understand what is wrong. Could someone help? FYI,
(gdb) run
[...]
Breakpoint 1, abort () at emacs.c:431
(gdb) up
#1 0x08086b40 in try_window_id (w=0x85df240) at xdisp.c:14983
(gdb) pp w->buffer
#<buffer *temp*>
(gdb) pp current_buffer->name
" *temp*"
(gdb) p *current_buffer->text
$7 = {
beg = 0x85bf3e0 "a-\n-",
gpt = 5,
z = 8,
gpt_byte = 5,
z_byte = 8,
gap_size = 13,
modiff = 6,
chars_modiff = 6,
save_modiff = 1,
overlay_modiff = 1,
beg_unchanged = 1,
end_unchanged = 3,
unchanged_modified = 4,
overlay_unchanged_modified = 1,
intervals = 0x0,
markers = 0x854d948
}
(gdb) p row->end.pos
$8 = {
charpos = 8,
bytepos = 10
}
(gdb) p w->window_end_bytepos
$9 = -2
(gdb)
It seems that the buffer now contains only ASCII
(i.e. "a-\n-\nd\n"), but row points to a data containing
multibyte characters (NBSP in this case).
- ---
Kenichi Handa
handa@m17n.org
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Display bug
2007-03-12 1:27 Display bug Richard Stallman
@ 2007-03-13 22:13 ` Chong Yidong
0 siblings, 0 replies; 8+ messages in thread
From: Chong Yidong @ 2007-03-13 22:13 UTC (permalink / raw)
To: rms, Kenichi Handa; +Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
> Since this happens in the CVS trunk, it should be fixed now.
> Has anyone looked at this? Please DTRT and ack.
>
> From: Kenichi Handa <handa@m17n.org>
> Subject: Display bug [Re: My Emacs unicode 2 crash again ...]
>
> I found that the same bug can be reproduced even with Emacs
> 22 (latest CVS HEAD) when it is configured with
> - --enable-asserts.
The following patch fixes this bug. I'll check it in once CVS comes
back online.
*** emacs/src/xdisp.c.~1.1142.~ 2007-03-09 22:37:01.000000000 -0500
--- emacs/src/xdisp.c 2007-03-13 18:10:19.000000000 -0400
***************
*** 14898,14904 ****
sync_frame_with_window_matrix_rows (w);
/* Adjust buffer positions in reused rows. */
! if (delta)
increment_matrix_positions (current_matrix,
first_unchanged_at_end_vpos + dvpos,
bottom_vpos, delta, delta_bytes);
--- 14898,14904 ----
sync_frame_with_window_matrix_rows (w);
/* Adjust buffer positions in reused rows. */
! if (delta || delta_bytes)
increment_matrix_positions (current_matrix,
first_unchanged_at_end_vpos + dvpos,
bottom_vpos, delta, delta_bytes);
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <200208261449.g7QEnIc26640@bacall.nnt.com>]
end of thread, other threads:[~2007-07-14 6:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12 3:30 Display bug Richard Stallman
2002-09-14 4:56 ` Karl Eichwalder
-- strict thread matches above, loose matches on Subject: below --
2007-07-14 1:42 display bug Patrick Drechsler
2007-07-14 1:45 ` Patrick Drechsler
2007-07-14 5:17 ` Carsten Dominik
2007-03-12 1:27 Display bug Richard Stallman
2007-03-13 22:13 ` Chong Yidong
[not found] <200208261449.g7QEnIc26640@bacall.nnt.com>
2002-08-28 6:51 ` Richard Stallman
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.