From xemacs-m  Fri Aug  8 08:59:24 1997
Received: from dolphin.automatrix.com (dolphin.automatrix.com [198.69.29.254])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA08085
	for <xemacs-beta@xemacs.org>; Fri, 8 Aug 1997 08:59:22 -0500 (CDT)
Received: (from skip@localhost) by dolphin.automatrix.com (8.8.5/8.8.3) id JAA09963; Fri, 8 Aug 1997 09:59:19 -0400 (EDT)
Date: Fri, 8 Aug 1997 09:59:19 -0400 (EDT)
Message-Id: <199708081359.JAA09963@dolphin.automatrix.com>
From: Skip Montanaro <skip@automatrix.com>
To: xemacs-beta@xemacs.org
CC: bwarsaw@cnri.reston.va.us
Subject: Python mode breakage in Budapest

In XEmacs 20.3 "Budapest" [Lucid] (i386-pc-bsdi2.1) of Sat Aug  2 1997 on dolphin.automatrix.com

I'm reporting two bugs here.  First, recognition of python-mode files
(those with ".py" extensions) is broken.  To reproduce the error,
start xemacs with the -no-site-file and -no-init-file flags, then
visit a non-existent Python file (say, "foo.py").  The following error 
is reported:

    File mode specification error: (error "unknown modifier" quote)

Second, deleting indentation seems broken.  After the error above is
reported, manually set python-mode for that buffer (M-x python-mode
RET), then insert the following three non-blank lines into the buffer:

for line in lines:
    if mpat.search(line) != -1:
	month = mpat.group(1)

Next, position the cursor at the end of the buffer and hit TAB.  The
cursor should move under the word "month".  Now hit DEL or BS.  The
cursor should back out one indent level (to line up with the word
"if").  Instead, it backs out two levels, winding up back at the left
margin, lined up under the word "for".

This is with the default settings for python-mode.  In particular,
py-indent-offset is 4, not 8.

I haven't tried with any other language modes, but Python is rather
unique in using indentation to indicate block structure, so I'd be a
little surprised if this happened with languages like C or Lisp.

-- 
Skip Montanaro     | Musi-Cal Express - get your own private Musi-Cal
skip@calendar.com  | domain name! http://concerts.calendar.com/express.shtml
(518)372-5583      | WebFast - http://www.webfast.com/

