From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Helm slows frame startup (was Re: Slow frame-startup) Date: Sun, 05 Oct 2014 11:35:47 -0400 Message-ID: <87y4sujzqk.fsf@gmail.com> References: <87tx3pnegd.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412523374 29715 80.91.229.3 (5 Oct 2014 15:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 15:36:14 +0000 (UTC) To: emacs list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 17:36:06 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xanqu-00085f-7y for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 17:36:04 +0200 Original-Received: from localhost ([::1]:47776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xanqt-0001xf-S8 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 11:36:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xanqi-0001xV-Cd for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:35:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xanqh-0005Ys-8c for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:35:52 -0400 Original-Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:41627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xanqh-0005Yj-3X for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:35:51 -0400 Original-Received: by mail-yh0-f51.google.com with SMTP id 29so1453832yhl.10 for ; Sun, 05 Oct 2014 08:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=RAY1enjtkiDyxvD5l6BsRMjl2higxD+QBQGr0PRh2Ww=; b=rBoZthRLpYJSxVzjLsqyrmFUPf4vZ9wFXgwuz+CXDCSra3a/ZITb9KI/pHJchy2gqU g7CMrmmCME4JMKRjkaomWSsLn8gKWoWUDWIP2uLCyXei9AuOmN02bnrEu31Pr31JuIW2 Ai5RSGRegDZ7JQLzTUX+eoDR/EMJAPK9F8QYMkYgipj58wTQzI4ierMH+lva7Y88rZ+q 55Rv9XZnBYy0I00gFyxeA3ph1l0sNhWxU3Jn02MZGkCROG7hyvrtWudzidrd3ETtDD7p E08j43tmA8A+h+wXzYwxudxpisvPmP1WQV06BRE63PujJ8ku50TTDm9RqhRetHPzaieU XM/w== X-Received: by 10.236.223.74 with SMTP id u70mr3513700yhp.154.1412523349980; Sun, 05 Oct 2014 08:35:49 -0700 (PDT) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id v42sm5862520yhn.31.2014.10.05.08.35.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Oct 2014 08:35:49 -0700 (PDT) In-Reply-To: <87tx3pnegd.fsf@gmail.com> (Tory S. Anderson's message of "Tue, 30 Sep 2014 14:36:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100285 Archived-At: Well, it's verified for me; running emacs client, new frames (via `C-x 5 2` or any other new-frame method) take 2-3 times longer to start if Helm is enabled. Does anyone know a fix? My .emacs loads a helm-config.el containing the following: ;;;; ;; HELM (global-set-key (kbd "C-c h") 'helm-command-prefix) (require 'helm) (require 'helm-config) ;(require 'helm-eshell) (require 'helm-files) (require 'helm-grep) ;; The default "C-x c" is quite close to "C-x C-c", which quits Emacs. ;; Changed to "C-c h". Note: We must set "C-c h" globally, because we ;; cannot change `helm-command-prefix-key' once `helm-config' is loaded. (global-unset-key (kbd "C-x c")) (global-set-key (kbd "M-x") 'helm-M-x) (global-set-key (kbd "M-y") 'helm-show-kill-ring) (global-set-key (kbd "C-x C-f") 'helm-find-files) (global-set-key (kbd "C-x b") 'helm-mini) (define-key helm-map (kbd "") 'helm-execute-persistent-action) ; rebihnd tab to do persistent action (define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal (define-key helm-map (kbd "C-z") 'helm-select-action) ; list actions using C-z (define-key helm-grep-mode-map (kbd "") 'helm-grep-mode-jump-other-window) (define-key helm-grep-mode-map (kbd "n") 'helm-grep-mode-jump-other-window-forward) (define-key helm-grep-mode-map (kbd "p") 'helm-grep-mode-jump-other-window-backward) (when (executable-find "curl") (setq helm-google-suggest-use-curl-p t)) (setq helm-quick-update t ; do not display invisible candidates helm-split-window-in-side-p t ; open helm buffer inside current window, not occupy whole other window helm-buffers-fuzzy-matching t ; fuzzy matching buffer names when non--nil helm-move-to-line-cycle-in-source t ; move to end or beginning of source when reaching top or bottom of source. helm-ff-search-library-in-sexp t ; search for library in `require' and `declare-function' sexp. helm-scroll-amount 8 ; scroll 8 lines other window using M-/M- helm-ff-file-name-history-use-recentf t) (helm-mode 1) (add-to-list 'winner-boring-buffers "*helm M-x*") (add-to-list 'winner-boring-buffers "*helm mini*") (add-to-list 'winner-boring-buffers "*Helm Completions*") (add-to-list 'winner-boring-buffers "*Helm Find Files*") (add-to-list 'winner-boring-buffers "*helm mu*") (add-to-list 'winner-boring-buffers "*helm mu contacts*") (add-to-list 'winner-boring-buffers "*helm-mode-describe-variable*") (add-to-list 'winner-boring-buffers "*helm-mode-describe-function*") ;;;; torys.anderson@gmail.com (Tory S. Anderson) writes: > I use emacs-client, and new frames often. Lately, however, I've noticed that it can take up to 5 seconds for a new frame to start up. There seems to be work going in to loading Helm completion each time, so I've disabled helm for a while to see how the performance is. But it has me thinking; what other things (say, in your .emacs file) can contribute to slow frame start-ups with an already-running emacs/emacs-server instance?