GNU bug report logs - #24153
25.1; Feature request: per-buffer cursor-color variable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Tej Chajed <tchajed@HIDDEN>; dated Thu, 4 Aug 2016 15:28:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Aug 2016 02:10:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 05 22:10:29 2016
Received: from localhost ([127.0.0.1]:57027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVr4H-0003v2-9a
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 22:10:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56805)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr4G-0003uq-8g
 for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 22:10:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr4A-0004Ey-7h
 for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 22:10:23 -0400
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
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38839)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr4A-0004Es-4l
 for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 22:10:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47772)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr48-0006we-5i
 for bug-gnu-emacs@HIDDEN; Fri, 05 Aug 2016 22:10:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr43-0004ER-Rk
 for bug-gnu-emacs@HIDDEN; Fri, 05 Aug 2016 22:10:18 -0400
Received: from mout.kundenserver.de ([212.227.126.133]:52472)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVr43-0004EL-Gt
 for bug-gnu-emacs@HIDDEN; Fri, 05 Aug 2016 22:10:15 -0400
Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de
 (mreue005) with ESMTPSA (Nemesis) id 0LcCMD-1ameMF1efV-00jakY for
 <bug-gnu-emacs@HIDDEN>; Sat, 06 Aug 2016 04:10:14 +0200
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
To: bug-gnu-emacs@HIDDEN
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
 <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
Message-ID: <4a9de755-fa6e-4e33-17ba-ac412dfb1023@HIDDEN>
Date: Fri, 5 Aug 2016 22:10:07 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="GS73GDTTJirww4X8ePu5TIeOrLIWPpvgN"
X-Provags-ID: V03:K0:1rEAiIIxELPLmHyZTLlJpeCp2lB63D1kiEAhxcoSOSOL/naR8NS
 PYp0ez4JUbnlY20mONz4sqJyWzerrGGkCeOvtHwvNK2DeC1NUnYL2pJcg6aXMI2tWYy8NjE
 LTPUfpg/cUsy2zvCje5Cc1agxLHs9KCW3MI6LE7YWKjfIjYQfrtFaHXNOVhzzmrnP61rS1z
 9xE3+5pEUsspdNHaFxTtw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:mSrhUqsPe5E=:O54YlKneqDH9hfL8T4492o
 qz7S118HAW/qoVK3vCCNlizxbWrK4XfpmB6TfqE9h9GsCtE9EFRT9pr+1ZjmIzP0U2lTnX4bZ
 Xk3X1xomP/ZddU1WuPhFK2FJyMyKd0gPisK7Nrx+V0rKKI04eyqkRV2ChciO3UI8TtKIlU3eN
 T+StV8aQy14gmOd/4izRXaPSyXr6fR88iqMHhRMdRPhBc0ISjIu6c8BKhjHbAJ5rW1zfNXpwT
 /fIAT1N4QyJMC4xetXor7daJLC7emTVjzlOuY9SDB4DyaOgpw0M6eTdO5yli9RjQb7pTWz+1r
 JLpEDmi2ZINTWAUx5uGV5zjhQWJkflunrYDb2AnNHwwWhCo+eT0pKqrn/Jsh00SiRcVZslbHv
 q/zwDMIQ8MfBu3U3dTEIzpIcfjRzpIEFjUEXESu7Zu/4308IrbpnKI7rp7U/jpHBHuX0GD8pT
 VYpxYqrWnhFeuZtV5aQtF9Eeb6B9LHdz49hwSl/QcAXXG5Ked1FXOAY0O8jbJRT0cDjLNZRbK
 GsEr2yltJs+OOMADsopBu9JbWlxjHD0rp/Hy0xSlE5MBGiNTAwEhfknamwo9ae7dJvwHl9Lyu
 9CLF5hzI8/n///4sBiMtNp7x35najp7+8ivp8MbpZ47tk+RAwxNa+pcImyJ/T7ikDPBXwXs7h
 OLvcqiv2SN3VmBXC6LOz3VRoMmRR03Lq3x9PqDgoLIcZiTwTYOTsuhh128HYHVO7RKBU=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--GS73GDTTJirww4X8ePu5TIeOrLIWPpvgN
Content-Type: multipart/mixed; boundary="jD8trLgXXEJnbqqsqdGwXIqC8D8IFukKe"
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Message-ID: <4a9de755-fa6e-4e33-17ba-ac412dfb1023@HIDDEN>
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color
 variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
 <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
In-Reply-To: <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>

