From 672cb0b99045081fe6508c9212b50c97514f9b7a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 24 Dec 2013 20:47:13 +0900 Subject: [PATCH] do not echo tab info when page has not prepared yet --- _keysnail.js | 6 +++++- emacs.el | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 6406cda..2a26842 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -261,7 +261,11 @@ var echoTabInfo = (function(){ } function __display(msg){ - display.echoStatusBar(msg); + var doc = content ? content.document : document; + var dBody = doc.body; + if (dBody && !util.isFrameSetWindow(content)) { + display.echoStatusBar(msg); + } } function echo(){ diff --git a/emacs.el b/emacs.el index 6816c28..9fdc92c 100644 --- a/emacs.el +++ b/emacs.el @@ -1114,7 +1114,7 @@ If called intearctively, find word at point." (add-to-list 'load-path d))) -(when (lazy-load-eval 'gtags '(gtags-mode)) +'(when (lazy-load-eval 'gtags '(gtags-mode)) (add-hook 'gtags-mode-hook (lambda () (setq gtags-select-buffer-single t)