From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Trojer Newsgroups: gmane.emacs.bugs Subject: bug#17497: The text-mode menu looks very broken in emacs-24 Date: Wed, 18 Mar 2015 11:45:17 +0000 Message-ID: References: <5374B271.50803@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b8743f80772c805118e9ed0 X-Trace: ger.gmane.org 1426693615 4522 80.91.229.3 (18 Mar 2015 15:46:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 15:46:55 +0000 (UTC) To: 17497@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 16:46:48 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YYGBD-0002f6-G1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 16:46:47 +0100 Original-Received: from localhost ([::1]:34446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYGBC-0002Lp-R8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 11:46:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYGAY-0001MJ-9B for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 11:46:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYGAU-00042R-TS for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 11:46:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYGAU-00042E-Fk for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YYGAU-0003eo-6u for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 11:46:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <5374B271.50803@yandex.ru> Resent-From: Martin Trojer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2015 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17497-submit@debbugs.gnu.org id=B17497.142669350813983 (code B ref 17497); Wed, 18 Mar 2015 15:46:02 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 18 Mar 2015 15:45:08 +0000 Original-Received: from localhost ([127.0.0.1]:51796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYG9a-0003dS-Uw for submit@debbugs.gnu.org; Wed, 18 Mar 2015 11:45:07 -0400 Original-Received: from mail-wi0-f170.google.com ([209.85.212.170]:35583) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYCPW-00060v-Ll for 17497@debbugs.gnu.org; Wed, 18 Mar 2015 07:45:19 -0400 Original-Received: by wibdy8 with SMTP id dy8so87799806wib.0 for <17497@debbugs.gnu.org>; Wed, 18 Mar 2015 04:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PPcDQGnu4/K+l/0Vfwhl11hJBgqFS3QfVOcCDq7kCJk=; b=zg6sK0QBJ/DFNAS4ugZHEeCZ1vO4nQSNQIbFhAvIrx3/uycUDZtbRZ/2neAAYOADl4 vzpiySmJzKytM+5cerGi/34wz0pkN13Kp6kplTDu3mQ+XiR+2VE81zRzKyuSZ5qwW1UE VxIFfbbgaEeLehsCjQmz1UsZuQck+yEUWMpNCRAhTfDtZNBBAIoKDe+KoKWcBaGW8r4/ Wml8GIW6XETiDO5fgubx2OrtGv6UmY+6RtZtJWRA0WQ+ZzqLTi4zkCfnEY60lJEAdaC7 VteVtaWZVguFb9AF4qSDDQwqTdWTzwojEvyHspF7DuVPxneDcuGdOleAijoA3Ho/Om2k ZTJw== X-Received: by 10.194.192.167 with SMTP id hh7mr142961427wjc.151.1426679117867; Wed, 18 Mar 2015 04:45:17 -0700 (PDT) Original-Received: by 10.27.1.85 with HTTP; Wed, 18 Mar 2015 04:45:17 -0700 (PDT) X-Mailman-Approved-At: Wed, 18 Mar 2015 11:45:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100617 Archived-At: --047d7b8743f80772c805118e9ed0 Content-Type: text/plain; charset=UTF-8 > I don't think it's memory corruption. I suspect the problem is > related to the different ways cmgoto chooses to get to the specified > screen coordinates. If someone on the affected systems could tweak > cmgoto such that only the direct move is used, i.e. this code: > > p = (dcm == tty->Wcm->cm_habs > ? tgoto (dcm, row, col) > : tgoto (dcm, col, row)); > emacs_tputs (tty, p, 1, cmputc); > curY (tty) = row, curX (tty) = col; > > then perhaps we could see if my suspicions are in the right direction. Hi Eli, I just applied this patch trying to solve a different but related issue (https://www.virtualbox.org/ticket/13687). I am happy to report that applying this patch completely solved the redrawing issues I was experiencing! One option for you to recreate this issue locally seems to be to install virtual box, config a virtual machine with multiple cores, ssh into it and rung emacs. I've put my diff here (https://github.com/martintrojer/emacs/commit/bdff1ff98d02f4307659c052d0b35a40a36f0706), and I understand it can't be merged as-is hopefully this can help you find a solution that go into mainline emacs. --047d7b8743f80772c805118e9ed0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> I don't think it's memory corruption.  I suspe=
ct the problem is
> related to the different ways cmgoto chooses to get to the specified
> screen coordinates.  If someone on the affected systems could tweak
> cmgoto such that only the direct move is used, i.e. this code:
>
>      p =3D (dcm =3D=3D tty->Wcm->cm_habs
>           ? tgoto (dcm, row, col)
>           : tgoto (dcm, col, row));
>      emacs_tputs (tty, p, 1, cmputc);
>      curY (tty) =3D row, curX (tty) =3D col;
>
> then perhaps we could see if my suspicions are in the right direction.

Hi Eli,
I just applied this patch trying to solve a different but =
related issue (https://=
www.virtualbox.org/ticket/13687).
I am happy to report that applyin=
g this patch completely solved the redrawing issues I was experiencing!
One option for you to recreate this issue locally seems to be to install v=
irtual box, config a virtual machine with multiple cores, ssh into it and r=
ung emacs.
I've put my diff here (https://gi=
thub.com/martintrojer/emacs/commit/bdff1ff98d02f4307659c052d0b35a40a36f0706=
), and I understand it can't be merged as-is hopefully this can hel=
p you find a solution that go into mainline emacs.
--047d7b8743f80772c805118e9ed0--