From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Amir Teymuri" Newsgroups: gmane.emacs.help Subject: Line number problem in python-mode Errors Date: Sat, 1 Oct 2016 18:50:30 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1475355074 8525 195.159.176.226 (1 Oct 2016 20:51:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 20:51: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 Sat Oct 01 22:51:11 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqRFU-0001Qn-Iy for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 22:51:08 +0200 Original-Received: from localhost ([::1]:57148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqRFT-0001mY-2S for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 16:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqNUk-0003NJ-0l for help-gnu-emacs@gnu.org; Sat, 01 Oct 2016 12:50:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqNUf-0005Iy-Kv for help-gnu-emacs@gnu.org; Sat, 01 Oct 2016 12:50:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:53079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqNUf-0005Is-BC for help-gnu-emacs@gnu.org; Sat, 01 Oct 2016 12:50:33 -0400 Original-Received: from [77.178.155.178] by 3capp-gmx-bs48.server.lan (via HTTP); Sat, 1 Oct 2016 18:50:30 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:UeY9DyEREBg85/WJhS6fVUI4zuMAzR66XopP3MGn10Q HFypX4J3KUcH6pedYlzioOum/wqNv4/IVmPehu6fEAj632XI4J 5kIFjOiFSU/YxPc6FpCjabiDM6bcLde+my3GE4bweImovAKpn8 J20xCMLBrtZ95RVPNyU2emsXbMAJEFm4LAzHWFlmJ+90dVxzgf /0oVOwR4lzlY4cnjgjZMdgmipP2pW+HwSZ0nlUkA2rxBkPdkGx N+sDzoLBot5ECKAYxLccR2WpqH5qwpnl+j8PXGMnKaFdwNEUsq nRcJXs= X-UI-Out-Filterresults: notjunk:1;V01:K0:E/exj4UOciQ=:5bjjsJoBwWfxR62SgJdRp7 WFLv9w3t43MGD48+tzJfTdp2D1icxfTjOEz11fVSjXHbg7Z49FriaYdFcvJzDnLWHk4ADFnUB 3dqBrHj+PzF6Q9JqbG6Z+6MuaFqV9kVcsnfZp0cFRwOygq40NofS5m1kiUVi6v56taeG7M9f2 wvpD7sb+kLtJ1roWAp1VDD4LYu/XfxbimcOqjCPPCBT6qDoFGSWeCtMNad9AUqLxPOJn6LBDP 5wtOkRvVc2BXlgYCQeuQcc2pSsMsOaBKBDXnUFJ/17nmQWih7mvmA2Y1vUAecqlTGAmVmBAzb FsJtWSmeqxlus44zYD3L3PhdsiONPGQiJm+UDcEnguDwAUbs+R4WtaTtZJCMoFdxScPzBSIDx 2xFpQHDew9eQ2b3UClf2BAu7n0gUpmK9Jc71Tulv1v5qWwGAcbPrODja0v76Wy/ASNimW7G83 K6QNB7pnDA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 X-Mailman-Approved-At: Sat, 01 Oct 2016 16:50:32 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111427 Archived-At: Hello, i am using emacs in python mode. There is a problem with the line numbers each time the python interpreter shows an Error: each time an error occurs inside my file.py, the error message shows always the actual line number + 1. Here is an example: # file.py 1 from tst import * # the interpreter error message: >>> Traceback (most recent call last): File "", line 1, in File "/home/amir/programming/python/c_m/lern.py", line 2, in AttributeError: 'module' object has no attribute 'foo' How can i fix this problem? Kind regards, Amir