From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: Writing a Lisp to show the capacity of the battery of the laptop Date: Tue, 22 Feb 2011 18:25:55 +0100 Message-ID: References: <87r5b1phrr.fsf@gmail.com> <87d3mkc8rf.fsf@eps142.cdf.udc.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1298395608 6898 80.91.229.12 (22 Feb 2011 17:26:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 17:26:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alberto Luaces Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 18:26:42 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Prw0X-0004fq-VH for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 18:26:42 +0100 Original-Received: from localhost ([127.0.0.1]:46215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prw0X-00067i-Di for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 12:26:41 -0500 Original-Received: from [140.186.70.92] (port=56362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prw0B-00067Y-1J for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 12:26:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Prw07-0001i5-W6 for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 12:26:17 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:58068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Prw07-0001hc-Se for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 12:26:15 -0500 Original-Received: by iyf13 with SMTP id 13so4040569iyf.0 for ; Tue, 22 Feb 2011 09:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=UfsJ29O3MDuCW/w6ccXepGoAylzgPhT+5tusGoGhEnI=; b=dH4fbLTlDwpHchau+nGxldDMmxoI9UwGvrewiKsLvRR9VxiSnuJuNXkqWmAvjvr/KJ /J6y3Sez7rANevOzJWvry/j36A+g/vbUcn0VnRJd9yjgYB2umox7up/I2xD/dyNmxNI8 UWyPtFQ0Wi/o90vQxRSWMxiFEg/lSNVBWwst8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=NxdE4LkGW39iPGkkF2/6X2RDMSZ4oz2qa9dqbCAOtrTLCe3PLfScGJF/LcbwZhrVbO eTIGJ4JndevrGYUS7cMnybr9hLqyD6XzuNo5rR3xtEI7a/RFko/RXH48FVatSf8O5roQ l4ln3NArlu4E0Ljc4COOGh+0uYa8ki0OSQX/Q= Original-Received: by 10.231.144.21 with SMTP id x21mr2292224ibu.30.1298395575142; Tue, 22 Feb 2011 09:26:15 -0800 (PST) Original-Received: by 10.231.15.129 with HTTP; Tue, 22 Feb 2011 09:25:55 -0800 (PST) In-Reply-To: <87d3mkc8rf.fsf@eps142.cdf.udc.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79339 Archived-At: 2011/2/22 Alberto Luaces : > Deniz Dogan writes: > >> Your code is unorganized and buffer-centric for no reason. > > I'm also an elisp newbie and were doing the same buffer fiddling, since > I didn't know that `shell-command' returned a string with the output > until I saw your example. > > Is there any existing convention about this? I can't find that > information in an explicit form in that function documentation. > Heh, my bad, it doesn't return a string. Ignore me. -- Deniz Dogan