From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ed Avis Newsgroups: gmane.emacs.bugs Subject: bug#28343: 24.5; isearch highlighting slow - suppress for single space character Date: Mon, 4 Sep 2017 10:53:21 +0100 Message-ID: <863782u6we.fsf@waniasset.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504518973 24827 195.159.176.226 (4 Sep 2017 09:56:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2017 09:56:13 +0000 (UTC) To: 28343@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 04 11:55:55 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doo6Z-00054C-5Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 11:55:43 +0200 Original-Received: from localhost ([::1]:48784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doo6g-00088y-7U for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 05:55:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doo6J-00081t-TP for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:55:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doo5u-0005tZ-96 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:55:27 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doo5u-0005tH-3d for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1doo5t-0002An-P7 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ed Avis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Sep 2017 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.15045188428276 (code B ref -1); Mon, 04 Sep 2017 09:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Sep 2017 09:54:02 +0000 Original-Received: from localhost ([127.0.0.1]:47708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doo4v-00029P-SB for submit@debbugs.gnu.org; Mon, 04 Sep 2017 05:54:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doo4t-00028v-Jh for submit@debbugs.gnu.org; Mon, 04 Sep 2017 05:54:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doo4h-00054n-M7 for submit@debbugs.gnu.org; Mon, 04 Sep 2017 05:53:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doo4h-00054h-IW for submit@debbugs.gnu.org; Mon, 04 Sep 2017 05:53:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doo4Z-0006xt-4l for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:53:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doo4R-0004v3-L5 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:53:39 -0400 Original-Received: from mail1.bemta6.messagelabs.com ([193.109.254.107]:25473) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doo4R-0004rC-Aq for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 05:53:31 -0400 Original-Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id 67/8C-03093-7922DA95; Mon, 04 Sep 2017 09:53:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsWi+sWpUne60tp IgxfnGC2+H6hyYPRom2YWwBjFmpmXlF+RwJpx5PlRtoI/mhXds5vYGxhPqHQxcnEICaxhlHjd /YYdznn56QAThHMAyNm9FijDycEmoCjRNmcakM3BISIgLXGyjwUkLCzgJ7HnbztYCYuAisSrf RdZQWxeAS2JpvfTWCBsQYmTM5+A2cwCEhIHX7xgBrGFBOQk7rT9Yp7AyD0LSdksJGULGJlWMa oXpxaVpRbpmuslFWWmZ5TkJmbm6BoamOnlphYXJ6an5iQmFesl5+duYgSGAgMQ7GCcedn/EKM kB5OSKO/9x2sihfiS8lMqMxKLM+KLSnNSiw8xynBwKEnw7lRcGykkWJSanlqRlpkDDEqYtAQH j5II70OQNG9xQWJucWY6ROoUoyvHhtXrvzBxHHi7C0g+ebP9NxNHy1sQ+eXptD9MQix5+XmpU uK8ZSDNAiDNGaV5cKNhEXWJUVZKmJcR6FghnoLUotzMElT5V4ziHIxKwrztIFN4MvNK4C54BX QcE9BxVS/XgBxXkoiQkmpgXNSXU34rTm3Sa8ONbJUxsa2xxRwPnJfon5MJTeuaaHxk+7TExCu d1dtPrFRvT8y7WL6sSe73Opu2v6t+PuW7Mn/RgbTVho03zW+pNTIr/tyvwf38cuum0jg3nstV UrVWHM8P7Je2fpu9Jbv3nJCNEW+ISeyaGraXpyV/RjxdeUD98OW60Bf3lViKMxINtZiLihMBW nG386MCAAA= X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-10.tower-27.messagelabs.com!1504518806!91696332!1 X-Originating-IP: [37.244.66.121] X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=waniasset.com,-,- X-VirusChecked: Checked Original-Received: (qmail 44089 invoked from network); 4 Sep 2017 09:53:27 -0000 Original-Received: from unknown (HELO smtp.waniasset.com) (37.244.66.121) by server-10.tower-27.messagelabs.com with AES256-SHA encrypted SMTP; 4 Sep 2017 09:53:27 -0000 Original-Received: from WCL-EX13MBX-DR.wcl.local (10.45.7.24) by WCL-EX13MBX.wcl.local (10.45.7.22) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 4 Sep 2017 10:53:24 +0100 Original-Received: from WCL-EX13MBX.wcl.local (10.45.7.22) by WCL-EX13MBX-DR.wcl.local (10.45.7.24) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 4 Sep 2017 10:53:21 +0100 Original-Received: from wcl-linux04.wcl.local (10.45.7.86) by WCL-EX13MBX.wcl.local (10.45.7.22) with Microsoft SMTP Server (TLS) id 15.0.1263.5 via Frontend Transport; Mon, 4 Sep 2017 10:53:21 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:136569 Archived-At: Run Emacs in a fairly large terminal, say 200x200 characters. Go to the end of a buffer with some text in it (long enough to fill the screen) and do C-r SPACE. This is an isearch backwards for the space character. If you have highlighting turned on, Emacs then starts highlighting backwards all the space characters in the buffer. But this can be slow, a noticeable few seconds even on a fast machine. (I think it depends on the vagaries of memory management and possibly Lisp compiling, since it's not always quite that bad; a second attempt takes only about half a second. But still it seems a long time.) A small tweak to isearch would suppress the highlighting when what has been typed so far is just a space character. If the user types space and then C-s or C-r again, to indicate that he or she really does want to search for single spaces, then you can highlight at that point of course. In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Wrote /home/eda/git_working/repos/linux/crontab.tradingsystems.wcl-linux-live Finding changes in /home/eda/git_working/repos/linux/crontab.tradingsystems.wcl-linux-live...done Mark set Press C-c C-c when you are done editing. Enter a change comment. Type C-c C-c when done Checking in /home/eda/git_working/repos/linux/crontab.tradingsystems.wcl-linux-live...done To git@wcl-git01.wcl.local:dev/repos.git 1c5ba2f..fe19716 master -> master Mark set [5 times] Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail smerge-mode pcmpl-x sh-script smie executable dired-aux dired hideshow etags tabify imenu man warnings rect ediff-ptch ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff ispell edmacro kmacro vc-bzr vc-sccs vc-svn vc-cvs vc-rcs python json mule-util log-view nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok log-edit message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log diff-mode easy-mmode vc vc-dispatcher cus-edit wid-edit perl-mode dabbrev help-mode cus-start cus-load misearch multi-isearch vc-git sql easymenu view ffap thingatpt url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars pcmpl-unix xterm time-date paren server compile shell pcomplete comint ring ansi-color tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 3566802 246952) (symbols 48 28992 0) (miscs 40 1061 7737) (strings 32 83808 42796) (string-bytes 1 3341365) (vectors 16 31594) (vector-slots 8 1520686 341468) (floats 8 437 1264) (intervals 56 500006 936) (buffers 960 186) (heap 1024 138763 8917))