From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: Re: no yank-last-arg (bash: ESC .) for *shell* Date: Fri, 14 Jun 2002 12:57:26 GMT Organization: Global Online Japan // Exodus Communications KK. Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87znxyxbka.fsf@tc-1-100.kawasaki.gol.ne.jp> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024059625 16942 127.0.0.1 (14 Jun 2002 13:00:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 13:00:25 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Iqgi-0004P9-00 for ; Fri, 14 Jun 2002 15:00:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Iqge-0002u0-00; Fri, 14 Jun 2002 09:00:20 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17Iqdu-0002hJ-00 for ; Fri, 14 Jun 2002 08:57:30 -0400 Original-Received: from smtp01.fields.gol.com by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: smtp01.fields.gol.com [203.216.5.131]) id QQmtff22614 for ; Fri, 14 Jun 2002 12:57:31 GMT Original-Received: from nnrp.gol.com ([203.216.7.70]) by smtp01.fields.gol.com with esmtp (Magnetic Fields) id 17Iqdr-0003rT-00 for ; Fri, 14 Jun 2002 21:57:28 +0900 Original-Received: by nnrp.gol.com (8.10.0.Beta6/8.9.1/891-NEWS-P) id g5ECvQE11632; Fri, 14 Jun 2002 21:57:26 +0900 (JST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug System-Type: i686-pc-linux-gnu Original-Lines: 23 Original-NNTP-Posting-Host: 203.216.25.204 Original-X-Complaints-To: abuse@gol.com Original-X-Trace: nnrp.gol.com 1024059446 203.216.25.204 (Fri, 14 Jun 2002 21:57:26 JST) Original-NNTP-Posting-Date: Fri, 14 Jun 2002 21:57:26 JST X-Abuse-Complaints: abuse@gol.com Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2032 jidanni@deadspam.com (Dan Jacobson) writes: > Bug: emacs lacks yank-last-arg, a common bash keybinding. > > How do us bash "ESC ." habituated people rebind ESC . in a *shell* > window to do the bash thing (yank-last-arg) instead of find-tag? If you have a recent version of emacs (e.g., CVS), it's bound to `C-c .' in comint-derived modes (like shell-mode) -- I thought that `M-.' was too general a binding for it in emacs, even thought it's handy. The command name is `comint-insert-previous-argument'. If you want it bound to `M-.', you can do: (defun my-comint-mode-hook () (local-set-key "\M-." 'comint-insert-previous-argument)) (add-hook 'comint-mode-hook 'my-comint-mode-hook) Stir as necessary. -Miles -- Suburbia: where they tear out the trees and then name streets after them.