--jD8trLgXXEJnbqqsqdGwXIqC8D8IFukKe
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2016-08-04 22:17, Tej Chajed wrote:
>>> Perhaps using =E2=80=98buffer-list-update-hook=E2=80=99 instead of ad=
vising
>>> `select-window' would help?
>
> I haven't fully debugged this alternative, but it doesn't seem to
> work. company-coq still uses save-window-excursion in
> company-coq-ask-prover, which triggers the buffer-list-update-hook.=20

IIRC I added this save-window-excursion call to work a Proof General issu=
e, back when I didn't know much about PG.  Now that I have commit rights =
there, I could probably move the fix upstream and remove the save-window-=
excursion call.

Cl=C3=A9ment.


--jD8trLgXXEJnbqqsqdGwXIqC8D8IFukKe--

--GS73GDTTJirww4X8ePu5TIeOrLIWPpvgN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXpUb/AAoJEPqg+cTm90wj0hIP/jrmrVEGYeXglE43MqxT58SG
z3H9RI8SQpNYcDw3vGLHKcqK9RUCb6z1KSmaGZz5khuKPjT9UDyLTzBgfr97ZZvB
28uHyowkphbCirmfcHgfoT9A7Ghal+d/ndliUYYnrCJHPelAokH3TX4uJ8GXHRJL
s1X/u/PTSgDiNUwKJGCrprFbWLi+e0pgCjkuNWdRyFJhhyVXF1ppJ/MbYTm4Uh1X
RdSfl0OkCGnsSLggcDQuAF7NYw8KyG8dqpbYz+gcBw9wrIllqCXALS+7MDbO2hv3
dCpyoVsYZ6VMWxLvImTng3ZgcOpSZq/ubC/ASra6qL7FpB7zl2Q6Dn9lJ+RnLRe8
Q8JvfV+3F1T9DYwzz/JcQdULyaxpF29dkpdLflcPQaaLgWYWfzHKEF4Z0N5NeBI7
O2T8/5ggPfCPDyKBZeuVpyTSFa8gJejDdPmZ/qua2EqOaiVqIZO+L3Fc19QwkMOC
lOJc1uNYRMHEp+j2Gu11l4IU49/kY1Ge/n9ynwhPOQHVbCsQEbnaf/cHvbdfrmUm
RzFuvP+P1VgpCARg0CAsTPNzR979guzZ6tcyL7qVZc/H4BakGAmcBdv2Re2wITFW
1hM8ilQloiG/ZnDboPN8U1ebdR8ArX7iszZrCs5BYtS+C/THH2nJaPM2FfGcA1Pd
2TiCj4p0OblbWD+oM4yd
=ElZH
-----END PGP SIGNATURE-----

--GS73GDTTJirww4X8ePu5TIeOrLIWPpvgN--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 6 Aug 2016 01:59:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 05 21:59:59 2016
Received: from localhost ([127.0.0.1]:57023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVqu7-0003fb-9a
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 21:59:59 -0400
Received: from mout.kundenserver.de ([212.227.126.135]:63565)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <clement.pit@HIDDEN>) id 1bVqu5-0003fP-E9
 for 24153 <at> debbugs.gnu.org; Fri, 05 Aug 2016 21:59:57 -0400
Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de
 (mreue003) with ESMTPSA (Nemesis) id 0LfWft-1auNUm49qT-00p8eY; Sat, 06 Aug
 2016 03:59:38 +0200
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
To: martin rudalics <rudalics@HIDDEN>, 24153 <at> debbugs.gnu.org,
 npostavs@HIDDEN
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
 <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN> <57A4C0BE.4040704@HIDDEN>
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
Message-ID: <edc44032-9cde-3805-6c81-5baf6845cdfa@HIDDEN>
Date: Fri, 5 Aug 2016 21:59:35 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <57A4C0BE.4040704@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="cAxIMU6g4LCAwqRlhxqWBCLNnnfllGDOS"
X-Provags-ID: V03:K0:PjGQMQzoflVqPgseDwz6ilxg25HVB3wxVJrmvR/c4J8ssLkLVrw
 tWnprHJXCwPlZwmAKmgwbr22CDBnlfLA1oHDDWrzdIRkq/JO5+DZTOD4poic8ZedYY2qYTE
 y8mcHBbDsCR9D5S6NIqJi/DOQ2eXgCvHeh5C+XsbxO5SYPyhy0nxi1kGGM7pF0zZemFZpo5
 MgdgfClJbWOyRHiYSrWxA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:a+1bpT1y+MY=:jRKPyJU3pfXs1VGNZbA+zO
 eH+oME4mlt4T2wybCawQ5COXD12G8p9K1sO64y5r4A6CzqvL1R8yPNEHQE1C6YDMBVbzaX4Y4
 oYEGyWObwlYUOACcMrxa16RDvOk9YX1Xm4j9KXyRBJeE0Uup0+szgj3OD6xRNA4mT43I2ra88
 V19Xw5CvUy4HyWsjO+bBGldBWBybp5kR5cCvgs+fatcPyH6RGtC7WOblyp2QLeqG6RavGSPIj
 9qfy/8LH/QQtEOJM0TEfI4W0HcoEBJXlCVeBNF7GxdkyTeFKZLdS1ErmCs8jlOUhzex5P9J3g
 IOTxDH/giS4d3TgkY3SStMey//Z3iIO88jLVRxmjxxt6c29xPDeXRbDTUkImto+4rsVpGvyck
 y8hbqm/4vwCJBb3Lw7IXNUdToMjfzsqXjMByzM11NuyPrs1Bwfg7KToENzD9n8PMe1rFNynmA
 ocTNI59uTMWOHutOHK80DgVt/gIsl2vX9Xf1XYS4WbmidCy/4ECa1Iw7g2VzFuqZSY6Ljy4Rh
 oNKIiRwNi+Lsw4r8v5HwnEnLhRNQxAIjNBn9kRzUKRw8ZszzM+21fdqR7oK2uB5aaq+gLU2uL
 sQYg/SQ8VIuSUGS4V0G+4iaWuDcT8U/OiwP+HCdcfjYY/J+MWQlQwJsjcD4ez4mFsFuAeOCTj
 YGyl6KtnXYtMh0k66gpb+5TVKFtOxKiAPOemwzKkcgGEmZQJflusUn9mCKWdNm13cTr0=
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 24153
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--cAxIMU6g4LCAwqRlhxqWBCLNnnfllGDOS
Content-Type: multipart/mixed; boundary="wXBgHEJSmeodkDRsXcEjdWiAWhXxqUVB1"
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, 24153 <at> debbugs.gnu.org,
 npostavs@HIDDEN
Message-ID: <edc44032-9cde-3805-6c81-5baf6845cdfa@HIDDEN>
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color
 variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
 <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN> <57A4C0BE.4040704@HIDDEN>
In-Reply-To: <57A4C0BE.4040704@HIDDEN>

--wXBgHEJSmeodkDRsXcEjdWiAWhXxqUVB1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2016-08-05 12:37, martin rudalics wrote:
>> Assume there are two windows, one showing a buffer in evil's normal
>> editing mode, and one showing a buffer in evil's edit mode.  If the
>> user has configured evil to show the normal-mode cursor in green and
>> the insert-mode cursor in purple, then evil needs to change the cursor=

>> color every time the user switches between these two windows, and (I
>> don't think that) buffer-list-update-hook won't be sufficient for
>> that.
>=20
> This would be a bug.  =E2=80=98select-window=E2=80=99 should always run=

> =E2=80=98buffer-list-update-hook=E2=80=99 when NORECORD is nil.

I see; thanks for clarifying!



--wXBgHEJSmeodkDRsXcEjdWiAWhXxqUVB1--

--cAxIMU6g4LCAwqRlhxqWBCLNnnfllGDOS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXpUSHAAoJEPqg+cTm90wjl70QAJ+XRlxrBaYynR8tko+qfgKA
1FdGshu2j5H8CBXvmsfY4h9S0lvS7kA/QtLj5JuRJ49hueooN6GAntkhNx6JH498
3Xy9pO5tG7d9P9DUk4Azm5kIL0eeNleq6/0cMmxChdI2R9zelx2f8LYgZOJLMZdu
GMkv8M+9bJWPbElDXoq3odPqo0W01IdO/fc3JSXNNoWG8QV0c5SNh6Tg5zGZ2wOC
AEl+NIFR4K5fav3aJieWzmvSHOU0By+yufvJGvy6pduAX0gnEsgboHP/0xAgaLdi
NI7lPlcJ0+wl8q+lSRKCYbx6Tralq2UDZDg4s3hUddZoEedQ48j90KBNkC566Tmw
NPHtJv2FIr1qEp7CgKCSs6AfJ3kOqlCF0aAp8RdamMvw9cSViHy12aspgQcmQXxQ
V9hfVKDkgsq5J8yA+ht7B/rS4CETErKLnOFDzsCOoZEF10oWEHmhpI5MQZG0rJz8
FW4I9iIwiScsA3j13+SWGw28XSgjl7Oa2Shylya3Thohk+jp5lIxTecae4XalNu0
Q9EEQc2HK1XFMtCU9+BFv4gO7m/Kdf3SUt/2N0e2RHw9boJc1eeucchnCIJLCBq7
fekees5Y6HcAokOCNeKESGKhD355RE6nxdYBNP7Lc1gnGDAocX/VQW8LTJqRl4zq
uTFiSIxIpa4RCUFoP0eI
=Yz/N
-----END PGP SIGNATURE-----

--cAxIMU6g4LCAwqRlhxqWBCLNnnfllGDOS--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 5 Aug 2016 16:37:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 05 12:37:43 2016
Received: from localhost ([127.0.0.1]:56835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVi7y-0005q8-Uf
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 12:37:43 -0400
Received: from mout.gmx.net ([212.227.17.21]:50032)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1bVi7w-0005pj-Ut
 for 24153 <at> debbugs.gnu.org; Fri, 05 Aug 2016 12:37:41 -0400
Received: from [192.168.1.101] ([212.95.7.19]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0MV30j-1bkHVv3jvJ-00YTq7;
 Fri, 05 Aug 2016 18:37:23 +0200
Message-ID: <57A4C0BE.4040704@HIDDEN>
Date: Fri, 05 Aug 2016 18:37:18 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: =?UTF-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?= <clement.pit@HIDDEN>, 
 24153 <at> debbugs.gnu.org, npostavs@HIDDEN
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>	<87d1lo9fjm.fsf@HIDDEN>
 <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN>
In-Reply-To: <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:iIFY7yPwE0mdLFGPzeQKbXzFSZ3cr3TqFULnocoiGnn11lFfDma
 BWp/r6Dmehu0T2tg0P0/88disSqru9ZkhLug9pBodsrBe4OoxkFBBS96npg1pgqqzfSOVKJ
 MYZ6hDIBYZLD8vpOSKQS8MX+tJXvpoL2c9qiJ7cUdfVv8rSlXlYS8gWCcumNhz2rgcojl0J
 AQ2aKByuEXNQLyp74OTDQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:QyNEozn5Ch4=:zD9gF8RMobb2NlVXiC2iUt
 cfxcxMMB4WpWrHN5y8Eqn43b88W0yFFci1jxxxt0Og5IiNxHvGJiNOZ2BVFPGeXYCM6cEzwtl
 eXcDd7+DDG3WVe4itCSlzslDApVF9w+fM/IISdMxNAk0ZHOzMzhI1AN5DKTMnLzzznxrOzvXR
 BiottadRjt6MrbZa9WlV/qsgGzFJ4t5SFjP4/rGajP+bQg3dj9XXq1zr5p3LFB/xV5R+RviYL
 wu/coFyqeSDpuvfYI7wn/fTAN1BUnAASxPxn1k6V+wW5FpXWhlWWNagi6IeqdLCMfvreAT8zP
 ZwuofvV00+Mkgk1yEubXtjEeDBgiRp4gpUWEWB6aW+cpaBUjtDbTvgBUjFeSzhsZEu24v6dnA
 LheU4yizROY5DOauXnysCIERVTt60EbQ898e/8qsl5fW2E0pESjYYAFF1OeJSS6sNsvUZQswF
 VtOe0GIrIA4HRyQUnFfWikGLFxfy47dqd52lG5Dz/R5+sCzXIAYVfMJhZph0BLTNrRIUO+9MD
 zmFzUMyCW/JAESIVOEcmTikrnDw0X56Jtg7x8ovXcQyRfvwugA2at2DvwUYZFehGuIt3rGina
 6k8IZBJL08gH4DzFRAYVjIO4xuIMv7kfgkK3OyLQz/B0BYjU37Fm0WYtAQpZa2H3OmoQIL8rV
 EWi54i0mScQwfg2FIesxYe5tz14OOTV2QvEZ0L0aaOGwej2YRwqGjJrwGxRPlBrIgXQNNq40I
 89P0FTELpT2VQl6UsiSyoLgpEq0qfzaFOqI+VogE2yNzwXG0N6RQ7wgy9XO193vW0Y/MhPZkf
 KDI2cxF3MxFfo6BYumGWcLwPvjNKA==
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 24153
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

 > Assume there are two windows, one showing a buffer in evil's normal
 > editing mode, and one showing a buffer in evil's edit mode.  If the
 > user has configured evil to show the normal-mode cursor in green and
 > the insert-mode cursor in purple, then evil needs to change the cursor=

 > color every time the user switches between these two windows, and (I
 > don't think that) buffer-list-update-hook won't be sufficient for
 > that.

This would be a bug.  =E2=80=98select-window=E2=80=99 should always run
=E2=80=98buffer-list-update-hook=E2=80=99 when NORECORD is nil.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 5 Aug 2016 16:37:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 05 12:37:37 2016
Received: from localhost ([127.0.0.1]:56832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVi7t-0005pr-NR
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2016 12:37:37 -0400
Received: from mout.gmx.net ([212.227.17.22]:50836)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1bVi7r-0005pb-RA
 for 24153 <at> debbugs.gnu.org; Fri, 05 Aug 2016 12:37:36 -0400
Received: from [192.168.1.101] ([212.95.7.19]) by mail.gmx.com (mrgmx101) with
 ESMTPSA (Nemesis) id 0LkTSx-1azPZR2MY7-00cUWv;
 Fri, 05 Aug 2016 18:37:14 +0200
Message-ID: <57A4C0B7.4050105@HIDDEN>
Date: Fri, 05 Aug 2016 18:37:11 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Tej Chajed <tchajed@HIDDEN>, npostavs@HIDDEN
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>	<87d1lo9fjm.fsf@HIDDEN>
 <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
In-Reply-To: <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:bv6onFDSeMVJScMfkEket1O91IGd27NmjdqMtB38z6jfHOjQBt0
 2LEnKAT7LYDaRcXk6Wdi/gAUuEyyDxNUCPGtg8DwM2kQNxjXWhtmWmDIGMIvmHl910+Qjvo
 go1p4826SaYSeXpVmkV6eaL2SHuX3P8dqWRJVYDIChV3PAyr8NOHuPnhwbIfTk8Lgg51SpY
 GSXREOS1kaelLC7V4SdjQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:ct+k1XpEpHM=:Dpo/8oqSMBc6lcq7WZRL95
 S1p/Z+phBRahVQb7Ms5yu3t+E6ql6UO0sp0MJSx3M1kDFu1DkaPPXSxQweBL1rBofz6oCu5Yy
 O4BwOxSFKm+hD4aoUkc0jRxsO8kkBWlCVnoGxFjvnGqBMSFBI+XDczgkhyQk0khGqst48tk44
 lolfuJCw6NDer2pqy0TOGnWA9rCCHuX0RzDGsI2x9TvGCStEhljO5fZgjNcY2kGLr2+9gaimA
 O2xS5rjAIxOS8BwzRhl6ikks9udR1rv4/PWFp8rrEtSDRvY601xXx2eadmGeFZvzR7ZKInmbV
 ix6aGbna+L4XgtE/URCjFGpAvDxR+S/WvjQiN1bLbhZgaErEM9g/OlxyPKsyJ/yMyfDXx0obq
 HzHqWF4fKysE3UYBZ5SG2+duxKDplwfyKWEw/Mbs1/XOWUrUg0eoff0oGhhhZk1cXUAN15IB0
 Utfimo4lyBuEl06Ffdsynf9P09Ei4FF5DWfsKv4o4w/e4DPJo07OhrPrrtqmbS5eKv4mioTIr
 CkAoB7GjyezmCi0/HhOqnvvc3gxCIxUYKn5UcmBxpgccfVQCQGMBt/y4V5BpN0UK3WbV9yr4z
 zvffgC+pGfvtMrhSbBKIWu+m3dP6NtdSeJjCS8X3rNRhlxnQsiIRQH2oW3LF7ntNWds4fPmby
 L7EV370j/xnSW35WeaMMnwfU2BOP6gRiN5HPCgmvkmnOW09Z0YuJN5gbCyqMwOqapCwe9BfvN
 R2At6rjtBjlKz+bEs8PHwRrtUJkjg7vMz7uQFyoZVGWiOg2bKoLbdNAhorpMavooMZOnYx7YH
 PWfCjZOuMZIIq/VXaSQbKY71LKSFQ==
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 24153
Cc: 24153 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

 >>> Evil emulates a per-window cursor color in order to have the cursor
 >>> color of the active window reflect the buffer state (eg,
 >>> distinguishing insert and normal mode). It does so by advising
 >>> set-window and calling set-cursor-color if necessary; this can lead =
to
 >>> slowdowns when code calls set-window repeatedly (eg, through
 >>> with-selected-window).
 >>
 >> There's no `set-window' function, did you mean `select-window'?
 >
 > Yes, my mistake - the advice is on select-window.
 >
 >>
 >> Perhaps using =E2=80=98buffer-list-update-hook=E2=80=99 instead of ad=
