GNU bug report logs - #75486
[PATCH] Python: disable some unconditional messaging

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Vitaliy Chepelev <vitalij@HIDDEN>; Keywords: notabug patch; Done: Eli Zaretskii <eliz@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug closed, send any further explanations to 75486 <at> debbugs.gnu.org and Vitaliy Chepelev <vitalij@HIDDEN> Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75486 <at> debbugs.gnu.org:


Received: (at 75486) by debbugs.gnu.org; 25 Jan 2025 08:43:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 25 03:43:41 2025
Received: from localhost ([127.0.0.1]:48372 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbblU-0001Bm-Ka
	for submit <at> debbugs.gnu.org; Sat, 25 Jan 2025 03:43:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58800)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1tbblS-0001BT-0N; Sat, 25 Jan 2025 03:43:38 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tbblM-00020g-8g; Sat, 25 Jan 2025 03:43:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qBxxLg50hRVKKGsc9DrFXUbwl791BaQi2tufi1fCn0Y=; b=DvDHjIvhi9Uu
 qAxRfSykOFUvUboWWP7YumIIG4EGerrK8HAg/eaf021Qa6aPFIIz9FIZic2j0294gEqd3UTCyOV02
 tVKL4YHlEm15aJAnMwwqlNDk8P3R3gu69EXCz8nLohxaQq5khc8B8xY086EpcabUQNvR3fvZTk9s1
 jwhjt7CoHsJxVyQY1+CNwKycoe+niuHR+Q9duCFFnHva99L/nR0G2vR0zsaJRRRoEVqBnwF8Xixt4
 hNWrOWpyzpkxBGiN16WLXi7Fu7hdZQYz7Ui2UVGnti7+KPl7tJRzFO2ORaQWRwD8vFZBV3/SZfbP2
 NxqMUOkD2xJLImIZ/wRgmQ==;
Date: Sat, 25 Jan 2025 10:43:30 +0200
Message-Id: <86h65nwafh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: kobarity <kobarity@HIDDEN>
In-Reply-To: <eke77c71wob2.wl-kobarity@HIDDEN> (message from kobarity on
 Sat, 11 Jan 2025 21:02:57 +0900)
Subject: Re: bug#75486: [PATCH] Python: disable some unconditional messaging
References: <87jzb1n9gg.fsf@HIDDEN>
 <86seppzsew.fsf@HIDDEN> <eke77c71wob2.wl-kobarity@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75486
Cc: vitalij@HIDDEN, 75486 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 75486 notabug
close 75486
thanks

> Date: Sat, 11 Jan 2025 21:02:57 +0900
> From: kobarity <kobarity@HIDDEN>
> Cc: 75486 <at> debbugs.gnu.org
> 
> Eli Zaretskii wrote:
> > 
> > > Date: Sat, 11 Jan 2025 06:36:15 -0000
> > > From:  Vitaliy Chepelev via "Bug reports for GNU Emacs,
> > >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> > > 
> > > Severity: minor
> > > 
> > > This code disable function that used in one place and just do
> > >  unconditional messaging about a indented block, I don't know for what.
> > >  I guess, it was used for debuging
> > >  python-info-dedenter-opening-block-position. This functions just call
> > >  one function and message a result. Messaging happen when TAB key pressed
> > >  as a part of python-indent-line-function.  I use master head to create
> > >  this patch.
> > 
> > Thanks.  kobarity, any comments about the usefulness of this function?
> > The code looks like it's there on purpose, not for debugging, but I
> > don't use python.el.
> 
> Yes, I think it's working as expected.  Try the following example.
> 
> #+begin_src python
> if a == 1:
>     if b == 2:
>         if c == 3:
>             pass
>         else:
> #+end_src
> 
> If you enter the last "else:", Emacs displays "Closes if c == 3:".
> This means that this "else:" corresponds to the "if c == 3:".
> 
> You can change the indentation by hitting the TAB key several times on
> the else line.  Each time you do this, Emacs will display the
> corresponding if statement.
> 
> For example, Emacs displays "Closes if b == 2:" when the "else:" is
> indented as follows:
> 
> #+begin_src python
> if a == 1:
>     if b == 2:
>         if c == 3:
>             pass
>     else:
> #+end_src
> 
> Of course, in this case it is easy to find the corresponding if
> statement.  However, in practice, many lines can go in between the if
> statements and disappear from the screen.  This feature would be
> useful in such cases.

