From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Highlight text Date: Wed, 09 Feb 2022 16:48:51 +0200 Message-ID: <83mtj0umcs.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 09 16:58:08 2022 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 1nHpM7-000AHB-Ns for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Feb 2022 16:58:07 +0100 Original-Received: from localhost ([::1]:41706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHpM6-0006AH-Os for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Feb 2022 10:58:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHoHD-0000FA-Ie for emacs-devel@gnu.org; Wed, 09 Feb 2022 09:48:59 -0500 Original-Received: from [2001:470:142:3::e] (port=59100 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHoHD-0002BC-7V; Wed, 09 Feb 2022 09:48:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7rtquDvqlm6eUQutTum5X9Kj3IBXRLAm+htVm6hQpF0=; b=MnPfHUFdjSOv 7LCTyyPpIcZy8JYhPhT+XTVhG7WXw53xikkCI5HHRrS4Hx0fmBASO8C04B/iC1c6iWoYUG2B1JBm4 lVVEzCOP3qJVEDpyHWcDsv3KXb6mi3lYdNmgG4ZXSh9EWIb+iFW398YmskHFJiQD8JagFrU/cGH52 yLmK0yAkd+jzvki2UgPpjmlXFEOCaOqaocpTieIhH+av07TlSXoxfdzOq8/Ysub6o90fjPC8NOHRX 2lLPWwn8n/HGvdKYb/W0SnzEbMHUJO0vFJiTRuVKPWEkudzfiIbHhaHdVD4vOdubTBjSjuxRm6E4o EsRg6FcICQNumLk0V6Q0/w==; Original-Received: from [87.69.77.57] (port=2035 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHoHC-0006HW-Nw; Wed, 09 Feb 2022 09:48:59 -0500 In-Reply-To: (message from Anand Tamariya on Wed, 9 Feb 2022 19:08:54 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:286101 Archived-At: > From: Anand Tamariya > Date: Wed, 9 Feb 2022 19:08:54 +0530 > > Can somebody point me to a piece of code in the display engine which is responsible for highlighting text > upon selection? Or the general logic on what causes it to display in a different face than normal text? It's not in the display engine (it was once). It's in simple.el, see redisplay--update-region-highlight there. Basically, we nowadays implement region highlight as an overlay.