vising
 >> `select-window' would help?
 >
 > I haven't fully debugged this alternative, but it doesn't seem to
 > work. company-coq still uses save-window-excursion in
 > company-coq-ask-prover, which triggers the buffer-list-update-hook.

Please tell us more about where and why =E2=80=98buffer-list-update-hook=E2=
=80=99
doesn't work in any of your use cases.  From what you say here you
expect =E2=80=98save-window-excursion=E2=80=99 to _not_ run =E2=80=98buff=
er-list-update-hook=E2=80=99.
Is that correct?

 > In
 > addition, even with company-coq disabled this somehow doesn't call
 > evil-refresh-cursor enough; starting from insert mode, after the first=

 > proof command, the color gets stuck on the normal mode color, and then=

 > doesn't change until some other buffer list update.

But IIUC you do not set the buffer of any window in these steps, so why
would you expect =E2=80=98buffer-list-update-hook=E2=80=99 to run?

martin






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Aug 2016 02:49:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 22:49:56 2016
Received: from localhost ([127.0.0.1]:56016 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVVCu-0008Lu-I4
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:49:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54020)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCt-0008Lh-Gg
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:49:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCn-0001iT-EF
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:49:50 -0400
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
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57879)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCn-0001iK-Al
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:49:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44984)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCl-00035t-2h
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 22:49:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCg-0001hq-Vu
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 22:49:46 -0400
Received: from mout.kundenserver.de ([212.227.17.13]:58963)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <clement.pit@HIDDEN>) id 1bVVCg-0001hi-LM
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 22:49:42 -0400
Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de
 (mreue101) with ESMTPSA (Nemesis) id 0Lxwsm-1bALCn047o-015IzU; Fri, 05 Aug
 2016 04:49:29 +0200
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
To: bug-gnu-emacs@HIDDEN, npostavs@HIDDEN
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
Message-ID: <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN>
Date: Thu, 4 Aug 2016 22:49:18 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <87d1lo9fjm.fsf@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="l7k5EWHMwPene4t6nvOMufh7X4KvFQb8U"
X-Provags-ID: V03:K0:zukuhb0218IdG7CTZqQpa7ltC8c64HTJ4e9efDfSjq5SrN3XUPL
 bTZeY9vWeAlJ2POqGhhervv52tJk2dTr+rjUOnJiFbGEmswrYZwgEVaJllYo4KZeg6VGTkR
 medPlbalYog9zpp/M3bH6pOnlzYokdRY1zOPAUdc+JeU56UiVYSssKPpSRl/jZY788mXlGk
 KH5IB6El7Jy9IIIyXNidQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:hezJuvuzKcU=:UmvKBdWq5y8Sl8R6rrU6H5
 VmcGH8vqgIbsIez5Gq8YALYFC8GoOBz5r+sQRsprru2wCvkUB8KCKzZhoH9MctNzQn27mQnBP
 BUhvNPDpTDLrMg7a4QQi/zaGR5y4t01aSWebZ4pVAwAg8iA2dPJTnIT+KlPSCZsRKv/fM6yIc
 LbtaGw/mQTyBZpTQuQlU97TbV5+sCy+/Z71aWNQThYb1TGuhWrv3BD0c+s2cl75aLj8yJx3PC
 F+zh29XbGhH0+7+kXjZlaH3+QH7XNM538ag7lqCuhGehDpJAnsRjdrkvkNkNckV5UnU2CRAN3
 w7D9mEQ7BWkMXWb4Uaya5r0AZq4QFJmd4r87ufyJz9vTpdQXL5v33956R3tiGsSNsX5zYd7xX
 K7fBITpJRA61gvzhapM7iMxadep4zMng3+RvumQeqwdU5v22uKs2svIxL9LHlYLXTUnw9Vx9M
 f++gh2m0NyJnb351xOWJ6Uc7vu2mKVU0iq0jHtjU/3RzVFJT1gdu8RNZ2UiEw1e9C83PTGyhN
 C/F/iuQCmA3b1rv40GRBh541Pp6qTRY9/Hidni6VkvA9MkCJXEBqSlyxwIesuw2dqpf20IUij
 9CDLxHMS1dRUyQSW6jSF2JFkb2M+ClJLPGDNrV1nj/i/mMvIuXXftgfKkTvLFpwiEXqBR5aH3
 Ps/9YvIX/3ia6gZOEZMfPwvyTdgYTVtZehWAmOmoa7LeXzF1pg8Av3cOdInoQ4y6kkQY=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--l7k5EWHMwPene4t6nvOMufh7X4KvFQb8U
Content-Type: multipart/mixed; boundary="juOdDDxj6DSfJE1XdjxH8uuTj6VdVARoD"
From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= <clement.pit@HIDDEN>
To: bug-gnu-emacs@HIDDEN, npostavs@HIDDEN
Message-ID: <009b9bb5-fef9-127a-a2df-fc037b29f636@HIDDEN>
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color
 variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
In-Reply-To: <87d1lo9fjm.fsf@HIDDEN>

--juOdDDxj6DSfJE1XdjxH8uuTj6VdVARoD
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2016-08-04 21:21, npostavs@HIDDEN wrote:
> Perhaps using =E2=80=98buffer-list-update-hook=E2=80=99 instead of advi=
sing
> `select-window' would help?

