From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: Highlight text Date: Fri, 11 Feb 2022 09:41:35 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f7362705d7b643bd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 11 05:13:01 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 1nINIq-0003g7-CN for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Feb 2022 05:13:00 +0100 Original-Received: from localhost ([::1]:49494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nINIo-0000Iy-Uf for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Feb 2022 23:12:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nINHl-0007mL-TR for emacs-devel@gnu.org; Thu, 10 Feb 2022 23:11:55 -0500 Original-Received: from [2607:f8b0:4864:20::d36] (port=36353 helo=mail-io1-xd36.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nINHi-0000L3-Ii for emacs-devel@gnu.org; Thu, 10 Feb 2022 23:11:53 -0500 Original-Received: by mail-io1-xd36.google.com with SMTP id h7so10001101iof.3 for ; Thu, 10 Feb 2022 20:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=178XA0xdQDF7BJ030Mz6WoEG1/veDnCE+owEYjU2+/Q=; b=TU12+8mhmqjKUQwVX/bvOi26C5aXslflfwwoWSweCR1TVb5p5pax3VDhy495Rbq/ir 06okwCtpibi3uHzKqS2L0+UstsYhl7yC+crh4u6W2mrY7N0tHLDTiZ4EFRQ/v1wKNUWe jv2BaRDx8LKg1nT3/cBnwCxUuE6Jt+vtGry6icm8Ouefx35rOikFSgQ+hRl00BUH/YKO O4YA/0UX8fzmlwENQNP1dVJ4rl6xAAcFPE9e2NWSBmIoB0tzX/HXy584X0VbeDNO+mEY onzk8YusI1MDGGvu3nvLZ1SIL+Wex3LLPSRo+URIy8TowLSaTlwVl0CG7bKof41kwKGf IpHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=178XA0xdQDF7BJ030Mz6WoEG1/veDnCE+owEYjU2+/Q=; b=V+yvrz1wRRs1/qiz0Gw0x3uSqpWrr+POcRs5KxsJeijhg2caqW+dJRLdnmyl96c7C3 YeqbKq8iiFE/N3SX88XJfloFEt6FdJZX5YRA+9ySQbtN0RQ8BuAjk4EUqlUVpGKZEPUU ykuwrgBPPxoJbLU9b6dQWlSiDBvLu2S6umiFLwfj4m8VyufCJ2lLbIjqJ64fTafBFJE9 AuASRH3/0lPF1Ll78JlTuHd9/EGbEZ/KQpbeVgrbSLnX+t1D7J3J7u+WNCwbgbxoSCFZ 80FdT/03zm9wafztSx18AKdlGRExGIjVzJAX0UOxX3D1ffnE3nn3RJrkVrHY7VGr9a/8 zszg== X-Gm-Message-State: AOAM533WE6+PkxMifNPr5/MqJ1uXXp0ZqWxhVWuyvMuaXG5jmxhCjB7z PIe3EpmSHU4Dt83kevDCQLSpsgk3Ny+wdg7vXhjiJb/GNJhSNw== X-Google-Smtp-Source: ABdhPJz2bw0bS/Yv4Ju+PEoMsurHcSPAtSmpTSWvKl2jwvDy+pLOpV1+F/EB0XFD816BED1T29AbIMCi7yjIe/fv6jE= X-Received: by 2002:a05:6638:2416:: with SMTP id z22mr5633549jat.203.1644552707846; Thu, 10 Feb 2022 20:11:47 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d36 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=atamariya@gmail.com; helo=mail-io1-xd36.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:286154 Archived-At: --000000000000f7362705d7b643bd Content-Type: text/plain; charset="UTF-8" Thanks Eli and Stefan. Your suggestion helped a lot. Missing the ability to see the text that's highlighted can be quite nightmarish. Thankfully it works now. https://lifeofpenguin.blogspot.com/2022/02/zen-emacs.html On Wed, Feb 9, 2022 at 9:12 PM Stefan Monnier wrote: > > Can somebody point me to a piece of code in the display engine which is > > responsible for highlighting text upon selection? > > It's not in the display engine (any more). > It's in `redisplay--update-region-highlight`. > > > Stefan > > --000000000000f7362705d7b643bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Eli and Stefan. Your suggesti= on helped a lot. Missing the ability to see the text that's highlighted= can be quite nightmarish. Thankfully it works now.

On Wed, Feb 9, 2022 at 9:12 PM S= tefan Monnier <monnier@iro.u= montreal.ca> wrote:
> Can somebody point me to a piece of code in the display eng= ine which is
> responsible for highlighting text upon selection?

It's not in the display engine (any more).
It's in `redisplay--update-region-highlight`.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--000000000000f7362705d7b643bd--