From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35062: [PATCH v3 2/3] constify a bit of xterm.c Date: Sat, 20 Apr 2019 14:01:55 +0300 Message-ID: <83ef5xaqjg.fsf@gnu.org> References: <20190407021331.948-1-Hi-Angel@yandex.ru> <20190407021331.948-2-Hi-Angel@yandex.ru> <8336mml3s7.fsf@gnu.org> <1f700b05-16a8-1159-e2e3-61f9699981a1@cs.ucla.edu> <1555722559.16908.0@yandex.ru> <1555756304.18656.0@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184100"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eggert@cs.ucla.edu, 35062@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 20 13:16:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHnyg-000lmP-LE for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2019 13:16:14 +0200 Original-Received: from localhost ([127.0.0.1]:40065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHnye-0000k6-Ab for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2019 07:16:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHnyQ-0000OU-Eh for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 07:15:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHnlu-0000iX-Q0 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 07:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHnlu-0000iJ-N7 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 07:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHnlu-0004gy-Ck for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 07:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Apr 2019 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35062 X-GNU-PR-Package: emacs Original-Received: via spool by 35062-submit@debbugs.gnu.org id=B35062.155575814217979 (code B ref 35062); Sat, 20 Apr 2019 11:03:02 +0000 Original-Received: (at 35062) by debbugs.gnu.org; 20 Apr 2019 11:02:22 +0000 Original-Received: from localhost ([127.0.0.1]:45842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHnlF-0004fv-Qt for submit@debbugs.gnu.org; Sat, 20 Apr 2019 07:02:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHnlB-0004fe-Oh for 35062@debbugs.gnu.org; Sat, 20 Apr 2019 07:02:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHnl5-0000F5-HB; Sat, 20 Apr 2019 07:02:11 -0400 Original-Received: from [176.228.60.248] (port=1614 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hHnl5-0000fE-0l; Sat, 20 Apr 2019 07:02:11 -0400 In-reply-to: <1555756304.18656.0@yandex.ru> (message from Konstantin Kharlamov on Sat, 20 Apr 2019 13:31:44 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157889 Archived-At: > Date: Sat, 20 Apr 2019 13:31:44 +0300 > From: Konstantin Kharlamov > Cc: eggert@cs.ucla.edu, 35062@debbugs.gnu.org > > On óÂ, Apr 20, 2019 at 09:53, Eli Zaretskii wrote: > >> Date: Sat, 20 Apr 2019 04:09:19 +0300 > >> From: Konstantin Kharlamov > >> Cc: Eli Zaretskii , 35062@debbugs.gnu.org > >> > > I don't think I follow: Emacs's search commands do highlight the > > matches, and we also have symbol-search commands ("M-s _" etc.), so > > what exactly is missing? > > See: to any search a word in Emacs you have to either type it manually > or copy-paste it. And then if you get unlucky to have next match > offscreen, the search gonna carry currently visible portion of text > away. > > In other editors and IDEs it's implemented instead by selecting a word, > which makes the editor to highlight matches. "M-s ." will highlight matches for the symbol at point, without even requiring you to select that symbol. > That's similar to what highlight-symbol.el is doing: you put a caret > over a text, and after a short timeout (IIRC you can't set timeout > to 0 as it introduces lags to Emacs) it highlights visible matches > of the symbol under the caret. And then, if you want to, you can > press a hotkey to lock the highlight. So you want to avoid typing "M-s .", is that right? But selecting a symbol will need more keystrokes (except for very short symbols), so where's the gain in that?