Hmmm. I don't think that would work.

Assume there are two windows, one showing a buffer in evil's normal editi=
ng mode, and one showing a buffer in evil's edit mode.  If the user has c=
onfigured evil to show the normal-mode cursor in green and the insert-mod=
e cursor in purple, then evil needs to change the cursor color every time=
 the user switches between these two windows, and (I don't think that) bu=
ffer-list-update-hook won't be sufficient for that.

Cheers,
Cl=C3=A9ment.


--juOdDDxj6DSfJE1XdjxH8uuTj6VdVARoD--

--l7k5EWHMwPene4t6nvOMufh7X4KvFQb8U
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXo/6uAAoJEPqg+cTm90wjZeIP/jFcMogwdMzIRpPdCOc8k1Vg
xEgNt4kIb3GJPRMeum3m9uanCk58b5UL7SD+wHl3Py58WkibmpwNOGu8rUOU+Uar
qf8ZQDsZ4lX20Dfurwd0QtJGqGjDJwVFxd/ocW5YdT8VwHxnoqlUCEAQrhG5Tvrm
6GBzu4cvd9Ng88goA+iMCOD1Cg7XSDjcp2Py63l/xpWvP+km4v+9UCGQp6P4yQzV
r0r1li8Bv/r5lS3hntl/jQlVIpnFWWND4gBjP3IduDwmYyKB5xUPRKzgB57Kaipf
EupaTws1GOOOQwDik0BESv7qC9HnHfgkFjYXvSomP6GibTFFtvW3L+wNH5QW9buE
DH8XVIlqVXIR7gLcUmZFWQxffrDoV5sqVjHd3gibChqKMQABlPp/+xvWPU2gZYPI
u6uDcHPyCpDBGMmsXItejsTpAuEHbH8nssp35ov6GE18SrbCjr8cDxEwEXZZcW3k
Yt6LedClTuZTvL2VcQke4RbDSJKn3nKVnK3ixr5a/HKSy/3JZJ4B9BlyS7l5L5We
cvEOyCzGSU2mIej2LcQa7tRGvofs85d/MDu3r3OQxIi/jvaw4STb2QeO9l1z1fBH
cU8PnedeMiHsgBjY+E431Xw630RQOZOaDAwdTS1MG1/LW5ojwKamqFvoErSz8D7F
U19uxPPtf94k6pqASPJj
=jJls
-----END PGP SIGNATURE-----

--l7k5EWHMwPene4t6nvOMufh7X4KvFQb8U--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 5 Aug 2016 02:17:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 22:17:45 2016
Received: from localhost ([127.0.0.1]:56007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVUhl-0007X9-Mg
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:17:45 -0400
Received: from dmz-mailsec-scanner-1.mit.edu ([18.9.25.12]:62694)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tchajed@HIDDEN>) id 1bVUhk-0007Wt-0l
 for 24153 <at> debbugs.gnu.org; Thu, 04 Aug 2016 22:17:44 -0400
X-AuditID: 1209190c-80bff700000012de-a5-57a3f742930e
Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
 (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by  (Symantec Messaging Gateway) with SMTP id E9.BF.04830.247F3A75;
 Thu,  4 Aug 2016 22:17:38 -0400 (EDT)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id u752Hbum000837
 for <24153 <at> debbugs.gnu.org>; Thu, 4 Aug 2016 22:17:37 -0400
Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com
 [209.85.213.46]) (authenticated bits=0)
 (User authenticated as tchajed@HIDDEN)
 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id u752HZxF000360
 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT)
 for <24153 <at> debbugs.gnu.org>; Thu, 4 Aug 2016 22:17:37 -0400