Thanks.  No further comments in 2 weeks, so I'm now closing this bug.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75486; Package emacs. Full text available.

Message received at 75486 <at> debbugs.gnu.org:


Received: (at 75486) by debbugs.gnu.org; 11 Jan 2025 12:03:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 07:03:07 2025
Received: from localhost ([127.0.0.1]:41644 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWaCp-0008Tu-Fm
	for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 07:03:07 -0500
Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:51688)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kobarity@HIDDEN>)
 id 1tWaCm-0008TN-Qr
 for 75486 <at> debbugs.gnu.org; Sat, 11 Jan 2025 07:03:05 -0500
Received: by mail-pl1-x62c.google.com with SMTP id
 d9443c01a7336-216401de828so47509715ad.3
 for <75486 <at> debbugs.gnu.org>; Sat, 11 Jan 2025 04:03:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736596978; x=1737201778; darn=debbugs.gnu.org;
 h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from
 :message-id:date:from:to:cc:subject:date:message-id:reply-to;
 bh=zHqG1WxIUkkO2kgFcOw7biG8ijzotRt31/KraLdm67Y=;
 b=fz23HjmSRiMKrns972qORohS6tkBNEZJLrCIU9uwXRdbNqsgzLjz8IEqeiEmIwZtE9
 LvSjUNti8LEvkBdG/tsJAejz2+gUacWYiNuEiizcLKV9UvHreiffOIdU0fBU7aLCgkUF
 3ohUkAYzc4ADlLPFvYY9rmEuDjBrCbRRJ5cBXesh1iBfwI06X1CgweoNRNIJGdfKGrOb
 FuzSzOHcoK255Z/5NVBpwo9FDqhcuHoCnWzYgA948vw7/W844uM45o6JjLjCl+9ceKjh
 Hx+YcZ+BXKeGdAAuu8jaYXDGEpdFzLPh3c6D7yVwXCva/vdK/34K8/H4FFCVXM0fizFm
 j1Ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736596978; x=1737201778;
 h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from
 :message-id:date:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zHqG1WxIUkkO2kgFcOw7biG8ijzotRt31/KraLdm67Y=;
 b=BYYPI0B+KG7GQTOD0wz7+6dOqo7M+vn7iM1oJCKARNT9ZuO4lS4YoYP8Peg5xCUK2w
 KcYgIEQ4OodgSQPZaF0bbAuYuXSElWvktmKkm9JF/K9lYRq44tdTrIzDxO7hGyIeF0lv
 CJpeCCZ0lM2W80AZfhJY5iH8oA8Z7RoLN7KJVJdVZrnKlXJnpOKkOeVnvnTQCwjS8vNS
 q+e4hs/z4rbPpWw9LnI6PBLrj/eldMVK+Yf/samsOSN4gbjosvoQGfkjCjqza9eh9SQu
 FOuy0eVSiL8VZj/C8Labhz+897zRpICaZjisIh6GnvnpxmDaIw9fIh9XFmDbYBYsSYE+
 M6/w==
X-Gm-Message-State: AOJu0Yx13Yf4lqZaj3pedn/oCFn4Cu/afcPm0Ygf71yi9sO/7MxY2aJP
 GxhFA40ldzXCv5Nwusl5YRbdS0jRD/AX8V/1CEAs3M8ECjuWIHRK
X-Gm-Gg: ASbGnctW8c03vaU0TeqmJZ71G2KJQdUAcRK291r59JPkkJq4b+d3lDEv0FNb3DFKeeB
 W+LTloaY0EAjhIqTaa+tYi++YpIxRGFKgZDdmb5DoqTU4N+U5K3byKUKkUVGhP7j7S+hscKR8ES
 6lvODM3q099PzwTtOnG7QSAH4e14pVtD2eB0huzAHXv2hEBKvTCGzBw77v/aBMZL/1a59ANL2V5
 abGjphRLLCUzjO5SPH+ULvkMpwmXTyAmArWekPO6ME9fX/LmqLwoLZiwNya5XIp5qMgwvtsYHQ6
 XGBQKrdS/F8=
