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: Mon, 22 Jun 2015 13:57:48 +0300 Message-ID: <5587EA2C.1090203@yandex.ru> References: <868ubgld8y.fsf@yandex.ru> <83mvzvjz3w.fsf@gnu.org> <5586BC71.3080608@yandex.ru> <83ioahhvwk.fsf@gnu.org> <5586F893.2070504@yandex.ru> <83egl5hr0t.fsf@gnu.org> <55871806.1070903@yandex.ru> <837fqwihta.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434970702 18957 80.91.229.3 (22 Jun 2015 10:58:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 10:58:22 +0000 (UTC) Cc: 20847@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 12:58:12 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 1Z6zQX-0002zQ-VR for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 12:58:10 +0200 Original-Received: from localhost ([::1]:39251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zQX-0002M4-CS for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 06:58:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zQT-0002Lz-Oc for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 06:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zQQ-0003gj-I0 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 06:58:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zQQ-0003gf-FF for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 06:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6zQP-0004bg-V9 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 06:58: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: Mon, 22 Jun 2015 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20847-submit@debbugs.gnu.org id=B20847.143497067917700 (code B ref 20847); Mon, 22 Jun 2015 10:58:01 +0000 Original-Received: (at 20847) by debbugs.gnu.org; 22 Jun 2015 10:57:59 +0000 Original-Received: from localhost ([127.0.0.1]:53900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6zQM-0004bO-GO for submit@debbugs.gnu.org; Mon, 22 Jun 2015 06:57:58 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:32907) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6zQK-0004bC-EM for 20847@debbugs.gnu.org; Mon, 22 Jun 2015 06:57:57 -0400 Original-Received: by wiwl6 with SMTP id l6so33247080wiw.0 for <20847@debbugs.gnu.org>; Mon, 22 Jun 2015 03:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=qO03gTpEJA2M217ExjozJiqEOPoSV8JH50Cxggqrz+A=; b=kpngzvkCASMpq3Y7nEqwUDxF/ozDwnHTOQRcu5/K+FqZuRbtu5QZNouP5x9c9mIpZK ieDpfA4kIM3Dj7CeBLLoUpX9Ps7kED2F9SHjhc6lf1PJCbTEvr3x2+RIiWCMBMrHXkDW HiJB4xL8pOkzCrFJLadm5WcIYP4M1u4fHhdu6iQPYWuESWPKDvOlhzGjtyR2FND55Wa4 qTcBSTq4zH+48zVe7qXigq6qHcAdrNXX5P/FfVhunSmzUVlAfVLP+UTIs5JdwBYFEd3m 0UroBbkN8ncBR3SVu9s+SkFLvwcxxsH4UVc2J1m4UJgTBwqcnT/5KfL9kl6OZkDrp9rW yYWQ== X-Received: by 10.180.103.194 with SMTP id fy2mr31520110wib.55.1434970670671; Mon, 22 Jun 2015 03:57:50 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id v3sm29995013wja.31.2015.06.22.03.57.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 03:57:50 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <837fqwihta.fsf@gnu.org> 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:104216 Archived-At: On 06/22/2015 05:43 AM, Eli Zaretskii wrote: > Something like that, but perhaps using end-of-visual-line as well. Ok, so there's a function for that. Would (eq (point) (save-excursion (end-of-visual-line) (point))) not suffice? >> Does that constitute at least three different cases we'd need to handle? >> >> - Not near the window edge >> - near the edge and newline >> - near the edge and no newline? > > I'm not sure I understand the meaning of "near" here. Sorry for being unclear. Let's replace that word with "at". >> I'm not sure what you mean by "losing some of the text". > > The rightmost characters in each continued line are removed from > display because you put a newline there. Do you have an example? Unless there's a misunderstanding, this would seem like a bug to me.