Received: by mail-vk0-f46.google.com with SMTP id n129so181337460vke.3
 for <24153 <at> debbugs.gnu.org>; Thu, 04 Aug 2016 19:17:36 -0700 (PDT)
X-Gm-Message-State: AEkooutK5iYG9J5m4Rp1h4ppIJZLGJKsXPgN8HaE5SO7tu26fVWjDn/0qaKcWjYOZlUzXLwElTcW6oYVxnuWAw==
X-Received: by 10.31.171.72 with SMTP id u69mr40171843vke.119.1470363455546;
 Thu, 04 Aug 2016 19:17:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.176.1.147 with HTTP; Thu, 4 Aug 2016 19:17:04 -0700 (PDT)
In-Reply-To: <87d1lo9fjm.fsf@HIDDEN>
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 <87d1lo9fjm.fsf@HIDDEN>
From: Tej Chajed <tchajed@HIDDEN>
Date: Thu, 4 Aug 2016 22:17:04 -0400
X-Gmail-Original-Message-ID: <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
Message-ID: <CAFCzHYae0+QPiidAqwf8hkbJBsZGjGrwP9ozXZnMkf0TpwwE9w@HIDDEN>
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
To: npostavs@HIDDEN
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBKsWRmVeSWpSXmKPExsUixCmqrOv0fXG4wfUWPou7j7pZHBg9Lk7a
 xxzAGMVlk5Kak1mWWqRvl8CVMePTbfaCxZwVy9e1MzUw3mPvYuTkkBAwkeh995u1i5GLQ0ig
 jUliwseV7BDOGUaJ99N7mCGcB0wSN4+vhHImMUrMfvOcrYuRA6g/R+LneTGIUSUSXf/aWEBs
 XgFBiZMzn7CAlAgJeEqceCkFEuYUMJbY1byIFcQWEqiU6Fq5jQnEZhNQkmjZs5YZxGYRUJFY
 d7CVCWJkosSDTf1QIwMkGtv/gcWFBfwlpvScB6sXAeq91PKXEcRmFpCUuHR+ARPIWmYBdYn1
 84QgwtoSyxa+Zp7AKDILyXGzEKpmIalawMi8ilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdQLzez
 RC81pXQTIzjgJXl2MJ5543WIUYCDUYmHVyF2cbgQa2JZcWXuIUZJDiYlUd68zUAhvqT8lMqM
 xOKM+KLSnNTiQ4wSHMxKIrxHXgPleFMSK6tSi/JhUtIcLErivNu/tYcLCaQnlqRmp6YWpBbB
 ZGU4OJQkeJu+AjUKFqWmp1akZeaUIKSZODhBhvMADU8DqeEtLkjMLc5Mh8ifYrTk2PL72lom
 jnVzbwDJbVPvrWUSYsnLz0uVEue9CNIgANKQUZoHNxOUwC6GXtV7xSgO9KIw71eQKh5g8oOb
 +gpoIRPQwhMGC0AWliQipKQaGItMf0jFLfCeNHHJ5RDDZRcNzyjsc3NQOCDzTfp2zTlJ8yjx
 539K3242Cn5iMHOJsh+zaJyND3dDnU1ddOVGh8NJuzqjn21vSm96dejSIRkvn5DuZ+f9bGb8
 //9Wdkes9CaNYBamDqFl/m0LLUwnHjItuPFeQNiidso854Trjz9mCq0wPOy5TomlOCPRUIu5
 qDgRAGwqucc7AwAA
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 24153
Cc: 24153 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.5 (---)

