From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: simple editor required Date: Tue, 24 Jun 2003 09:16:15 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <844r2ggd34.fsf@lucy.is.informatik.uni-duisburg.de> References: <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> <84wufgke19.fsf@lucy.is.informatik.uni-duisburg.de> <84isqwlxf8.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056443900 28900 80.91.224.249 (24 Jun 2003 08:38:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2003 08:38:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 10:38:08 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 19UjJX-0007U9-00 for ; Tue, 24 Jun 2003 10:38:07 +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 19UjIb-0007uz-9K for gnu-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2003 04:37:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1056443529 27666521 134.91.35.216 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ya+bCYFrrzPCtGWPITVL5CovJ4E= Original-Xref: shelby.stanford.edu gnu.emacs.help:114678 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:11168 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11168 "Paul Edwards" writes: > Ok, will try. But actually, I've thought of a better way of > abstracting it that will make it more useful. If RET could > be newline-and-indent except when I am positioned at the > beginning of the line (in which case it should be newline > only) then that is what would be ideal. > > Can you think of a way to do that? (defun pe-newline-and-maybe-indent () (interactive) (if (bolp) (newline) (newline-and-indent))) -- This line is not blank.