Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!uflorida!mephisto!prism!tynor From: tynor@prism.gatech.EDU (Steve Tynor) Newsgroups: comp.lang.eiffel Subject: Eiffel-mode bug? Keywords: GNU Emacs Eiffel-mode - wrong indentation Message-ID: <7233@hydra.gatech.EDU> Date: 19 Mar 90 16:25:39 GMT Reply-To: tynor@prism.gatech.EDU (Steve Tynor) Organization: Georgia Institute of Technology Lines: 43 I tried sending this directly to Bob Weiner, but it's bounced back 4 times... ------------------------------------------------------------------------------ I'm having trouble with the GNU Emacs Eiffel-mode recently posted by Bob Weiner: eiffel.el. Here's the version I'm using: ;; LAST-MOD: 6-Feb-90 at 18:43:30 by Bob Weiner The trouble is that features don't always indent properly. The following construct: > x is > -- a comment > deferred > end; will indent incorrectly. E.g.: > x is > -- a comment >deferred >end; This only seems to happen when there is a comment or trailing space on the 'is' line. I've checked the correctness of 'e-ends-with-is' - it seems to work properly (handles trailing spaces and comments). The problem appears to be that it is only called by the 'e-comment-indent' function - was it intended to be used by other line styles (e.g. the "deferred", or "require", etc) too? Other than that, I can't be of much more assistance. If someone can diagnose the problem and send a patch, I'd greatly appreciate it! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= C++: Just say no. Steve Tynor Georgia Tech Research Institute Artificial Intelligence Branch tynor@prism.gatech.edu