On Thu, Aug 4, 2016 at 9:21 PM,  <npostavs@HIDDEN> wrote:
> Tej Chajed <tchajed@HIDDEN> writes:
>>
>> Evil emulates a per-window cursor color in order to have the cursor
>> color of the active window reflect the buffer state (eg,
>> distinguishing insert and normal mode). It does so by advising
>> set-window and calling set-cursor-color if necessary; this can lead to
>> slowdowns when code calls set-window repeatedly (eg, through
>> with-selected-window).
>
> There's no `set-window' function, did you mean `select-window'?

Yes, my mistake - the advice is on select-window.

>
> Perhaps using =E2=80=98buffer-list-update-hook=E2=80=99 instead of advisi=
ng
> `select-window' would help?

I haven't fully debugged this alternative, but it doesn't seem to
work. company-coq still uses save-window-excursion in
company-coq-ask-prover, which triggers the buffer-list-update-hook. In
addition, even with company-coq disabled this somehow doesn't call
evil-refresh-cursor enough; starting from insert mode, after the first
proof command, the color gets stuck on the normal mode color, and then
doesn't change until some other buffer list update.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 5 Aug 2016 01:21:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 21:21:18 2016
Received: from localhost ([127.0.0.1]:55972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVTp8-0001On-1d
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 21:21:18 -0400
Received: from mail-io0-f172.google.com ([209.85.223.172]:34176)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1bVTp6-0001OZ-8u
 for 24153 <at> debbugs.gnu.org; Thu, 04 Aug 2016 21:21:16 -0400
Received: by mail-io0-f172.google.com with SMTP id q83so287790505iod.1
 for <24153 <at> debbugs.gnu.org>; Thu, 04 Aug 2016 18:21:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=VeER/uR+BjAYimqp3wH2rKsd2x8J+btqAXy+1azWUMA=;
 b=wcpTWN9ZImC5OOuAPve4UV2rYthzo9mDkU1sao4xriZldtVfBiN/jKOCbIU3akZlLe
 2ipLZqdebHyo0Ux1xLj+CjVlu1eJntJ+zsY6FVn9hWg6xUXkVYq9/ugKUPOrTbdHdWjy
 ynCjSe3lSM6AY6w26t1oWdfzXS0OwtZUyXVVsgMVyHdI5uT6y1f165ht317hW6SbV9lO
 pMSQ7RKrOv5ampeJkZrPOjGHkyMbgxQfUhXdroqAO4ib99W5sUa0J6gPlddoKSZYsdBi
 uuubgWaqKUq6TdEvA+5kIEvb8YAaREdawmmJdcPbm40A9rNQgqY15GhPETWJI6Z6kL2M
 j1nA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version
 :content-transfer-encoding;
 bh=VeER/uR+BjAYimqp3wH2rKsd2x8J+btqAXy+1azWUMA=;
 b=K0VN61x0r7xikvy+TI6f6zJyXzHmT8zymd8Yu4F+AVdJ8ZjRCBvGuYgfB4l0HtDSle
 r1Mmzc6xMvdqQDZNEvODsdKXCXMU5BTkwvtnrmlCOhqPIfx2BQb9m6L/eXqsSj6q9tfQ
 eKPaWPXPkz+Mng+yc+TpElkHkhDT2YnD2yn0pk9MMFBm9zzB2We0OVoRNgqP/cFnhv1N
 YF/Y/r2tsyiCFS872UXI2M53zNr7WaA+KgHUTGaeRmw5NJND3iIHI6Wb7M4P4GtZHFr7
 NJwNt2BJL5efCvc8/6Vklr3olsSzrttUthjCwNAXzIxWcJkOol1JEMcMxRhc+dexWqyo
 fRgw==
X-Gm-Message-State: AEkoouvVzVFv7iLIKtsIPP+w0BriaaDmRQBbkV/yDkO/220GZGNdCcrmIg90YK6EqS3DFw==
X-Received: by 10.107.7.94 with SMTP id 91mr90943867ioh.43.1470360070760;
 Thu, 04 Aug 2016 18:21:10 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id b66sm2770857itd.0.2016.08.04.18.21.09
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 04 Aug 2016 18:21:10 -0700 (PDT)
From: npostavs@HIDDEN
To: Tej Chajed <tchajed@HIDDEN>
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
Date: Thu, 04 Aug 2016 21:21:17 -0400
In-Reply-To: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN> (Tej
 Chajed's message of "Thu, 4 Aug 2016 11:08:12 -0400")
Message-ID: <87d1lo9fjm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 24153
Cc: 24153 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Tej Chajed <tchajed@HIDDEN> writes:
>
> Evil emulates a per-window cursor color in order to have the cursor
> color of the active window reflect the buffer state (eg,
> distinguishing insert and normal mode). It does so by advising
> set-window and calling set-cursor-color if necessary; this can lead to
> slowdowns when code calls set-window repeatedly (eg, through
> with-selected-window).

There's no `set-window' function, did you mean `select-window'?  I find
in the docstring for that function:

    Selections that "really count" are those causing a visible change in
    the next redisplay of WINDOW=E2=80=99s frame and should be always recor=
ded.
    So if you think of running a function each time a window gets
    selected put it on =E2=80=98buffer-list-update-hook=E2=80=99.

Perhaps using =E2=80=98buffer-list-update-hook=E2=80=99 instead of advising
`select-window' would help?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at 24153 <at> debbugs.gnu.org:


Received: (at 24153) by debbugs.gnu.org; 4 Aug 2016 17:14:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 13:14:17 2016
Received: from localhost ([127.0.0.1]:55848 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVMDo-0006mD-Pe
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 13:14:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42867)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1bVMDn-0006m1-Bh
 for 24153 <at> debbugs.gnu.org; Thu, 04 Aug 2016 13:14:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1bVMDe-0003Hq-VX
 for 24153 <at> debbugs.gnu.org; Thu, 04 Aug 2016 13:14:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37780)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1bVMDe-0003Hb-Rs; Thu, 04 Aug 2016 13:14:06 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4275
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1bVMDd-0007IT-0X; Thu, 04 Aug 2016 13:14:05 -0400
Date: Thu, 04 Aug 2016 20:13:56 +0300
Message-Id: <83r3a4lanf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Tej Chajed <tchajed@HIDDEN>
In-reply-to: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
 (message from Tej Chajed on Thu, 4 Aug 2016 11:08:12 -0400)
Subject: Re: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
References: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.3 (------)
X-Debbugs-Envelope-To: 24153
Cc: 24153 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.3 (------)

> From: Tej Chajed <tchajed@HIDDEN>
> Date: Thu, 4 Aug 2016 11:08:12 -0400
> 
> It seems like the right way for evil to manage the cursor color is to
> have an analogous per-buffer cursor-color variable natively provided
> by emacs. Is this a doable feature?

I don't see up front why not.  Patches welcome.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Aug 2016 15:28:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 11:28:00 2016
Received: from localhost ([127.0.0.1]:55787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bVKYx-0007wt-NL
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 11:28:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40743)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGb-0007WX-97
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 11:09:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGV-0005jG-87
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 11:08:56 -0400
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 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39399)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGV-0005j4-4w
 for submit <at> debbugs.gnu.org; Thu, 04 Aug 2016 11:08:55 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59934)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGS-000299-Vq
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 11:08:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGN-0005hJ-0c
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 11:08:51 -0400
Received: from dmz-mailsec-scanner-7.mit.edu ([18.7.68.36]:63537)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tchajed@HIDDEN>) id 1bVKGM-0005gt-S1
 for bug-gnu-emacs@HIDDEN; Thu, 04 Aug 2016 11:08:46 -0400