X-Google-Smtp-Source: AGHT+IHBuZ3Fo6Kr1u0Oj0e8VaRpwhgqtyKn9FUUM3BOWnDFoyr5QG6xFAveQhpRiWd02PeZTGgQJA==
X-Received: by 2002:a05:6a20:6a05:b0:1e1:bdae:e058 with SMTP id
 adf61e73a8af0-1e88d0d6b86mr24416957637.37.1736596978518; 
 Sat, 11 Jan 2025 04:02:58 -0800 (PST)
Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-a319a125fe4sm3624732a12.46.2025.01.11.04.02.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 11 Jan 2025 04:02:58 -0800 (PST)
Date: Sat, 11 Jan 2025 21:02:57 +0900
Message-ID: <eke77c71wob2.wl-kobarity@HIDDEN>
From: kobarity <kobarity@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Vitaliy Chepelev <vitalij@HIDDEN>
Subject: Re: bug#75486: [PATCH] Python: disable some unconditional messaging
In-Reply-To: <86seppzsew.fsf@HIDDEN>
References: <87jzb1n9gg.fsf@HIDDEN>
	<86seppzsew.fsf@HIDDEN>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0
 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75486
Cc: 75486 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii wrote:
> 
> > Date: Sat, 11 Jan 2025 06:36:15 -0000
> > From:  Vitaliy Chepelev via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> > 
> > Severity: minor
> > 
> > This code disable function that used in one place and just do
> >  unconditional messaging about a indented block, I don't know for what.
> >  I guess, it was used for debuging
> >  python-info-dedenter-opening-block-position. This functions just call
> >  one function and message a result. Messaging happen when TAB key pressed
> >  as a part of python-indent-line-function.  I use master head to create
> >  this patch.
> 
> Thanks.  kobarity, any comments about the usefulness of this function?
> The code looks like it's there on purpose, not for debugging, but I
> don't use python.el.

Yes, I think it's working as expected.  Try the following example.

#+begin_src python
if a == 1:
    if b == 2:
        if c == 3:
            pass
        else:
#+end_src

If you enter the last "else:", Emacs displays "Closes if c == 3:".
This means that this "else:" corresponds to the "if c == 3:".

You can change the indentation by hitting the TAB key several times on
the else line.  Each time you do this, Emacs will display the
corresponding if statement.

For example, Emacs displays "Closes if b == 2:" when the "else:" is
indented as follows:

#+begin_src python
if a == 1:
    if b == 2:
        if c == 3:
            pass
    else:
#+end_src

Of course, in this case it is easy to find the corresponding if
statement.  However, in practice, many lines can go in between the if
statements and disappear from the screen.  This feature would be
useful in such cases.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75486; Package emacs. Full text available.

Message received at 75486 <at> debbugs.gnu.org:


Received: (at 75486) by debbugs.gnu.org; 11 Jan 2025 08:06:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 03:06:12 2025
Received: from localhost ([127.0.0.1]:41202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWWVY-000591-5t
	for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 03:06:12 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:56288)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tWWVV-00058n-NE
 for 75486 <at> debbugs.gnu.org; Sat, 11 Jan 2025 03:06:10 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tWWVQ-0005W8-0W; Sat, 11 Jan 2025 03:06:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=B4+XI8HJ/++ZD7rulPZEqNXbr2OfQHGZ8txL5IObjrg=; b=pX8VpGH+ipP6
 K/wUIrj3JNekfKuLHqt0OBVIIa04GTnj1j4rg/far1UPrLI2KkvUgvklhq1k23RN2ElASr5RcXv1e
 qzslI+JTq+Hkz7kcj8ygCpdzBX2g+7Nv6FJ7b/ZVmwW1fM0wDPkaD3LQtho01moXj/QXStmv4UrpF
 3oZu5JDCAiI/+pxdH8bFoUQoap0WDgN+dwT/f0eI8Wt4xFSUraKPNo7cJQ/ei5IFdKHb4WoYlkzGX
 RPOAym6b7499FiJPbBXBWlufd6OR0AjXBypqdn9XPiKaIQ8B02QNcjSgUpupjDhpBLexoJwttiZ/C
 205ArDxiFs6cRHD/6Hr/oA==;
