From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Does eshell have something similar to bash's yank-last-arg Date: Wed, 05 Mar 2003 08:11:23 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84of4qfftw.fsf@lucy.is.informatik.uni-duisburg.de> References: <1c58a7c3.0303041351.27e20634@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046852194 28243 80.91.224.249 (5 Mar 2003 08:16:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 08:16:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 09:16:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qU4n-0007LH-00 for ; Wed, 05 Mar 2003 09:16:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qU4B-0007Qm-0G for gnu-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2003 03:15:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1046852095 61771011 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:jRQw9OJl0it5TQ6LYd4kc1GSWks= Original-Xref: shelby.stanford.edu gnu.emacs.help:110836 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7337 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7337 brakjoller@hotmail.com (Barman Brakjoller) writes: > Does eshell have something similar to bash's yank-last-arg: I use this: (defun kai-eshell-insert-last-word (n) (interactive "p") (insert (car (reverse (split-string (eshell-previous-input-string (- n 1))))))) Then I add a hook to bind the above to M-.. -- A preposition is not a good thing to end a sentence with.