From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#27427: 26.0.50; Native line numbers lead to display error in company-mode popup Date: Thu, 6 Jul 2017 16:06:12 +0300 Message-ID: References: <611468a0-3115-813a-7347-d0c06e155831@web.de> <49b431fd-aaa4-e7ca-06fc-7146a0a5692c@yandex.ru> <83a84zul0d.fsf@gnu.org> <513eca6f-998a-a937-76c4-7cf2fb0ff787@yandex.ru> <83wp81u8rz.fsf@gnu.org> <8ec1b301-79dc-7d11-b3f9-85ae2e925785@yandex.ru> <594FDDC5.6040009@gmx.at> <83zicwrkmu.fsf@gnu.org> <5950C342.7010908@gmx.at> <83mv8ussb6.fsf@gnu.org> <595203DE.1040608@gmx.at> <837ezxsd02.fsf@gnu.org> <59527971.5000205@gmx.at> <83y3sdqtto.fsf@gnu.org> <59536CA6.10608@gmx.at> <83r2y4qcs1.fsf@gnu.org> <5953F706.7080405@gmx.at> <83o9t8q6u1.fsf@gnu.org> <5954A995.9@gmx.at> <83d19mrc3d.fsf@gnu.org> <59560B86.4030600@gmx.at> <8337ahrf9w.fsf@gnu.org> <59577A15.6010209@gmx.at> <83podkpdtw.fsf@gnu.org> <5957A223.2070003@gmx.at> <83lgo8p9hx.fsf@gnu.org> <5957BDC2.1060902@gmx.at> <83k23sp3ku.fsf@gnu.org> <5958A6A4.4030400@gmx.at> <838tk7orp6.fsf@gnu.org> <595DE1E2.70600@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499346433 11384 195.159.176.226 (6 Jul 2017 13:07:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2017 13:07:13 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 Cc: alexanderm@web.de, 27427@debbugs.gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 06 15:07:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dT6Ur-0002ek-VK for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jul 2017 15:07:06 +0200 Original-Received: from localhost ([::1]:51448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT6Ux-0000a0-8U for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jul 2017 09:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT6Ur-0000Zq-TF for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 09:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dT6Uo-0006kT-P4 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 09:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dT6Uo-0006k0-LS for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dT6Uo-0003JF-EL for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 09:07: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: Thu, 06 Jul 2017 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27427-submit@debbugs.gnu.org id=B27427.149934638812674 (code B ref 27427); Thu, 06 Jul 2017 13:07:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 6 Jul 2017 13:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:54332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dT6UG-0003IM-95 for submit@debbugs.gnu.org; Thu, 06 Jul 2017 09:06:28 -0400 Original-Received: from mail-wr0-f182.google.com ([209.85.128.182]:36634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dT6UF-0003IC-6p for 27427@debbugs.gnu.org; Thu, 06 Jul 2017 09:06:27 -0400 Original-Received: by mail-wr0-f182.google.com with SMTP id c11so2178284wrc.3 for <27427@debbugs.gnu.org>; Thu, 06 Jul 2017 06:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wAIxK5irOdUgxNyl22Q2zCmPZYv5SlRpWIXWvJFvJV4=; b=oho40XWavW1wcJ1ppNsRCAfYiY9gfDRZYuvZDkcLYsqpTeplAtOpYLIj6p1vrWj/HS YcUKxAxB1M2s7ozzjgbXLtpLt+UmjsOjgj51MJB8711dG7cN9FOAE1YLFJjwP29buY1V leOG6RAtGjZdSEjmW9OBb5wyvIaonYLitotPyBH7316W134zXQzX6wF4peUfhiVYG/bD A3UYRqxFlj7dtFnksZZPQrV0HLsZ6mvAUNrd8kSdUgB1ga/Fn584iSskkyQ1AtTCPf/W 4ypKTZPb1gCnX/hDGIdcQMX1Ez9nx1epxXviAOiJ53jcsHeI/qUkkn9IUpaNf/tEnItv 7cQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wAIxK5irOdUgxNyl22Q2zCmPZYv5SlRpWIXWvJFvJV4=; b=T038F8Z8ScAK2oyVSkB/B1Xm7sVQPqL87fSLf2PiPdFLCPlJ9P1CNRcVMPFVV8WUmO P7mwhssO0Nn3Ts/u+60vFByNhdmacRi7Mo0TLZw1a/bGxGzQvOrQnOtV3f1LZiLt6nCM /wW2ygrivh59DQdOL9gcYujAIZddEFMpRThglTJo10BkOCvC5v2ovoW1ntUmX6MIXeQq UlaGTWCqrlMEl5JvgBkRiQAy1kgxRSBJyVlpiJYLtYnCNGdTe1xT5u7RXOty7Bv1O+gJ LaAQ2m6dChTTIOGMr9kVYvDhsa+9l5g4uyF7YeO4a7h/G1NQX1h8ZRrBrhyPaXNE8ksY t8KQ== X-Gm-Message-State: AIVw113KWY0PRm1OxoJGbzFUuHRPP3xV5UEOLx0hQ3urhh5VXFYMmBSt 8SGU1JHKg1tHqbyZwyk= X-Received: by 10.28.215.145 with SMTP id o139mr27275554wmg.5.1499346381074; Thu, 06 Jul 2017 06:06:21 -0700 (PDT) Original-Received: from [192.168.0.133] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id n31sm113990wrn.59.2017.07.06.06.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 06:06:20 -0700 (PDT) In-Reply-To: <595DE1E2.70600@gmx.at> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134259 Archived-At: On 7/6/17 10:08 AM, martin rudalics wrote: > I don't understand the reasons for this combination. Inherently this > emulates idle timers as also the variable names (‘company-idle-delay’, > ‘company-tooltip-idle-delay’) indicate. We need post-command-hook anyway, to add or remove the timer depending on the last command. I don't recall the exact reasons for the choice between the idle and non-idle timers, but flyspell comes to mind (and its use of sit-for). > > It would be nice if the popup were able to reposition itself when the > > Emacs window is resized, of course (post-command-hook doesn't always > > run in such cases), but we've been living well enough without that. > > Putting the function on ‘window-size-change-functions’ should handle > that now. Maybe that's enough. What if the user moves the Emacs frame around with a mouse, without resizing? Will the tooltip window follow? > For earlier Emacs versions you probably have to resort to > ‘window-configuration-change-hook’ as well. They won't support the new style tooltips anyway.