From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Paul Edwards" Newsgroups: gmane.emacs.help Subject: Re: simple editor required Date: Fri, 20 Jun 2003 10:13:36 GMT Organization: BigPond Internet Services (http://www.bigpond.net.au) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8465nduadj.fsf@lucy.is.informatik.uni-duisburg.de> <5lfzmgbrio.fsf@rum.cs.yale.edu> <84el1zcze6.fsf@lucy.is.informatik.uni-duisburg.de> <841xxzto54.fsf@lucy.is.informatik.uni-duisburg.de> <5lu1aqcev2.fsf@rum.cs.yale.edu> <84n0git5vn.fsf@lucy.is.informatik.uni-duisburg.de> <844r2opsuy.fsf@lucy.is.informatik.uni-duisburg.de> <84r85ry9ft.fsf@lucy.is.informatik.uni-duisburg.de> <84vfv2ulf7.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056104285 12636 80.91.224.249 (20 Jun 2003 10:18:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2003 10:18:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 12:18:04 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 19TIxl-0003Gj-00 for ; Fri, 20 Jun 2003 12:17:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TIwO-00009Y-M3 for gnu-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2003 06:16:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!propagator2-maxim!feed-maxim.newsfeeds.com!news.moat.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-NNTP-Posting-Host: 144.132.167.28 Original-X-Complaints-To: abuse@bigpond.net.au Original-X-Trace: news-server.bigpond.net.au 1056104016 144.132.167.28 (Fri, 20 Jun 2003 20:13:36 EST) Original-NNTP-Posting-Date: Fri, 20 Jun 2003 20:13:36 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:114602 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:11094 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11094 "Kai Großjohann" wrote in message news:84vfv2ulf7.fsf@lucy.is.informatik.uni-duisburg.de... > "Paul Edwards" writes: > > > indent-line-function's value is > > indent-relative-maybe > > Local in buffer .emacs; global value is > > indent-to-left-margin > > Okay, so indent-relative-maybe has the effect at the beginning of the > file. Put point at the beginning of the buffer and invoke M-x > indent-relative-maybe RET, you'll see where the RET behavior comes > from. > > It's now clear that you want a function to use as the value of > indent-line-function that works like indent-relative-maybe in some > cases but not in others. > > What should happen in which cases? Ok, the problem as I described is more generic than that. After having used it for more I found that the following: aaaa bbbb cccc If I am at the beginning of the "cccc" line and I hit enter, emacs is inspired to indent cccc to be under bbbb. I don't want that, I want cccc to stay where it is. If I wanted cccc to be indented I would do something, e.g. press tab or hit spaces. I expect that in the above, if I am at the end of aaaa and hit enter, then a blank line is inserted and I am positioned under the first "a". This already happens. As I continue to type and hit enter, I expect the cursor to stay at that same indentiation level. However, if I break the sequence of non-blank lines, by leaving a blank line, then I don't mind emacs giving up and deciding to leave me at the left hand side until I've finished entering blank lines, and then the obligation being on me to press spaces to start the indentation sequence again. If emacs was super smart and let me hit enter without changing the indent level, so long as I didn't do anything strange, such as a cursor movement, then that would be great. But if it doesn't have that feature, that's fine too. Micro-emacs works as I described above, there are no surprises that I am aware of. BFN. Paul.