From: Rob Shinn <morgan@tuxedo.darktech.org>
To: emacs-pretest-bug@gnu.org
Subject: bug#3782: 23.1.50; Indent works inconsistently in python-mode
Date: Tue, 7 Jul 2009 21:26:29 -0400 (EDT) [thread overview]
Message-ID: <20090708012629.7A88F16872B@dagda> (raw)
Scenario A:
1. Define a new function:
def foo(bar):
2. Press tab to indent (this works):
3. Write an 'if' statement:
def foo(bar):
if bar:
4. Press Return.
5. Press Tab, you will get "Sole indentation." and Emacs does not indent.
Scenario B:
1. Open a Python source file with functions in it.
2. Press Return at the end of an exist 'def'.
3. Pressing Tab may or may not indent.
In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.11)
of 2009-07-05 on dagda
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Python
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
t h i n g <return> <backspace> ( ) : <return> <tab>
i f SPC p l a t g f o r m <backspace> <backspace> <backspace>
<backspace> <backspace> f o r m . o s - <backspace>
. a n <backspace> <backspace> n a m e SPC = = SPC '
p o s i x ' : <return> <tab> <tab> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> s o m e t h i n
g . s e <backspace> o m e t h i n g SPC <backspace>
. s o m e t h i n g SPC = = SPC ' p o x i <backspace>
<backspace> i x <backspace> <backspace> s i x ' : <return>
<tab> <tab> <tab> <tab> <tab> <tab> <tab> <tab> <tab>
<tab> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
SPC = = SPC ' p o s i x ' : <return> <tab> <tab> <tab>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> s o m e t h i n
g : <return> <tab> <tab> <tab> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <down>
<down> <backspace> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>
Recent messages:
Closes def syslog_level(self, level):
Closes class Level():
Auto-saving...done
Closes else:
Closes def syslog_level(self, level):
Closes class Level():
Sole indentation [7 times]
Auto-saving...done
Sole indentation [15 times]
Auto-saving...done
next reply other threads:[~2009-07-08 1:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 1:26 Rob Shinn [this message]
2012-06-18 22:50 ` bug#3782: 23.1.50; Indent works inconsistently in python-mode Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090708012629.7A88F16872B@dagda \
--to=morgan@tuxedo.darktech.org \
--cc=3782@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).