From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: pYthon indentation Date: Thu, 22 Oct 2015 19:24:19 +0200 Message-ID: <56291BC3.3070101@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1445534714 31426 80.91.229.3 (22 Oct 2015 17:25:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 17:25:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 19:24:59 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpJbS-0001g3-Ne for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 19:24:38 +0200 Original-Received: from localhost ([::1]:33579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpJbS-0003PI-5J for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 13:24:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpJb8-0003Co-4V for help-gnu-emacs@gnu.org; Thu, 22 Oct 2015 13:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpJaz-0000U8-46 for help-gnu-emacs@gnu.org; Thu, 22 Oct 2015 13:24:18 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:49328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpJay-0000SW-UM for help-gnu-emacs@gnu.org; Thu, 22 Oct 2015 13:24:09 -0400 Original-Received: from [192.168.178.31] ([95.119.43.70]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0M1hZS-1aeenU43SM-00tjxh for ; Thu, 22 Oct 2015 19:24:07 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: X-Provags-ID: V03:K0:Wr2faZCnaN51cFKzwmzswi4teVT5HmJosRCvptYHEzgwOxX5qzJ mnNsBR1S8PSbtn0qU3z3vUhWpmGnearoosZVzJZrUhZykrnMZvgkAW2dXB/BR0Q7pLYGYDJ ZA9wu0HNmRG22grjB9NZ8i2nEv9im2fdX3frOOXK0pAtSFpUpcGqsSp59ysXyEBdrw06UNv 3ljP+vQ7RKERY4VxeEJUQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:DpcIje1zA4U=:i5N7aq2KS/qNStA/75Laf1 ESCTWEexHWsjw/Ko7sLi/gZUj3ecnGFsVEZFP0puqIURVKfWwm7mI0Oppcca2xMdiTWN8k6Is WFjypH9xlTJzzWOUq+iydxQXp8xz5ndncImh3Bkjw22+K3Q6SVQx0e3e+AJhXo8iIeJHaz5TZ aTkzVVlHFasnjGN7aFpm4kGjv/e9hUCY2cVVEGI+e5PM0jmFOgdbGKB/DIqL09OQDNY+2p/8R fraw5uKRE6vg2sOIqzLkfGcPGciGvqrPC6k0t1kEPHwvzBZY1HaHCamlKzHVU3yfJ/hCqYCPb gd2HkvrTX60B8R96Mc1Cg4xYWUq4qhlp+NynK6gDTFSIAj+8barMcEzFJ3ebjgYr9jI7hMHga Z01TUEOl4R+dmfGdyIrW7pATNYFr4WS4K7TA1BkHp2SnKUu1jY5OgRXADLoq/KKfcMuYQlmbH 6/dYgfL0rClTkwgBeA1o2/6CL3zuprnRe1bvbKVBRm/a8Ck4LqkZ90IZs91tLWww8GNK5xBeG d/oPF6Nm1ON3XUo/pC0DSmkz5j6mn4nzHMrzipRxXAmB57OT38WJxoLpSA19s42shO0eoctiS HoDy21LYioytT36ZqnCqKA5dVpwEvrXddpGhEWQqssYzfP25UacRFCEgtiNjdrcpWSzwtyfYi 2cqzKf1H1sQTa9jfqp8B6PDCHVvFuc1Clt4mu8n4g6kkVWt5QbAdgQdhVMM5N5aBYeu3iY+Zv S9OgPwNqcPRZZyQI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107785 Archived-At: On 22.10.2015 16:24, rjd wrote: > I have discovered an issue with python-mode in emacs. I generally c++ > develop and seldom do python (I have to say that I am not much of a fan, but > our testing framework uses it). > > I have recently discovered this issue: > > I emacs –Q > > I open a python file > > It contains: > > Import re as myre > > Var = [ > % > > The % represents the cursor location. Then, at that location I try to tab > and get this error: > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > python-indent-context() > python-indent--calculate-indentation() > python-indent-calculate-indentation(nil) > python-indent-line(nil) > python-indent-line-function() > indent-for-tab-command(nil) > call-interactively(indent-for-tab-command nil nil) > command-execute(indent-for-tab-command) > > > I have not developed in python for a month or so but I cannot remember this > being an issue. > I am using emacs 24.5.1 windows 7 64 (unfortunately) and – of course - -Q so > no configuration. > > Now, I try to apply python-mode 6.2.1 by running this > > Emacs –Q > In *scratch* > (setq load-path (append load-path (list "~/.emacs.d/python-mode.el-6.2.1"))) > (require 'python-mode) > > I open up a python file (the same as above) then I CAN indent. This is all > well and good, so if I load python-mode 6.2.1 el file in my NORMAL > configuration this solve the issue, BUT now with the new 6.2.1 I do not get > the same theme coloring as before, which-function-mode seems to be broke > (again) and developing in python is sluggish. > > For me, unfortunately, 6.2.1 solves one issue but creates others. > > If, instead, I can just have the patch that solves the indentation issue, > that would be great. > > Thank you. Please do not cross-post. Just for the record here again; python-mode.el's py-variable-name-face inherits default face. Use M-x customize-face RET ... Please file bugs reports at https://gitlab.com/python-mode-devs/python-mode/issues or https://bugs.launchpad.net/python-mode