X-AuditID: 12074424-50bff70000001b96-6e-57a35a7dcf66
Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
 (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by  (Symantec Messaging Gateway) with SMTP id 24.B5.07062.D7A53A75;
 Thu,  4 Aug 2016 11:08:45 -0400 (EDT)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id u74F8iSg030879
 for <bug-gnu-emacs@HIDDEN>; Thu, 4 Aug 2016 11:08:45 -0400
Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com
 [209.85.213.45]) (authenticated bits=0)
 (User authenticated as tchajed@HIDDEN)
 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id u74F8hKw001627
 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT)
 for <bug-gnu-emacs@HIDDEN>; Thu, 4 Aug 2016 11:08:44 -0400
Received: by mail-vk0-f45.google.com with SMTP id x130so170454806vkc.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 04 Aug 2016 08:08:44 -0700 (PDT)
X-Gm-Message-State: AEkoous5EKMJ4zgspaTebef21tRgXVOwRhhWH5YrmPnXdiIko9I8fJawgj+Pb2YvK49iS/Nbg76JBa5jqwwbWg==
X-Received: by 10.31.171.72 with SMTP id u69mr38199082vke.119.1470323323513;
 Thu, 04 Aug 2016 08:08:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.176.1.147 with HTTP; Thu, 4 Aug 2016 08:08:12 -0700 (PDT)
