From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhiwei Chen Newsgroups: gmane.emacs.devel Subject: Re: Highlight current line when using gud Date: Wed, 30 Jun 2021 12:59:21 +0000 Message-ID: References: <46933061-DFBC-406C-8489-F3DC7EE770BA@kuaishou.com> <87sg0z8t5t.fsf@gnus.org> <6F39630A-1FF8-45DE-9E3B-D9E8BE906BD7@kuaishou.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Condy Chen , emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 30 15:01:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyZqB-00008t-Jm for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Jun 2021 15:01:19 +0200 Original-Received: from localhost ([::1]:33332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyZq9-00074N-Jg for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Jun 2021 09:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyZoZ-0006FL-Rs for emacs-devel@gnu.org; Wed, 30 Jun 2021 08:59:39 -0400 Original-Received: from smtpcn02.kuaishou.com ([103.107.216.241]:43501 helo=bjfk-gateway01.kuaishou.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyZoX-0007ol-Fg for emacs-devel@gnu.org; Wed, 30 Jun 2021 08:59:39 -0400 Original-Received: from bjm7-pm-mail21.kuaishou.com ([172.28.1.41]) by bjfk-gateway01.kuaishou.com with ESMTPS id 15UCxML0027817 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Jun 2021 20:59:22 +0800 (GMT-8) (envelope-from chenzhiwei03@kuaishou.com) Content-Language: zh-CN Content-ID: <89F40E52EBEF3E4AAAC0807B74B787A2@kuaishou.com> DKIM-Signature: v=1; a=rsa-sha256; d=kuaishou.com; s=dkim; c=relaxed/relaxed; t=1625057962; h=from:subject:to:date:message-id; bh=Ty7mxfqQ1Vv+a0vLimhosZIY+++pEAq7v8zy+iiReWI=; b=kpa9c+GsOmbHVYYngbwfTAreJf3k2DqI108ypMJgFOAsgPPc92xKhJvmWfzunlQsXv36u3jSy2w XjZOYLDd7akksH83oa6o16luFuKwqBs5rNuKO636bvFTvCIWSJlZNNF40HQ7aw2DhgADnDEXQrON1 3UNfk5pa4rKSZsFGKnQ= Original-Received: from bjfk-pm-mail15.kuaishou.com (172.29.5.43) by bjm7-pm-mail21.kuaishou.com (172.28.1.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 30 Jun 2021 20:59:22 +0800 Original-Received: from bjfk-pm-mail15.kuaishou.com ([fe80::7dae:bfab:2aec:940b]) by bjfk-pm-mail15.kuaishou.com ([fe80::7dae:bfab:2aec:940b%19]) with mapi id 15.01.2176.009; Wed, 30 Jun 2021 20:59:22 +0800 Thread-Topic: Highlight current line when using gud Thread-Index: AQHXba7gwba21KmBr0iOX7agw2Jstasr/gKA In-Reply-To: <6F39630A-1FF8-45DE-9E3B-D9E8BE906BD7@kuaishou.com> Accept-Language: zh-CN, en-US x-originating-ip: [172.31.70.41] X-MAIL: bjfk-gateway01.kuaishou.com 15UCxML0027817 Received-SPF: pass client-ip=103.107.216.241; envelope-from=chenzhiwei03@kuaishou.com; helo=bjfk-gateway01.kuaishou.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271084 Archived-At: > On Jun 30, 2021, at 8:53 PM, Zhiwei Chen wrot= e: >=20 >>=20 >>> Furthermore, users must set hl-line-sticky-flag to t to enable >>> highlight in all windows or move the point to the source file buffer, >>> otherwise only the arrow in fringe is helpful for which line program >>> run to. It's too restricted in such a situation. >>>=20 >>> So I propose to add a new overlay of current line to make gud more >>> friendly and deprecate the old one. >>=20 >> The patch seems to add a new overlay mechanism for gud that's switched >> on for all people? And is "the old one" you want to deprecate >> hl-line-mode? Yes, this patch adds a new overlay. And I would like to remove the use of h= l-line-mode since hl-line-mode only works in a limited situation. -- Zhiwei Chen