From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: simple editor required Date: 07 Jun 2003 11:06:49 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5ly90edj06.fsf@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055002330 21513 80.91.224.249 (7 Jun 2003 16:12:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2003 16:12:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 18:12:09 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 19OgIb-0005aq-00 for ; Sat, 07 Jun 2003 18:12:09 +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 19OgCq-0004TI-5s for gnu-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2003 12:06:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!canoe.uoregon.edu!news.wss.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: rum.cs.yale.edu Original-X-Trace: news.wss.yale.edu 1054998414 12609 128.36.229.169 (7 Jun 2003 15:06:54 GMT) Original-X-Complaints-To: news@news.wss.yale.edu Original-NNTP-Posting-Date: Sat, 7 Jun 2003 15:06:54 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 7 Jun 2003 11:06:49 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:114273 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:10767 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10767 > The second problem I encountered was that in the version where > text mode actually took effect, was that it inserted spaces instead > of leaving the line empty, when I inserted a blank line. I haven't > seen emacs do that before, even when it used to work on an older > version. But this is perhaps a case of faulty memory. I believe that's faulty memory. Emacs has to insert spaces in order to place the cursor at the proper place. But newline-and-indent does delete trailing space before inserting the newline, so that should work as long as you bind RET to newline-and-indent (which you obviously would like to see be the default). > The third problem I encountered was when trying to manually > clean up the blanks, ctrl-k would not simply delete the blanks on > the line, it would delete the entire line. > Someone has suggested putting: > (setq kill-whole-line nil) > to get around this problem. I didn't have to do that in other > versions of emacs, it was the basic standard consistent behaviour. As far as I know, C-k has always behaved like that (at least since version 18.59): it deletes either "[ \t]*\n" or ".*[^ \t\n].*". Basically, Emacs encourages you to ignore trailing whitespace and consider it as non-present. You can ask Emacs to automatically erase all trailing whitespace when you save the file, although I don't think that was a standard feature feature before Emacs-21, so it probably won't help you. >> Try indented-text-mode instead. indented-text-mode is the same as text-mode since Emacs-20, so it will only make a difference if you ever use Emacs-19. > 2. Block-marking not to be destroyed by ctrl-f and esc-g. Xemacs > 20.4 has a you-beaut highlighting of the block, which is great, but > I'd trade it any day for the ability to do a find/goto to position to > end of block. Like emacs 20.7.1. And like the last time I used a > version of xemacs, IIRC. I don't know why some people think it > is appropriate to forget the marker, seems pretty basic to me, but > besides, other emacs (like 20.7.1) don't forget the marker. For XEmacs complaints, go to comp.emacs.xemacs, this an Emacs group. > 3. DEL to delete. Just like xemacs 20.4 with appropriate .emacs entry. You can try (define-key function-key-map [delete] [?\C-d]), but be warned that on some systems, the backspace key supposedly sends a `delete' event. Also it won't do anything on text-terminals where there's simply no agreement as to what key corresponds to DEL (aka C-?) or to C-h, so that there's no generic answer. > I consider these to be extremely basic things that should be provided Everyone has his own definition of normality. Stefan