unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Pogonyshev <pogonyshev@gmail.com>
To: 18843@debbugs.gnu.org
Subject: bug#18843: Invalid block indentation in Python mode
Date: Sun, 26 Oct 2014 15:18:08 +0100	[thread overview]
Message-ID: <CAG7BpaorAuQHLc1xzq=Y_whHE1V9-bn9Dse8XmeVauNNDRXfNQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

Block indentation in Python mode often gives silly results. For example,
with 'emacs -q' create a Python buffer and type this:

def foo ():
    try:
        pass
    except:
        pass

Now 'C-x h TAB' gives something that is not valid at all:

def foo ():
    try:
        pass
except:
    pass

Note that if you go to the 'except:' line and press 'TAB', 'except:' is
indented back to its proper position. Further 'TAB's don't change this,
i.e. mode understands that it cannot place 'except:' at any other
indentation level.

Emacs version (just compiled):
GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of
2014-10-26

Paul

[-- Attachment #2: Type: text/html, Size: 874 bytes --]

             reply	other threads:[~2014-10-26 14:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-26 14:18 Paul Pogonyshev [this message]
2014-10-30 19:13 ` bug#18843: Carlos Pita
2014-11-15 21:21 ` bug#18843: Invalid block indentation in Python mode Fabián Ezequiel Gallina

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='CAG7BpaorAuQHLc1xzq=Y_whHE1V9-bn9Dse8XmeVauNNDRXfNQ@mail.gmail.com' \
    --to=pogonyshev@gmail.com \
    --cc=18843@debbugs.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).