From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36550: mouse-face overlay calculation error Date: Sat, 13 Jul 2019 02:31:15 +0200 Message-ID: References: <87v9wc2t8p.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136059"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "36550@debbugs.gnu.org" <36550@debbugs.gnu.org> To: Linus =?UTF-8?Q?K=C3=A4llberg?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 13 02:32:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm5xY-000Z5M-TA for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 02:32:17 +0200 Original-Received: from localhost ([::1]:53030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm5xR-00031G-IY for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 20:32:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38251) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm5xO-000310-82 for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 20:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm5xM-0001T1-A2 for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 20:32:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm5xL-0001SD-P1 for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 20:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm5xL-00008S-It for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 20:32:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2019 00:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36550 X-GNU-PR-Package: emacs Original-Received: via spool by 36550-submit@debbugs.gnu.org id=B36550.1562977882473 (code B ref 36550); Sat, 13 Jul 2019 00:32:02 +0000 Original-Received: (at 36550) by debbugs.gnu.org; 13 Jul 2019 00:31:22 +0000 Original-Received: from localhost ([127.0.0.1]:40979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm5wg-00007Z-0D for submit@debbugs.gnu.org; Fri, 12 Jul 2019 20:31:22 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:51974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm5wd-00007Q-S3 for 36550@debbugs.gnu.org; Fri, 12 Jul 2019 20:31:20 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm5wZ-0003QU-9O; Sat, 13 Jul 2019 02:31:17 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEXw59EbCgKWeFNZNhm/ poHSBlJ6AAACRklEQVQ4jXWT4ZHrIAyEFUwBh7kCMFBAQC6Ak+m/preLnZv785iMk/jTSiAtIv9d ySSl4aR6GfL2w7tNJn5KcgDixAg84hxjqXAzVSjMIDIZzomzv4rqx/BeHIDPkgAgr8OLH3NOZAcU Cjz+jmkZTz6wMleSK4QQS2uqHT+yaQ5cX7JpC0H7sRdG5CPEX6Ah7LPEEhQLUe2PInpdr7lCiwh9 34ow3wfjYutAvV5dxKlBcvbjzr1EuUyCiuDvvDIjTSxaOgSytW/fQi/hWZGSPgii/LRphRU+IKch W29vOaazFjM3uKpk+5LX233LlXzB6XK5QTztLS+8Hi4JkvR5sQvaYrUkWxw+ocULmLJI29lE7062 2Ye9nj7PxurdMifksDfx8Q2aeSaAnIe8ztsTbXwOi+qlQ6FI9wC/9WOdpCdmMT5EB77s/AGIpVdE DX4A0uTXxVQlz5Xe81WpS/jDRpqy4PIDQKkEqNFQG6EvtJhKdynFLWiItZwAOIAxeHITtoA25HqF KI79N1bCvJQz3wla8ujA2psjoE9wuBcc4ViY7GAT6ay8wL5NJ9eOKmuEDRQt2eiydF0NrcMEMV6C uYojoGhHTc6dM8SGBdtdru4FKdrHKnulS5ZpukJ1W467XanufxjOLaBDd0sPiBG1H8f1bP0XUPKY UavhUn19FMhbPgLcNv2+Qcz026rRc524RucNtJ0tLB/2WmedrT0gOwx7FVkX12K5U0W1060iWhfo j6JrgXlRBC5d4MAddCuGE5y3XZ71D0wOgmbyTAhxAAAAAElFTkSuQmCC In-Reply-To: ("Linus \=\?utf-8\?Q\?K\=C3\=A4llberg\=22's\?\= message of "Thu, 11 Jul 2019 16:34:29 +0000") 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: 209.51.188.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:162813 Archived-At: Linus K=C3=A4llberg writes: > On second thought, I don't think the real problem is in recentf.el, but=20 > rather in the implementation of widgets and/or faces. It makes sense to=20 > keep recentf.el as it is. There's something even more fundamentally wrong going on here, I think. Here's a test case: (progn (let ((point (point))) (insert "foo\n") (let ((o (make-overlay point (point)))) (overlay-put o 'mouse-face 'highlight) (insert "bar")))) This should make a mouse face that's displayed the entire "foo" line, but it extends to the first character of the next line. If you make it one character shorter, then the entire line isn't highlighted. And! If you say `face' instead of `mouse-face', then everything is highlighted correctly (i.e., just the entire "foo" line, and not the "b" on the next line). So is there some basic fault in the code that calculates the length of the mouse highlighting? I don't really know where to start looking... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no