From: Tej Chajed <tchajed@HIDDEN>
Date: Thu, 4 Aug 2016 11:08:12 -0400
X-Gmail-Original-Message-ID: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
Message-ID: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@HIDDEN>
Subject: 25.1; Feature request: per-buffer cursor-color variable
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJIsWRmVeSWpSXmKPExsUixG6nolsbtTjcYG2jlsX3A1UOjB5t08wC
 GKO4bFJSczLLUov07RK4MtY1NDMV7GGtOLioh62BcT9LFyMHh4SAicSkxrAuRi4OIYE2Joll
 zcfYIJwzjBKnPrQyQzgPmCR2/r/OCuFMYpS4u6SZDaI9R+LOZr4uRk4gs0Ri+Z5bzCA2r4Cg
 xMmZT1hAbCEBT4nrL/rB4mwCShIte9aC2SwCKhKbL15khehNlLh14ggjRG+AxJ/bh8DGCws4
 SOydKQwSFhGQlPh6p5UVJMwsoC6xfp7QBEaBWUiWzULILGBkWsUom5JbpZubmJlTnJqsW5yc
 mJeXWqRrrpebWaKXmlK6iREcci4qOxi7e7wPMQpwMCrx8G6QXBQuxJpYVlyZe4hRkoNJSZR3
 RsDicCG+pPyUyozE4oz4otKc1OJDjBIczEoivFMigXK8KYmVValF+TApaQ4WJXHe7d/aw4UE
 0hNLUrNTUwtSi2CyMhwcShK8c0EaBYtS01Mr0jJzShDSTBycIMN5gIYzR4EMLy5IzC3OTIfI
 n2K05Njy+9paJo4FP24DyW1T761lEmLJy89LlRLn7QUZKgDSkFGaBzcTlEIuhl7VfcUoDvSi
 MG8sSBUPMP3ATX0FtJAJaOEJgwUgC0sSEVJSDYz7WMXXnPvF9mviFp0E5eacgAfTzOW3B5t/
 vry50lh9v5s41xbNqTqTHQRd7lhckFo6Izj77VWv/k+mPtOTnfQEFxpbimytUtBQOtk/TZTr
 laiZi8yDJynXfVY8DU/MC3jPV/f+61PXklC9wBU6kZmfSlz2ZQnnJgXFzr6eJWx6Lz7+k/BO
 biWW4oxEQy3mouJEAJkQVEf8AgAA
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 04 Aug 2016 11:27:58 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Currently there's a per-buffer cursor-type variable that is respected
per window and a single cursor-color variable that applies to the
entire frame.

Evil emulates a per-window cursor color in order to have the cursor
color of the active window reflect the buffer state (eg,
distinguishing insert and normal mode). It does so by advising
set-window and calling set-cursor-color if necessary; this can lead to
slowdowns when code calls set-window repeatedly (eg, through
with-selected-window).

It seems like the right way for evil to manage the cursor color is to
have an analogous per-buffer cursor-color variable natively provided
by emacs. Is this a doable feature?

Thanks!
Tej




Acknowledgement sent to Tej Chajed <tchajed@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#24153; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.