From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40137 Path: main.gmane.org!not-for-mail From: "Matt Armstrong" Newsgroups: gmane.emacs.gnus.general Subject: Re: header-sensitive beginning-of-line? Date: Thu, 08 Nov 2001 22:34:27 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <87g07otsm4.fsf@squeaker.lickey.com> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175732 31606 80.91.224.250 (21 Oct 2002 04:48:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:48:52 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 22069 invoked from network); 9 Nov 2001 05:35:30 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 9 Nov 2001 05:35:30 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1624Jl-00084T-00; Thu, 08 Nov 2001 23:35:05 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 08 Nov 2001 23:34:46 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id XAA02810 for ; Thu, 8 Nov 2001 23:34:34 -0600 (CST) Original-Received: (qmail 22051 invoked by alias); 9 Nov 2001 05:34:48 -0000 Original-Received: (qmail 22046 invoked from network); 9 Nov 2001 05:34:48 -0000 Original-Received: from hank.lickey.com (64.81.100.235) by gnus.org with SMTP; 9 Nov 2001 05:34:48 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id 61011EE35 for ; Thu, 8 Nov 2001 22:34:33 -0700 (MST) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id AB84BBD48 for ; Thu, 8 Nov 2001 22:34:32 -0700 (MST) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id 187CEBD38; Thu, 8 Nov 2001 22:34:31 -0700 (MST) Mail-Copies-To: never Original-To: Benjamin Rutt Mail-Followup-To: rutt+news@cis.ohio-state.edu, ding@gnus.org In-Reply-To: (Benjamin Rutt's message of "Thu, 08 Nov 2001 19:47:57 -0500") Original-Lines: 40 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu) X-Delivery-Agent: TMDA v0.41/Python 1.5.2 (linux2) X-Virus-Scanned: by AMaViS snapshot-20010714 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40137 Benjamin Rutt writes: > It might be nice if message-mode had a way to allow you to navigate > point to the beginning of the header value. This would make it easier > to trim out values if you typed in the wrong email address, or > newsgroup, or subject line. For example: > > Subject: C-a currently moves point to beginning of line > ^ > ^ > ^ > > Subject: WIBNI the cursor could end up after the ': '? > ^ > ^ > ^ > > Maybe message-mode could have a function named message-bol which would > place point just after the ': '. (Similar to how C-c C-a > (comint-bol-or-process-mark) operates in shell-mode.) Maybe we could > define C-a in message-mode to run a new function `message-bol' which, > if point was in the header, would navigate to just past the ': '. Two > consecutive invocations of `message-bol' could navigate point to the > true BOL. > > Any thoughts? I like the idea. I'm not sure if it should be the default -- people expect C-a to behave a certain way. Unfortunately C-c C-a is already taken by mml-attach-file. But I am frequently doing C-a M-f M-f M-b to do what your message-bol does. Of course, if point is already at the sweet spot, message-bol should then go to the real beginning of line. -- matt