From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 06:38:49 2013 Received: (at submit) by debbugs.gnu.org; 19 Dec 2013 11:38:49 +0000 Received: from localhost ([127.0.0.1]:58283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtbwH-0001FI-Bz for submit@debbugs.gnu.org; Thu, 19 Dec 2013 06:38:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47496) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtbwE-0001F9-Vx for submit@debbugs.gnu.org; Thu, 19 Dec 2013 06:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtbwA-0007bD-6q for submit@debbugs.gnu.org; Thu, 19 Dec 2013 06:38:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtbwA-0007b9-0c for submit@debbugs.gnu.org; Thu, 19 Dec 2013 06:38:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtbw5-0003tX-0u for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2013 06:38:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vtbvy-0007ZT-Ri for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2013 06:38:36 -0500 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:43516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtbvy-0007ZF-Jf for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2013 06:38:30 -0500 Received: by mail-pa0-f53.google.com with SMTP id hz1so1045458pad.40 for ; Thu, 19 Dec 2013 03:38:29 -0800 (PST) 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=t9aKgJQXybAHcX6iGe4YwyEAIi/QEi1qsNjnhuWPiHI=; b=PU74OqCEzTICWq7h/rCZEVxmWfyEGngT04WddHksBF5pvSNJ6QTw3TY7NpF6nC4reg 6yV1oJJFHCt0B/FhQS0dG2Hf2vCdzZu11nzZaJ3+chX6lIbjZ9562mWw03P9LiWuQdPG 4XPfEtwQfGDgV5g6dmPJIVIOm+wgNDonk3HIwEOhfPTZo5uoM4IqWAvjZ3vakvVHfnTB jaKBt95Z/pzUKg5aQ/8OrDXmPwK46OnkbHnj4YIqIbt5GH08B2T/3eMg3S7s+huzRnmi ktt9DdszmqwCIwD7l6WQTqxz0ChrE3FNcLeL8sm2IyW46cZyHwv+772KdJjMs2phH99m oRFw== MIME-Version: 1.0 X-Received: by 10.68.99.99 with SMTP id ep3mr1017275pbb.107.1387453109042; Thu, 19 Dec 2013 03:38:29 -0800 (PST) Received: by 10.66.77.230 with HTTP; Thu, 19 Dec 2013 03:38:28 -0800 (PST) Date: Thu, 19 Dec 2013 12:38:28 +0100 Message-ID: Subject: hl-line-mode: Current line highlighting takes precedence over region highlighting From: =?ISO-8859-2?Q?Jaros=B3aw_Rzesz=F3tko?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7b6dc1a4b5050904ede19918 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7b6dc1a4b5050904ede19918 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable I use a current emacs build from VCS. When you use hl-line-mode with the default settings, the highlighting of the current line takes precedence over the region highlighting. In my opinion this is bad usability, since you no longer see where the region is, and in this particular situation where the current line is would be obvious without the highlighting (the user is in the middle of selecting the region so he knows where he is in the file I guess). Would a hl-line-range function of this kind not be a better default: (setq hl-line-range-function (lambda () (if (region-active-p) nil (cons (line-beginning-position) (line-beginning-position 2))))) Or one that keeps the current line highlighting only where it does not interfere with the region highlighting: (setq hl-line-range-function (lambda () (let ((line-beg-pos (line-beginning-position)) (line-end-pos (line-beginning-position 2))) (if (region-active-p) (if (=3D (point) (region-end)) (cons (point) line-end-pos) (cons line-beg-pos (point))) (cons line-beg-pos line-end-pos))))) The last function is better but since hl-line-range-function returns a single range, it is impossible to highlight the line on both sides of a region that is part of a single line. In general I appreciate that this is customizable and one can overwrite it, but it takes quite some time to fix it yourself, and I think most users want to see one of those two behaviours (as evidenced by what most editors do in this respect). Cheers, Jaros=B3aw Rzesz=F3tko --047d7b6dc1a4b5050904ede19918 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
I use a current emacs build from VCS. When you use hl= -line-mode with the default settings, the highlighting of the current line = takes precedence over the region highlighting. In my opinion this is bad us= ability, since you no longer see where the region is, and in this particula= r situation where the current line is would be obvious without the highligh= ting (the user is in the middle of selecting the region so he knows where h= e is in the file I guess). Would a hl-line-range function of this kind not = be a better default:

