From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20847: [display engine] 25.0.50; company-mode popup makes point jump to an entirely different location Date: Fri, 19 Jun 2015 04:04:45 +0300 Message-ID: <868ubgld8y.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434675997 8488 80.91.229.3 (19 Jun 2015 01:06:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2015 01:06:37 +0000 (UTC) To: 20847@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 19 03:06:23 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 1Z5kl6-0000tP-59 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2015 03:06:16 +0200 Original-Received: from localhost ([::1]:55464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kl5-000737-Ho for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2015 21:06:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kkw-0006su-Ku for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5kkt-0003Ez-8V for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:06:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kks-0003Ep-Pu for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z5kks-0005QD-GT for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jun 2015 01:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143467591120785 (code B ref -1); Fri, 19 Jun 2015 01:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jun 2015 01:05:11 +0000 Original-Received: from localhost ([127.0.0.1]:51479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5kk2-0005PA-L8 for submit@debbugs.gnu.org; Thu, 18 Jun 2015 21:05:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45393) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5kjz-0005Oq-S0 for submit@debbugs.gnu.org; Thu, 18 Jun 2015 21:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5kjt-00020C-SC for submit@debbugs.gnu.org; Thu, 18 Jun 2015 21:05:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kjt-000200-PR for submit@debbugs.gnu.org; Thu, 18 Jun 2015 21:05:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kjs-00061T-NC for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:05:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5kjp-0001vP-GH for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:05:00 -0400 Original-Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:35141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5kjp-0001pH-9Y for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2015 21:04:57 -0400 Original-Received: by wgbhy7 with SMTP id hy7so77079723wgb.2 for ; Thu, 18 Jun 2015 18:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=8pY7ywjGFyYKlSXQPIqLVKB3b+AHaOrEJAtk8nzRe5A=; b=nCr0aa3gPdE0ox5uAoFljmop66fHCzDeBu5zd4LTJhqF4YTaJbm3aO84fwr4Co1Rkv QbjGgjAfIVkvCoVgpNVAo8D1hN1sMixKjq9YZFctXIaz/qwLTTEDuZc+LK1klo4QH8HV YegNaR/Q23Euc327Y1uCvKF9lSHRr9VTLiyssfXb79gixEflPhi89TLR8CoL1MRRtvJn HJU295DCYKWbGOiEag15dYwyT55Z3LKZOZBthr8L7G10WKwWRaIsC0bMRO7KppCzLYmc zFz5KZmK1oex0BkFAMBobYL8wGiZJGTmMVEW5AtMQxWJBPNBXkTyu2/3I9+ZE8+nmsll njaQ== X-Received: by 10.180.211.106 with SMTP id nb10mr1410849wic.33.1434675887619; Thu, 18 Jun 2015 18:04:47 -0700 (PDT) Original-Received: from axl ([82.102.93.54]) by mx.google.com with ESMTPSA id ym2sm14611369wjc.44.2015.06.18.18.04.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 18:04:47 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:104111 Archived-At: 1. Install company (from GNU ELPA, for instance). 2. Paste the contents of https://gist.githubusercontent.com/sooheon/97a62f433897b52da3d1/raw/a42af658ec3ccd11a4faa7e2581f7413687b1811/gistfile1.txt into the scratch buffer. 3. Look for the line with "hello halleo helo" at the end of the first paragraph, and delete or add a few characters before it, to make sure that the last "h" is two columns away from the right window border. So as when you type "el" after it, the cursor is displayed in the margin. 4. M-x company-mode 5. (setq company-backends '(company-dabbrev)) 6. Go to after the last "h", type "el", wait 0.3 seconds, see the completion popup displayed, while the cursor is displayed in the margin. Problem 1: even though the overlay's `cursor' property places it at the same line as where "hel" ends, the cursor is rendered in the margin two lines below. Problem 2: 7. Type "l", see it wrapped to the next line. 8. Type backspace. See the cursor move to the second paragraph. 9. Continue backspacing. See the completion popup disappear, and the text being deleted in the second paragraph. Originally reported at https://github.com/company-mode/company-mode/issues/362.