From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Automatically move cursor to end of shell-mode buffer on M-p / M-n Date: Tue, 24 Feb 2015 19:04:56 -0800 Message-ID: References: <87y4nmn5gb.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424833587 12452 80.91.229.3 (25 Feb 2015 03:06:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2015 03:06:27 +0000 (UTC) Cc: Andrew Pennebaker , Robert Thorpe To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 04:06:25 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YQSIp-0008AG-AY for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2015 04:06:23 +0100 Original-Received: from localhost ([::1]:52578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQSIo-0000lv-HM for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2015 22:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQSHm-0007u5-6T for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 22:05:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQSHl-0007Vf-H2 for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 22:05:18 -0500 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:50780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQSHl-0007VQ-3o for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 22:05:17 -0500 Original-Received: by mail-oi0-f43.google.com with SMTP id z81so1042507oif.2 for ; Tue, 24 Feb 2015 19:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WcKtddx2Np4YEwPzVIm/3L9iMEcmVuNqz17bFuAXVQ4=; b=XRYt9Tbf6cU7dh/FF/sS/GYEys2KeH45hSsn+w1Y+VNyC4h8SgSWutuX7DORMtJDBk DVWEkMbZXw3weY68PC9HP1C/Fyvl2qdBqqINB6Bx9/xZL9nf+Od8ChtSarcXg2MOFP0a 75Sp++2amE49B7sraGQYwEUgZAnwF9NtPnNJ0R2Nd1iZoejYrSvN8FAZCCtDNZqOEYbo BChbKGnCx461qKujlV2PNK4EAx7LCM8jOrE8TZ2wkyNcZrDWMO5tk4YmuLnejAVtTAoo 2aat5TD7D09c9nctQG128ORNMRJqxpmC28RVh9gTgWrlnV3iBN+TaU0ZCi/vmJREAgNY nP4A== X-Received: by 10.202.178.131 with SMTP id b125mr686344oif.80.1424833516296; Tue, 24 Feb 2015 19:05:16 -0800 (PST) Original-Received: by 10.76.12.162 with HTTP; Tue, 24 Feb 2015 19:04:56 -0800 (PST) In-Reply-To: <87y4nmn5gb.fsf@robertthorpeconsulting.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102880 Archived-At: >> As a shell user, I want shell-mode M-p / M-n to automatically move my >> cursor to the shell prompt, so that shell-mode behaves more intuitively. > > Doesn't C-a do that? It does for me. I believe Andrew is thinking of the situation where you're on a different (i.e. previous) line. This sometimes happens to me too, typically after I've done an isearch to look at some earlier output. I'm trying out Andrew's idea and so far I like it. -- john