Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!kuling!christer From: christer@kuling.UUCP (Christer Johansson) Newsgroups: net.emacs Subject: Re: The one vi feature I miss, now for GNUemacs Message-ID: <898@kuling.UUCP> Date: Thu, 20-Feb-86 21:58:14 EST Article-I.D.: kuling.898 Posted: Thu Feb 20 21:58:14 1986 Date-Received: Mon, 24-Feb-86 07:26:00 EST References: <695@mprvaxa.UUCP> Reply-To: christer@kuling.UUCP (Christer Johansson) Followup-To: net.emacs Organization: (Studying CS at the) University of Uppsala, Sweden Lines: 22 In <695@mprvaxa.UUCP> of Tue, 18-Feb-86 05:35:17 GMT tbray@mprvaxa writes: >(defun buffer-stats () > ... > (count-lines 1 chars) This is wrong. As the first character of the buffer is character one, the last must be character (1+ (buffer-size)). The code should be: (count-lines 1 (1+ chars)) When the empty buffer doesn't need special handling, the following is unnecessary > (if (= chars 0) > (message "%s: 0 lines, 0 characters" (buffer-name)) Changing find-file-hook in a load-file can probably lead to some confusion if it was set before. It's probably best to let the user do that himself. -- SMail: Christer Johansson UUCP: {seismo,seismo!mcvax}!enea!kuling!christer OR Sernandersv. 9:136 christer@kuling.UUCP S-752 63 Uppsala Phone: Int. +46 - 18 46 31 54 SWEDEN Nat. 018 - 46 31 54