Date: Sat, 11 Jan 2025 10:05:59 +0200
Message-Id: <86seppzsew.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vitaliy Chepelev <vitalij@HIDDEN>, kobarity <kobarity@HIDDEN>
In-Reply-To: <87jzb1n9gg.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#75486: [PATCH] Python: disable some unconditional messaging
References: <87jzb1n9gg.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75486
Cc: 75486 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sat, 11 Jan 2025 06:36:15 -0000
> From:  Vitaliy Chepelev via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Severity: minor
> 
> This code disable function that used in one place and just do
>  unconditional messaging about a indented block, I don't know for what.
>  I guess, it was used for debuging
>  python-info-dedenter-opening-block-position. This functions just call
>  one function and message a result. Messaging happen when TAB key pressed
>  as a part of python-indent-line-function.  I use master head to create
>  this patch.

Thanks.  kobarity, any comments about the usefulness of this function?
The code looks like it's there on purpose, not for debugging, but I
don't use python.el.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75486; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Jan 2025 06:37:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 01:37:09 2025
Received: from localhost ([127.0.0.1]:41097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWV7M-0000pb-Iv
	for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 01:37:08 -0500
Received: from lists.gnu.org ([2001:470:142::17]:34214)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <vitalij@HIDDEN>) id 1tWV7K-0000p3-6h
 for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 01:37:06 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vitalij@HIDDEN>) id 1tWV7E-0006qp-Ee
 for bug-gnu-emacs@HIDDEN; Sat, 11 Jan 2025 01:37:00 -0500