(setq hl-line-range-function
=A0=A0=A0=A0=A0 (lambda ()
=A0=A0=A0= =A0=A0=A0=A0 (if (region-active-p)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 nil=
=A0=A0=A0=A0=A0=A0=A0=A0=A0 (cons (line-beginning-position) (line-begin= ning-position 2)))))

Or one that keeps the current line highlighting= only where it does not interfere with the region highlighting:

(setq hl-line-range-function
=A0=A0=A0=A0=A0 (lambda ()
=A0=A0=A0= =A0=A0=A0=A0 (let ((line-beg-pos (line-beginning-position))
=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 (line-end-pos (line-beginning-position 2)))
= =A0=A0=A0=A0=A0=A0=A0=A0=A0 (if (region-active-p)
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 (if (=3D (point) (region-end))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (cons (point) line-end-= pos)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (cons line-beg-pos (p= oint)))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (cons line-beg-pos line-end-po= s)))))

The last function is better but since hl-line-range-function = returns a single range, it is impossible to highlight the line on both side= s of a region that is part of a single line. In general I appreciate that t= his is customizable and one can overwrite it, but it takes quite some time = to fix it yourself, and I think most users want to see one of those two beh= aviours (as evidenced by what most editors do in this respect).

Cheers,
Jaros=B3aw Rzesz=F3tko
--047d7b6dc1a4b5050904ede19918-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 09:02:32 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 14:02:32 +0000 Received: from localhost ([127.0.0.1]:58373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VteBL-0006tF-VB for submit@debbugs.gnu.org; Thu, 19 Dec 2013 09:02:32 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:44223) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VteBK-0006t8-Ma for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 09:02:31 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rBJE2SLV015365; Thu, 19 Dec 2013 09:02:29 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 72FF7AE6B6; Thu, 19 Dec 2013 09:02:29 -0500 (EST) From: Stefan Monnier To: =?utf-8?Q?Jaros=C5=82aw_Rzesz=C3=B3tko?= Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting Message-ID: References: Date: Thu, 19 Dec 2013 09:02:29 -0500 In-Reply-To: (=?utf-8?Q?=22Jaros=C5=82aw_Rzesz=C3=B3tko=22's?= message of "Thu, 19 Dec 2013 12:38:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4797=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4797> : inlines <336> : streams <1093431> : uri <1629184> X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) > I use a current emacs build from VCS. When you use hl-line-mode with the > default settings, the highlighting of the current line takes precedence > over the region highlighting. Actually, that depends on the relative position/size of the two. I've just installed a patch which lowers the priority of the hl-line highlighting, which seems like a good thing to do in general and which should resolve this problem (unless you use the same attributes for the region and the hl-line faces). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 09:19:49 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 14:19:49 +0000 Received: from localhost ([127.0.0.1]:58384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VteS4-0007Pq-Ns for submit@debbugs.gnu.org; Thu, 19 Dec 2013 09:19:49 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:35827) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VteS2-0007Pe-Nn for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 09:19:47 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so1182454pde.13 for <16192@debbugs.gnu.org>; Thu, 19 Dec 2013 06:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xAeaVs6zaUHzR55rBqFl4SpOQMuYkfMYEfxCbaTyya4=; b=zZdgYPU3VAiwFcuxlhcAFkq76TWkmAHaHXYWBkiZJVj3zOEkbxCzWDJdFqjjgbj6FO zeFWgAfFuhMb9E1VMg2Tn5aScE1KcqVmX/ilMSp/ywYFDS/FpnSzLDJAHKlDkM5peevb Xj/S62r/FUQKfCaDmpBcZ2GrL3O0RF4WvYj1zHAT3fdYueswQEsHm6+FxA9SR3rjoAnd hKW9Fh1wckB3ibyrANMQ+q6ppRv8agat/KL2WLo7Io3wi/WY0DGvyg0AM0N6rPnTEA6u lSNHYzd5eB4Of+XzObLRtJK2st4VMmftx/hUF5BQ5CZm/uTfH/frNJ5G3FpWOMuBqS1i 2SIA== MIME-Version: 1.0 X-Received: by 10.69.19.225 with SMTP id gx1mr2058529pbd.62.1387462785474; Thu, 19 Dec 2013 06:19:45 -0800 (PST) Received: by 10.66.77.230 with HTTP; Thu, 19 Dec 2013 06:19:45 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Dec 2013 15:19:45 +0100 Message-ID: Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting From: =?ISO-8859-2?Q?Jaros=B3aw_Rzesz=F3tko?= To: Stefan Monnier Content-Type: multipart/alternative; boundary=001a1136752477a8fc04ede3da3c X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --001a1136752477a8fc04ede3da3c Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Hi, There is now a little quirk if the window has a margin, see here: http://imgur.com/pkxRmhf The first column on the left is the margin (as in left-margin-width), and the bright yellow rectangle is the cursor block. When the margin is disabled, it does fix the issue for me. Cheers, Jaros=B3aw Rzesz=F3tko 2013/12/19 Stefan Monnier > > I use a current emacs build from VCS. When you use hl-line-mode with th= e > > default settings, the highlighting of the current line takes precedence > > over the region highlighting. > > Actually, that depends on the relative position/size of the two. > I've just installed a patch which lowers the priority of the hl-line > highlighting, which seems like a good thing to do in general and which > should resolve this problem (unless you use the same attributes for the > region and the hl-line faces). > > > Stefan > --001a1136752477a8fc04ede3da3c Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
Hi,

There is now a little quirk if the window = has a margin, see here:

http://= imgur.com/pkxRmhf

The first column on the left is the marg= in (as in left-margin-width), and the bright yellow rectangle is the cursor= block. When the margin is disabled, it does fix the issue for me.

Cheers,
Jaros=B3aw Rzesz=F3tko
<= br>
2013/12/19 Stefan Monnier <monnie= r@iro.umontreal.ca>
> I use a current emacs build from VCS. W= hen you use hl-line-mode with the
> default settings, the highlighting of the current line takes precedenc= e
> over the region highlighting.

Actually, that depends on the relative position/size of the two.
I've just installed a patch which lowers the priority of the hl-line highlighting, which seems like a good thing to do in general and which
should resolve this problem (unless you use the same attributes for the
region and the hl-line faces).


=A0 =A0 =A0 =A0 Stefan

--001a1136752477a8fc04ede3da3c-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 11:38:52 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 16:38:52 +0000 Received: from localhost ([127.0.0.1]:58818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vtgce-0003Bj-3m for submit@debbugs.gnu.org; Thu, 19 Dec 2013 11:38:52 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:26422) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vtgcc-0003Ba-2l for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 11:38:50 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBJGcmB6026553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Dec 2013 16:38:49 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBJGcmLY017675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Dec 2013 16:38:48 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBJGclAI006604; Thu, 19 Dec 2013 16:38:47 GMT MIME-Version: 1.0 Message-ID: Date: Thu, 19 Dec 2013 08:38:47 -0800 (PST) From: Drew Adams To: =?iso-8859-1?B?SmFyb3M/YXcgUnplc3rzdGtv?= , 16192@debbugs.gnu.org Subject: RE: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: multipart/alternative; boundary="__1387471127704171101abhmp0020.oracle.com" X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16192 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) --__1387471127704171101abhmp0020.oracle.com Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable IMO, this is a duplicate of bug (regression) #15899. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15899 =A0 Now, region highlighting can take a back seat to other highlighting. Not go= od. =A0 As I said in that thread, "Selection highlighting should, at the very least= by default, visibly cover the entire selection." =A0 I use a current emacs build from VCS. When you use hl-line-mode with the de= fault settings, the highlighting of the current line takes precedence over = the region highlighting. In my opinion this is bad usability, since you no = longer see where the region is, and in this particular situation where the = current line is would be obvious without the highlighting (the user is in t= he middle of selecting the region so he knows where he is in the file I gue= ss).=20 --__1387471127704171101abhmp0020.oracle.com Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

