From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Newsgroups: gmane.emacs.help Subject: Re: usability issue Date: 16 Jan 2003 19:25:58 +1300 Organization: Attica Communications Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87bs2tyk4x.fsf@wesley.springies.com> Reply-To: gr1dl0ck@deviantart.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042698318 11394 80.91.224.249 (16 Jan 2003 06:25:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 06:25:18 +0000 (UTC) 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 18Z3Sm-0002xe-00 for ; Thu, 16 Jan 2003 07:25:16 +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 18Z3TP-0002Pa-04 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 01:25:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: news.tranzpeer.net Original-X-Trace: lust.ihug.co.nz 1042698301 12429 202.180.64.19 (16 Jan 2003 06:25:01 GMT) Original-X-Complaints-To: abuse@ihug.co.nz Original-NNTP-Posting-Date: Thu, 16 Jan 2003 06:25:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Cache-Post-Path: cereal.attica.net.nz!unknown@p220.nas1.chc.callplus.net.nz X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Original-Xref: shelby.stanford.edu gnu.emacs.help:109006 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:5534 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5534 David Kastrup writes: > kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > > > "Ehud Karni" writes: > > > > > Because beginning-of-line and end-of-line are more useful and we > > > want to use only 1 key for these functions. > > > > I once wrote something that allows you to hit once to go to > > beginning of line, twice in a row to go to the beginning of the > > window, and thrice to go to the beginning of the buffer. > > > > The implementation sucks somewhat, I'm afraid. > > > > But I think the feature is good, so WIBNI this functionality came > > standard with Emacs? What do people think. > > I'd think beginning of window odious. I would recommend start of > line, start of section/defun, start of buffer. > > As to the implementation: I would recommend to make it stateless: the > implementation will simply check whether the cursor currently is at > the start of line/section and move to the beginning of the smallest > unit for which it is not yet already at the beginning. > > -- > David Kastrup, Kriemhildstr. 15, 44793 Bochum I saw this message and thought it would be an interesting (and useful) feature to code up, as I am attempting to learn elisp; i just don't know how to find if I'm at the beginning of a line. Is there a function; or does it need to be written specially? Cheers, Andrew