From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sujith Newsgroups: gmane.emacs.bugs Subject: bug#29889: 27.0.50; Slow visual selection Date: Fri, 29 Dec 2017 09:22:22 +0530 Message-ID: <87y3lmgphl.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514519537 22796 195.159.176.226 (29 Dec 2017 03:52:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 03:52:17 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 27.0.50 To: 29889@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 29 04:52:12 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 1eUliN-0005SD-Pe for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 04:52:12 +0100 Original-Received: from localhost ([::1]:52270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUlkL-0006Yn-8r for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 22:54:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUlkE-0006Yi-Q7 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUlkA-0000W9-L4 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:54:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUlkA-0000Ut-G0 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUlk9-0003SD-RP for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sujith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2017 03:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29889 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151451958213199 (code B ref -1); Fri, 29 Dec 2017 03:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2017 03:53:02 +0000 Original-Received: from localhost ([127.0.0.1]:55697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUljC-0003Qp-Cr for submit@debbugs.gnu.org; Thu, 28 Dec 2017 22:53:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUljA-0003QJ-6n for submit@debbugs.gnu.org; Thu, 28 Dec 2017 22:53:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUlj3-0006uj-Q9 for submit@debbugs.gnu.org; Thu, 28 Dec 2017 22:52:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUlj3-0006uH-MY for submit@debbugs.gnu.org; Thu, 28 Dec 2017 22:52:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUlj1-0006Jk-Pz for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:52:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUlix-0006nF-Nn for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:52:51 -0500 Original-Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:38163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUlix-0006m9-EX for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 22:52:47 -0500 Original-Received: by mail-pg0-x22f.google.com with SMTP id f12so20580401pgo.5 for ; Thu, 28 Dec 2017 19:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=uw3zWZby98H2f0uvnHjWrpD4i7InvaIyuqSfhmwaOuM=; b=kY4QIUQdCYRcYU7bK4maD96VZhUDplohkdB53Fqeq0uW8Z9zwEGWSD+0qlcmnhZ7of XfN9v6iRinzYT/dsmm8t2LXp+0UpfDSVtwFJRU9l9uLOGiUToY14WK9a0j4UGqmatQQ3 LEC3HFXfA5e+BxE0ZSr9gam5fPnzESMYnW1jJGXVDPaW+F3Oj3vtia73cUeCtla9tOB+ Spqn5rQiNGnHlH+Jc9LLsBTe1eBeXQ2d7UfqpphUCxglPRaP1axTKWM7fn1GVJtkN1wM 0VKW9rGqYInycXgE8+nR1Vq+FRkvOej/5+7flErzZvs1fmFPrulSqs8lTWhPTKk74K+u R8HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=uw3zWZby98H2f0uvnHjWrpD4i7InvaIyuqSfhmwaOuM=; b=DeFARjj+D0OY5suHObfMvdTtYKSz8cLNc9mKR4sxAdPYXSjiKTLKwPZE1UCqINV8Rx xdzQAm3UnbtYyjbMg3YF+4ENEID0l2WzVuTPDMU8v/K4FNTWtkdGsbHTVmTI9H3GWpBj yoTH8k07MNx/KXZiSrRzAAQouFgYrJSmIY6VqsdzWco+hWFvJH7YaXKiFpGjVaSNlLWI fcC5/0JMhKQpH5CgFRTI8T6mbUmmFrBvw4dAL5Sku/fkf1qpFzNWKY1awPcMqKj3dv7u Qa12rnb+UL+GZ7KcCE6WUts/RMUkRgktshLVAVrRL4VuWVW4n/alrwPYWT/zwbu0Qpep ehBw== X-Gm-Message-State: AKGB3mKe6BEw0ETyVW2YDTL5UwlyRy1gs+GKuBPK28QK42vlK6fWOtj4 j0sCKp2mq+r4SbIyz+CXcmcEjQAq X-Google-Smtp-Source: ACJfBouUeqLdx8s4WKAWnNJm+x27Hqf8xbv4Qr48C5F0UacYh8EpQQQbkIGj0SBAHdk301GiI954HQ== X-Received: by 10.99.181.24 with SMTP id y24mr29271927pge.270.1514519565345; Thu, 28 Dec 2017 19:52:45 -0800 (PST) Original-Received: from the-damned ([117.246.32.145]) by smtp.gmail.com with ESMTPSA id f67sm69719665pff.173.2017.12.28.19.52.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 19:52:44 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:141588 Archived-At: Visual selection of text becomes very slow and hogs the CPU in some cases. For example, open the file lisp/progmodes/vhdl-mode.el in the emacs codebase. And then, to reproduce this issue: * Scroll patiently to the bottom using C-v. (this is essential, jumping to the bottom doesn't seem to bring up this issue). * Set mark with C-SPC. * Go to the beginning with M-<. * Now move the cursor up and down. The selection is jerky and CPU usage is very high. I have tried this with emacs -Q and can see the issue. I am using the master branch. A profile report with this issue: - # 2499 53% - filter-buffer-substring 2499 53% - buffer-substring--filter 2499 53% - # 2499 53% apply 2499 53% - ... 2102 44% Automatic GC 2085 44% - minibuffer-complete 17 0% - completion-in-region 17 0% - completion--in-region 17 0% - # 17 0% - apply 17 0% - # 17 0% - completion--in-region-1 17 0% - completion--do-completion 17 0% - completion-try-completion 17 0% - completion--nth-completion 17 0% - completion--some 17 0% - # 17 0% - completion-basic-try-completion 17 0% - try-completion 17 0% - # 17 0% complete-with-action 17 0% + command-execute 87 1% + gui-set-selection 16 0% + redisplay_internal (C function) 3 0% If any more information is needed, please let me know ! In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.31) of 2017-12-28 built on the-damned Repository revision: b19df8ae78cdebe76512a70f76ec68677de41c11 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 Recent messages: mwheel-scroll: Beginning of buffer [6 times] scroll-down-command: Beginning of buffer Undo! uncompressing simple.el.gz...done Note: file is write protected uncompressing simple.el.gz...done Note: file is write protected scroll-down-command: Beginning of buffer [5 times] Quit [2 times] Making completion list... Configured using: 'configure --prefix=/usr --without-gconf --without-gsettings --without-selinux --without-gnutls --without-libsystemd --without-threads --without-dbus --with-x-toolkit=gtk2' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM NOTIFY ACL LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 LCMS2 Important settings: value of $LANG: en_IN.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t display-time-mode: t iswitchb-mode: t savehist-mode: t override-global-mode: t save-place-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: 1 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow flyspell ispell face-remap emacsbug cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-fns radix-tree find-func profiler dired-aux elec-pair mu4e-alert pcase ht s alert log4e rx notifications dbus xml gntp magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-collab ghub url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap let-alist magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils crm magit-popup log-edit pcvs-util add-log with-editor cl-extra help-mode async-bytecomp async shell pcomplete dash advice mu4e-contrib mu4e desktop frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view cal-menu calendar cal-loaddefs thingatpt browse-url comint ansi-color mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-vars message rmc puny format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta battery time dired-x dired dired-loaddefs edmacro kmacro xcscope ring zenburn-theme server iswitchb savehist bind-key easy-mmode saveplace finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded 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 inotify lcms2 dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 385737 51929) (symbols 48 34919 1) (miscs 40 105 376) (strings 32 75656 5006) (string-bytes 1 2341110) (vectors 16 54734) (vector-slots 8 1167949 49516) (floats 8 149 357) (intervals 56 42540 1784) (buffers 992 18))