From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: "strace emacs" reveals emacs always active Date: Wed, 05 Jul 2006 06:26:53 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1152070026 27781 80.91.229.2 (5 Jul 2006 03:27:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 03:27:06 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 05 05:27:04 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fxy2W-0005DD-7Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jul 2006 05:27:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxy2V-0003YW-LQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jul 2006 23:26:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fxy2T-0003XA-OL for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2006 23:26:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fxy2S-0003Wi-05 for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2006 23:26:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxy2R-0003Wf-RH for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2006 23:26:55 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FxyGG-0003lk-5f for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2006 23:41:12 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-56-93.inter.net.il [80.230.56.93]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id FCL17383 (AUTH halo1); Wed, 5 Jul 2006 06:26:52 +0300 (IDT) Original-To: Dan Jacobson In-reply-to: (message from Dan Jacobson on Wed, 05 Jul 2006 03:36:02 +0800) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15195 Archived-At: > From: Dan Jacobson > Date: Wed, 05 Jul 2006 03:36:02 +0800 > > Comparing > $ strace emacs > vs. > $ strace vi > one finds emacs never sleeps. Lots of gettimeofday calls. That's Emacs idle loop in action. It's normal: how else would Emacs know whether it has something to do? In addition, depending on what you have in your .emacs init file, some features, such as display-time, require more system calls inside the idle loop. > Yes, emacs isn't making a blip on my CPU meter So what's your complaint? > but still I > bet it is doing something that miserly me probably doesn't need it to do. Why do you need to assume that? Why not assume that Emacs does only what it needs to do, and nothing else?