From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Mon, 15 Sep 2008 12:35:58 +0200 Message-ID: <38b2ab8a0809150335jad5ab80j44fdbf68c4f55d93@mail.gmail.com> References: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221475129 26727 80.91.229.12 (15 Sep 2008 10:38:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 10:38:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: cfajohnson@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 12:39:42 2008 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.50) id 1KfBUW-00017z-2w for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 12:39:36 +0200 Original-Received: from localhost ([127.0.0.1]:47229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfBTV-00071F-5H for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 06:38:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfBR9-0006b8-35 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 06:36:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfBR5-0006Xq-5d for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 06:36:04 -0400 Original-Received: from [199.232.76.173] (port=53635 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfBR2-0006WV-3c for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 06:36:01 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.175]:3220) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfBR1-0003qa-O0 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 06:35:59 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so990904uge.17 for ; Mon, 15 Sep 2008 03:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=2HhDUy5QjjJc/mz6HG/PBkdmyPTHWxuyWc5y/Kix858=; b=REAHRe+UF5xeqQNfC2QBCf98jjJr7zi1pXxszU6Vo5xowf5GlE8/eJRyi7O7hLqYzE 9mcuBOeYSksTy93vQATCS/nx/QPN6V1ZxmYG5MxahY9ZHWJgWesFTdIlyFIpGoOAQqVp NBWJ08FBm1Y82tZry2Y378OVpq64IfWtrO3+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VK/FnkOTAltPKQpSgiqIced9/vg0MII8Alzzz7XpxIMHy6c9kskBeIDvPAghU2eM84 5Q3UCoye1MrjDNvzUX3AkFp+KB3YUHhevMCmYGss/vbEs3MByyzffcfHaYlkqLo6IAqg Iyh+YvV00Ua9cueFJfAQWuv4/xL4F0y0xtFGQ= Original-Received: by 10.67.93.16 with SMTP id v16mr3042770ugl.1.1221474958665; Mon, 15 Sep 2008 03:35:58 -0700 (PDT) Original-Received: by 10.67.22.17 with HTTP; Mon, 15 Sep 2008 03:35:58 -0700 (PDT) In-Reply-To: <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57615 Archived-At: On Mon, Sep 15, 2008 at 8:32 AM, Francis Moreau wrote: > On Sun, Sep 14, 2008 at 10:27 PM, Chris F.A. Johnson > wrote: >> On 2008-09-14, Francis Moreau wrote: >>> no this paste the whole command line, I'm asking for the last _argument_ >> >> (defun last-arg () "" (interactive) >> (comint-previous-input 1) >> (search-backward " ") >> (kill-line) >> (comint-next-input 2) >> (yank) >> ) >> > > Even though I don't speak (yet) elisp, it does seem that if I call > last-arg() several times then this yanks always the same arg... > > Try in an xterm to use M-. to see what I'm talkng about. > Actually I'm wondering why not doing in M-x shell a char mode present in M-x term shell. I found it very convenient. -- Francis