Received: from mout.gmx.net ([212.227.15.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vitalij@HIDDEN>) id 1tWV7C-0004bN-PN
 for bug-gnu-emacs@HIDDEN; Sat, 11 Jan 2025 01:37:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com;
 s=s31663417; t=1736577412; x=1737182212; i=vitalij@HIDDEN;
 bh=dy/uU4MV+3SQVZsqPTNHIzXO66bWfi5DnGIlX1kNTE4=;
 h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=eSogpkEaiWu43K1ZJuU9oAPMuNRTeGTzEIgKsJLdRUPrQX5I6frh+BDJMBfz6dZi
 5PA/jUbdgmh8kE1SmMjPdS5sRy57R+9CBaw/SzPqUMT67mA3wkAP3sAGquteoneR6
 PS9WII9w5e+P4X9WFH3Iz/UZzX7YcG9KqQhLHakzItSahAdW3jB+ApN5y1VkXlHKK
 GtrCV3tbLa1neZ7mOKbohrD/VK4h2RKsNf2zzsxCVBPzJqHYo7Z4Fykl0WhrqdhUs
 0eduFQDr/n+c3U//wCHu3GdraxHXr6OlFSAdWFjRgVWu53fXP+IaDVzxCXUsYpFcz
 qa3PXm9vLzBRKBQpBg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from localhost ([202.179.32.225]) by mail.gmx.net (mrgmx005
 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M26rD-1tYz1P1rPl-00GMy5 for
 <bug-gnu-emacs@HIDDEN>; Sat, 11 Jan 2025 07:36:51 +0100
From: Vitaliy Chepelev <vitalij@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Python: disable some unconditional messaging
Date: Sat, 11 Jan 2025 06:36:15 -0000
Message-ID: <87jzb1n9gg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:iMbPADaI7EHqxot1tmxdpEPfljq9aH+ZIugU4bXVMn+yEPPPcSb
 HUqzC52smEpzvhxcdLzW57QSC86Tqr/QIMp6zOTW0efv1RysYmhhYF8ir0T8ce3KggEc3nf
 eJjViZRFXifFIygXmrXezHA/TXCbEoXRjtnC5t8MsnNgB4J6NTNlAB9ghZZP93gqPassKEw
 f1aiKHmcTTXEk5X1cpohw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:R2eJgmmlbtg=;/JoiSgGU8CJ7f56TkdWK+gRbzgH
 Tv6cdXdQdVPYVZXDKVxxmaSpvrnLk6mtgdELGk9UlH/+EAYWYE1y6s+AV3pgouzYHYxu8jXYe
 0Uhjss+dtfZugi9X9SK5Za+CjAELtGpikGD1On2a7j6ravyTG7flgyawQfxXRAYiWIq9iv01S
 /HEExcAt7W5cw3ksaHtkRjZprTlPdZmpakAG4v2saSpMXoKhglRZteBEOZIflEXtr+fwvbRqs
 gOlUrgG5xGeQF82+R6H0ZRcezXBksJ7FK3wt2+9qKy1asBdCsJJ7q+G9+SNZEeEWFJRE7/pxj
 NtOGyQyGEPi/NlaZWc2S4yRqFHGSJz5p99rtNtSb+kG4HMLNQzJGjfkSXFQA0JZF/v6nH6nw6
 jSYeZW0uUJjUASqokEM+nHLxjgMuv4i5/5Hr3WNFNn3/rOb1hzH6lJi0Y0UclX/Epk9TicLLY
 H7CvM99t0iMz46xq9Jw792JXfnZSa/47KxWa6YsmWP49mhfB1KY035OBZmgPQO4CT1uKozIA0
 gQKqCkcsDqvExSVREv5CUOW1S2h0uvCHj/1S5/mYG7uF4w7gMRKktfhBXgmqvqFZuvJ9xXmOw
 U2QA/FgKpiSiInnud26TZvxk29lDUwY0qn1bbB+3e1jbMsxj1uLvq4s9sdyStPf2axV+vWquQ
 be9lhC+l9T1OY4IFB/ZFyeypA0CoE/WQkyq15jldYrA03TJunMqX5bwgpcqllqRms4q3OWJ23
 hsPoLkwi294avdaPOUQXlUcNX9arL0RhS1IVgP55mL3zk8QYXRM5JKcGDiRaYFnsIyahnW5TF
 uhrAvnTUqqe8VW4bGbs4OdDXBT9jNZ1IzFYt4HY7XY6exvzGpqPQscAh3UgFHgVnvVbKwaI3L
 sL2nAoko+9fMVTquxfcBg0ud1P0QO8E7uUIwAyl1hfYPk0LIIOeJfJS/f3m6npxuFiUcOJRrA
 5Bt+WZqsdp53VCU0ssLP1AyCwR+8g571zbSYMA5UGwX/lNVF9IvQvwWWvjrWKOhGWZwClLnGV
 HQ/xsisk7wdLRAQOVZ0r40lcmbhosznfQCFamRdfSvjc4KvVtNZSrqsN1zTssddNHCwYUWsie
 iBlchokfAE0yTyaoIoMW2kdDniou7m
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=212.227.15.18; envelope-from=vitalij@HIDDEN;
 helo=mout.gmx.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Severity: minor

This code disable function that used in one place and just do
 unconditional messaging about a indented block, I don't know for what.
 I guess, it was used for debuging
 python-info-dedenter-opening-block-position. This functions just call
 one function and message a result. Messaging happen when TAB key pressed
 as a part of python-indent-line-function.  I use master head to create
 this patch.

=2D--
 lisp/progmodes/python.el | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 16c296a8f86..4fa62ef927f 100644
=2D-- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1897,8 +1897,7 @@ level."
                   (point)))))
     (save-excursion
       (indent-line-to
-       (python-indent-calculate-indentation previous))
-      (python-info-dedenter-opening-block-message))
+       (python-indent-calculate-indentation previous)))
     (when follow-indentation-p
       (back-to-indentation))))

@@ -6241,19 +6240,6 @@ likely an invalid python file."
           ;; sort by closer
           (nreverse opening-blocks))))))

-(define-obsolete-function-alias
-  'python-info-closing-block-message
-  #'python-info-dedenter-opening-block-message "24.4")
-
-(defun python-info-dedenter-opening-block-message  ()
-  "Message the first line of the block the current statement closes."
-  (let ((point (python-info-dedenter-opening-block-position)))
-    (when point
-        (message "Closes %s" (save-excursion
-                               (goto-char point)
-                               (buffer-substring
-                                (point) (line-end-position)))))))
-
 (defun python-info-dedenter-statement-p ()
   "Return point if current statement is a dedenter.
 Sets `match-data' to the keyword that starts the dedenter
=2D-
2.45.2




Acknowledgement sent to Vitaliy Chepelev <vitalij@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75486; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 25 Jan 2025 08:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.