IMO,= this is a duplicate of bug (regression) #15899.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D= 15899

 

Now, region highlighting can = take a back seat to other highlighting. Not good.

 

As I said in that thread, "Selection hig=
hlighting should, at the very least by default, visibly cover the entire se=
lection."

 

I use a current emacs build from VCS. When you use hl-line-mode with the= default settings, the highlighting of the current line takes precedence ov= er the region highlighting. In my opinion this is bad usability, since you no longer see where the region is, and in = this particular situation where the current line is would be obvious withou= t the highlighting (the user is in the middle of selecting the region so he= knows where he is in the file I guess).

<= /div> --__1387471127704171101abhmp0020.oracle.com-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 11:44:03 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 16:44:03 +0000 Received: from localhost ([127.0.0.1]:58822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vtghf-0003Li-3C for submit@debbugs.gnu.org; Thu, 19 Dec 2013 11:44:03 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:29408) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vtghc-0003LC-LJ for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 11:44:01 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBJGhwua000401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Dec 2013 16:43:59 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBJGhvPW026216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Dec 2013 16:43:58 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBJGhvuH023055; Thu, 19 Dec 2013 16:43:57 GMT MIME-Version: 1.0 Message-ID: <4497f846-4399-48b4-bd48-4bf15a44be81@default> Date: Thu, 19 Dec 2013 08:43:56 -0800 (PST) From: Drew Adams To: Stefan Monnier , =?iso-8859-1?B?SmFyb3M/YXcgUnplc3rzdGtv?= Subject: RE: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) > I've just installed a patch which lowers the priority of the hl-line > highlighting, which seems like a good thing to do in general and which > should resolve this problem (unless you use the same attributes for the > region and the hl-line faces). It's not about the priority of the hl-line highlighting. (And other code might well expect the priority that was there before.) It's about the priority of the region highlighting. Raise that, instead of lowering other priorities case by case (and possibly breaking other code). It is the region overlay that is new. It is its priority that needs fixing. But didn't you say that you didn't want to be fiddling with priorities, to deal with the problems introduced by this change? From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 12:41:56 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 17:41:56 +0000 Received: from localhost ([127.0.0.1]:58873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vthbf-0005Cw-V2 for submit@debbugs.gnu.org; Thu, 19 Dec 2013 12:41:56 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:43623) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vthbc-0005Cn-BM for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 12:41:53 -0500 Received: by mail-pb0-f51.google.com with SMTP id up15so1453879pbc.10 for <16192@debbugs.gnu.org>; Thu, 19 Dec 2013 09:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mwsQL2XUzvoCkhMosCka0CC9jRuIVvXXFiTupQJQPLQ=; b=ZMSBhzsfmZgNyVsbsEeuWy4cbimVgt2LGye+/Nqi4e7mpigdnK9FZ2xVHjljIsnByX vGdNx0fCbTBWOOAM9L7d36b72JJIIOHYPgOiJ/LqvVCctfJJ3KjOqxJQys8rEC3JPuGo FscfnAY9q4OOoO1HvuDhqcOQ3IBUBxgjTbZaT1oyNn6R55Dd/h+z4Dilfpf3utemhzJD p9eP/CrRXX10m5z5dkdKwrmc57b+wBIJwaB+I1sbPQ6elEhMB8/ojz1Clq27XJ8Hp/xq O0gPd6FxKOtbxu1oh758DffH6m5zte9B07xVqw5j3BhNPn7fLtHiwIkcnSo5bdnLmTHH lUUA== MIME-Version: 1.0 X-Received: by 10.68.99.99 with SMTP id ep3mr3087109pbb.107.1387474911231; Thu, 19 Dec 2013 09:41:51 -0800 (PST) Received: by 10.66.77.230 with HTTP; Thu, 19 Dec 2013 09:41:51 -0800 (PST) In-Reply-To: <4497f846-4399-48b4-bd48-4bf15a44be81@default> References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> Date: Thu, 19 Dec 2013 18:41:51 +0100 Message-ID: Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting From: =?ISO-8859-2?Q?Jaros=B3aw_Rzesz=F3tko?= To: Drew Adams Content-Type: multipart/alternative; boundary=047d7b6dc1a43805d204ede6ade2 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7b6dc1a43805d204ede6ade2 Content-Type: text/plain; charset=ISO-8859-1 Correction from my side, the last problem seems to actually be independent of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mode, emacs ran with --no-init, without any .Xresources etc., just: (setq-default left-margin-width 1) open a new buffer, select a few lines, and you get this: http://imgur.com/M1LFjeF 2013/12/19 Drew Adams > > I've just installed a patch which lowers the priority of the hl-line > > highlighting, which seems like a good thing to do in general and which > > should resolve this problem (unless you use the same attributes for the > > region and the hl-line faces). > > It's not about the priority of the hl-line highlighting. (And other code > might well expect the priority that was there before.) > > It's about the priority of the region highlighting. Raise that, > instead of lowering other priorities case by case (and possibly breaking > other code). It is the region overlay that is new. It is its priority > that needs fixing. > > But didn't you say that you didn't want to be fiddling with priorities, > to deal with the problems introduced by this change? > --047d7b6dc1a43805d204ede6ade2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Correction from my side, the last problem s= eems to actually be independent of the fix, I reproduced it with vanilla em= acs from vcs, no hl-line-mode, emacs ran with --no-init, without any .Xreso= urces etc., just:

(setq-default left-margin-width 1)

open a new buffer= , select a few lines, and you get this:

http://imgur.com/M1LFjeF


2013/12/19 Drew Adams = <drew.adams@o= racle.com>
> I've just installed a patch which lowers the pri= ority of the hl-line
> highlighting, which seems like a good thing to do in general and which=
> should resolve this problem (unless you use the same attributes for th= e
> region and the hl-line faces).

It's not about the priority of the hl-line highlighting. (And oth= er code
might well expect the priority that was there before.)

It's about the priority of the region highlighting. =A0Raise that,
instead of lowering other priorities case by case (and possibly breaking other code). =A0It is the region overlay that is new. =A0It is its priority=
that needs fixing.

But didn't you say that you didn't want to be fiddling with priorit= ies,
to deal with the problems introduced by this change?

--047d7b6dc1a43805d204ede6ade2-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 13:02:48 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 18:02:48 +0000 Received: from localhost ([127.0.0.1]:58891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vthvs-0005sR-4K for submit@debbugs.gnu.org; Thu, 19 Dec 2013 13:02:48 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47119) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vthvp-0005sG-OX for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 13:02:46 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id rBJI2gdP020973; Thu, 19 Dec 2013 13:02:43 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0D892AE6B6; Thu, 19 Dec 2013 13:02:42 -0500 (EST) From: Stefan Monnier To: Drew Adams Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting Message-ID: References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> Date: Thu, 19 Dec 2013 13:02:41 -0500 In-Reply-To: <4497f846-4399-48b4-bd48-4bf15a44be81@default> (Drew Adams's message of "Thu, 19 Dec 2013 08:43:56 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4797=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4797> : inlines <336> : streams <1093437> : uri <1629184> X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 16192 Cc: =?windows-1252?Q?Jaros=3Faw_Rzesz=F3tko?= , 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) > It is the region overlay that is new. It is its priority that > needs fixing. This narrow-minded "if a bug appear it must be in the new code" point of view leads to unmaintainable messes of hacks upon hacks. hl-line's overlay is a "background" highlight (not in the "background color" sense, but in a "background noise" sense), so it makes a lot of sense to give it a low priority. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 14:28:27 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 19:28:27 +0000 Received: from localhost ([127.0.0.1]:58949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtjGk-0008S6-6V for submit@debbugs.gnu.org; Thu, 19 Dec 2013 14:28:26 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:49162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtjGg-0008Rt-Pd for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 14:28:23 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MY200D00JDKNZ00@a-mtaout20.012.net.il> for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 21:27:40 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MY200DWHJE4BT90@a-mtaout20.012.net.il>; Thu, 19 Dec 2013 21:27:40 +0200 (IST) Date: Thu, 19 Dec 2013 21:27:59 +0200 From: Eli Zaretskii Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting In-reply-to: X-012-Sender: halo1@inter.net.il To: =?utf-8?Q?Jaros=C5=82aw_Rzesz=C3=B3tko?= Message-id: <83eh58bpz4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Date: Thu, 19 Dec 2013 18:41:51 +0100 > From: Jarosław Rzeszótko > Cc: 16192@debbugs.gnu.org > > Correction from my side, the last problem seems to actually be independent > of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mode, > emacs ran with --no-init, without any .Xresources etc., just: > > (setq-default left-margin-width 1) > > open a new buffer, select a few lines, and you get this: > > http://imgur.com/M1LFjeF [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Date: Thu, 19 Dec 2013 18:41:51 +0100 > From: Jarosław Rzeszótko > Cc: 16192@debbugs.gnu.org > > Correction from my side, the last problem seems to actually be independent > of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mode, > emacs ran with --no-init, without any .Xresources etc., just: > > (setq-default left-margin-width 1) > > open a new buffer, select a few lines, and you get this: > > http://imgur.com/M1LFjeF [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) > Date: Thu, 19 Dec 2013 18:41:51 +0100 > From: Jarosław Rzeszótko > Cc: 16192@debbugs.gnu.org > > Correction from my side, the last problem seems to actually be independent > of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mode, > emacs ran with --no-init, without any .Xresources etc., just: > > (setq-default left-margin-width 1) > > open a new buffer, select a few lines, and you get this: > > http://imgur.com/M1LFjeF My bad, now fixed in trunk revision 115615. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 14:48:03 2013 Received: (at 16192) by debbugs.gnu.org; 19 Dec 2013 19:48:03 +0000 Received: from localhost ([127.0.0.1]:58958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtjZi-0000d5-LW for submit@debbugs.gnu.org; Thu, 19 Dec 2013 14:48:03 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:34480) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtjZf-0000cf-S4 for 16192@debbugs.gnu.org; Thu, 19 Dec 2013 14:48:00 -0500 Received: by mail-pb0-f50.google.com with SMTP id rr13so1580959pbb.23 for <16192@debbugs.gnu.org>; Thu, 19 Dec 2013 11:47:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MZ9B0TWmo0UDL4qq8jyW4jSdQAuayyxA2erK0Sqy+2Q=; b=gCSaqsP0m5uaMDPmOfqNMW8erivZKGDaOvTRxPo4EIOvGJK6nJR8Me2usrRt0Bg47c qqy64mgCY1wMcKf1FtswoeleE0Vw5e9pfDaovVnUPHaGio+kjURcu32QCXFq+1z5Hr2Z hLGfS0gNTuB3Yn6GMCVgQvD/yZR0jybNpkI+RyRCR35Fafm7fbL6yYY2aMiWIbzrwAec 5S9eQquxYRL+R5v7WTziId2Ga1uXMtNz7LwjB/ZJlj0tYYUl9Ix8Pl/n5WzsR8sXAKEe F0Y3HWbgn4VZKvNPrge5yLGefSV33Fwilm2lG0/40Feov/cPVO5p58chIVhmCoUTvVrb kbOA== MIME-Version: 1.0 X-Received: by 10.68.66.33 with SMTP id c1mr3697402pbt.73.1387482478649; Thu, 19 Dec 2013 11:47:58 -0800 (PST) Received: by 10.66.77.230 with HTTP; Thu, 19 Dec 2013 11:47:58 -0800 (PST) In-Reply-To: <83eh58bpz4.fsf@gnu.org> References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> <83eh58bpz4.fsf@gnu.org> Date: Thu, 19 Dec 2013 20:47:58 +0100 Message-ID: Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting From: =?ISO-8859-2?Q?Jaros=B3aw_Rzesz=F3tko?= To: Eli Zaretskii Content-Type: multipart/alternative; boundary=bcaec5430ab045ae1904ede870ea X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16192 Cc: 16192@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --bcaec5430ab045ae1904ede870ea Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Thanks, it's perfect now! Cheers, Jaros=B3aw Rzesz=F3tko 2013/12/19 Eli Zaretskii > > Date: Thu, 19 Dec 2013 18:41:51 +0100 > > From: Jaros=B3aw Rzesz=F3tko > > Cc: 16192@debbugs.gnu.org > > > > Correction from my side, the last problem seems to actually be > independent > > of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mod= e, > > emacs ran with --no-init, without any .Xresources etc., just: > > > > (setq-default left-margin-width 1) > > > > open a new buffer, select a few lines, and you get this: > > > > http://imgur.com/M1LFjeF > > My bad, now fixed in trunk revision 115615. > --bcaec5430ab045ae1904ede870ea Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
Thanks, it's perfect now!

Cheers,Jaros=B3aw Rzesz=F3tko


2013/12/19 Eli Zaretskii <eliz@gnu.org>
> Date: Thu, 19 Dec 2013 18:41:51 +0100 > From: Jaros=B3aw Rzesz=F3tko <= sztywny@gmail.com>
> Cc: 16192@debbugs.gnu.org=
>
> Correction from my side, the last problem seems to actually be indepen= dent
> of the fix, I reproduced it with vanilla emacs from vcs, no hl-line-mo= de,
> emacs ran with --no-init, without any .Xresources etc., just:
>
> (setq-default left-margin-width 1)
>
> open a new buffer, select a few lines, and you get this:
>
> http://imgur.co= m/M1LFjeF

My bad, now fixed in trunk revision 115615.

--bcaec5430ab045ae1904ede870ea-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 19 15:31:35 2013 Received: (at 16192-done) by debbugs.gnu.org; 19 Dec 2013 20:31:35 +0000 Received: from localhost ([127.0.0.1]:58989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtkFr-0001sS-7o for submit@debbugs.gnu.org; Thu, 19 Dec 2013 15:31:35 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:42966) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtkFm-0001sG-Ta for 16192-done@debbugs.gnu.org; Thu, 19 Dec 2013 15:31:31 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rBJKVRY4015954; Thu, 19 Dec 2013 15:31:28 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0F0BFAE6B6; Thu, 19 Dec 2013 15:31:28 -0500 (EST) From: Stefan Monnier To: =?utf-8?Q?Jaros=C5=82aw_Rzesz=C3=B3tko?= Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting Message-ID: References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> <83eh58bpz4.fsf@gnu.org> Date: Thu, 19 Dec 2013 15:31:28 -0500 In-Reply-To: (=?utf-8?Q?=22Jaros=C5=82aw_Rzesz=C3=B3tko=22's?= message of "Thu, 19 Dec 2013 20:47:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4797=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4797> : inlines <336> : streams <1093444> : uri <1629184> X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 16192-done Cc: Eli Zaretskii , 16192-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) > Thanks, it's perfect now! Thank you, closing, Stefan From unknown Fri Jun 20 07:18:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 17 Jan 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 10:17:24 2014 Received: (at control) by debbugs.gnu.org; 17 Jun 2014 14:17:25 +0000 Received: from localhost ([127.0.0.1]:50687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuCS-0001rw-GH for submit@debbugs.gnu.org; Tue, 17 Jun 2014 10:17:24 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:39275) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuCQ-0001rg-Br for control@debbugs.gnu.org; Tue, 17 Jun 2014 10:17:23 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5HEHGdf009913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Jun 2014 14:17:16 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5HEHFwC025503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 17 Jun 2014 14:17:16 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5HEHFd0025492 for ; Tue, 17 Jun 2014 14:17:15 GMT MIME-Version: 1.0 Message-ID: Date: Tue, 17 Jun 2014 07:17:14 -0700 (PDT) From: Drew Adams To: control@debbugs.gnu.org Subject: unarchive 16192 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unarchive 16192 thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 10:30:48 2014 Received: (at 16192) by debbugs.gnu.org; 17 Jun 2014 14:30:48 +0000 Received: from localhost ([127.0.0.1]:50736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuPM-0002wr-1S for submit@debbugs.gnu.org; Tue, 17 Jun 2014 10:30:48 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:26265) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuPE-0002jc-MG for 16192@debbugs.gnu.org; Tue, 17 Jun 2014 10:30:41 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5HEUTgP017863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Jun 2014 14:30:30 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s5HEUTl3018280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Jun 2014 14:30:29 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s5HEUQjv018112; Tue, 17 Jun 2014 14:30:27 GMT MIME-Version: 1.0 Message-ID: Date: Tue, 17 Jun 2014 07:30:25 -0700 (PDT) From: Drew Adams To: Stefan Monnier Subject: RE: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 16192 Cc: =?iso-8859-1?B?SmFyb3M/YXcgUnplc3rzdGtv?= , 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Assigning the priority of the hl-line overlay as -50 breaks Emacs convention and flies in the face of overlay behavior as documented. (elisp) `Overlay Properties' says: If you want to specify a priority value, use either `nil' (or zero), or a positive integer. Any other value has undefined behavior. ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Maybe that policy and guideline needs to be modified in light of the chosen fix for bug #16192? Maybe it should now say what negative values mean (what the behavior is). Note that not only has Emacs Dev violated this past guideline, but 3rd-party code will now do the same. To fix precisely this bug in hl-line+.el, for example, I had to follow suit. [Again, instead of reducing the priorities of multiple overlays case by case as bugs are noticed, a better fix would be to raise the region priority. If the other, pre-existing overlays already have priorities that make sense relative to each other, then it is only the priority of the new, region overlay that needs to be established.] From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 11:08:10 2014 Received: (at 16192) by debbugs.gnu.org; 17 Jun 2014 15:08:10 +0000 Received: from localhost ([127.0.0.1]:50769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuzV-0004OX-Nz for submit@debbugs.gnu.org; Tue, 17 Jun 2014 11:08:10 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13126) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwuzQ-0004O0-Aw for 16192@debbugs.gnu.org; Tue, 17 Jun 2014 11:08:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67106330" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Jun 2014 11:07:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id A557660D53; Tue, 17 Jun 2014 11:07:53 -0400 (EDT) From: Stefan Monnier To: Drew Adams Subject: Re: bug#16192: hl-line-mode: Current line highlighting takes precedence over region highlighting Message-ID: References: <4497f846-4399-48b4-bd48-4bf15a44be81@default> Date: Tue, 17 Jun 2014 11:07:53 -0400 In-Reply-To: (Drew Adams's message of "Tue, 17 Jun 2014 07:15:47 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16192 Cc: =?windows-1252?Q?Jaros=3Faw_Rzesz=F3tko?= , 16192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Assigning the priority of the hl-line overlay as -50 breaks Emacs > convention and flies in the face of overlay behavior as documented. Not it just uses undefined behavior. Stefan From unknown Fri Jun 20 07:18:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Jul 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 05 14:06:50 2015 Received: (at control) by debbugs.gnu.org; 5 Apr 2015 18:06:50 +0000 Received: from localhost ([127.0.0.1]:45665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yeowb-00063w-NP for submit@debbugs.gnu.org; Sun, 05 Apr 2015 14:06:50 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:26351) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeowX-00063g-Jq for control@debbugs.gnu.org; Sun, 05 Apr 2015 14:06:46 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t35I6dgN020027 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 5 Apr 2015 18:06:39 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t35I6b74030636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 5 Apr 2015 18:06:38 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t35I6bV2027293 for ; Sun, 5 Apr 2015 18:06:37 GMT MIME-Version: 1.0 Message-ID: <1e295805-69d3-48fe-a9fc-312f882310fb@default> Date: Sun, 5 Apr 2015 11:06:38 -0700 (PDT) From: Drew Adams To: control@debbugs.gnu.org Subject: unarchive 16192 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) unarchive 16192 thanks From unknown Fri Jun 20 07:18:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 May 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator