GNU bug report logs - #19695
24.4; python.el: [RFE] add customization option for send-main

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Mon, 26 Jan 2015 17:20:03 UTC

Severity: wishlist

Tags: notabug

Fixed in version 24.4

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19695 in the body.
You can then email your comments to 19695 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19695; Package emacs. (Mon, 26 Jan 2015 17:20:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Carlos Pita <carlosjosepita <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 26 Jan 2015 17:20:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: galli.87 <at> gmail.com
Subject: 24.4; python.el: [RFE] add customization option for send-main 
Date: Mon, 26 Jan 2015 14:18:38 -0300
The send buffer behavior doesn't quite follows the principle of least
surprise as currently implemented: one would expect that the
if-name-main part will be executed the same everything else is. While I
agree this is a matter of taste, I think it would be nice to add a
global customization option for people that prefer the standard "execute
all" behavior as a default.

Cheers
--
Carlos




Reply sent to fgallina <at> gnu.org (Fabián Ezequiel Gallina):
You have taken responsibility. (Fri, 30 Jan 2015 04:24:02 GMT) Full text and rfc822 format available.

Notification sent to Carlos Pita <carlosjosepita <at> gmail.com>:
bug acknowledged by developer. (Fri, 30 Jan 2015 04:24:03 GMT) Full text and rfc822 format available.

Message #10 received at 19695-done <at> debbugs.gnu.org (full text, mbox):

From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 19695-done <at> debbugs.gnu.org
Subject: 24.4; python.el: [RFE] add customization option for send-main 
Date: Fri, 30 Jan 2015 01:23:30 -0300
Hi Carlos,

I agree that the least surprising thing to do would be to send the
"if-name-main" block, but in the other hand this block generally
contains the execution code for the module and when working on it you
generally don't want to send that to the shell (one of the reasons may
be safety).  So I think the current way of enabling this by just adding
a prefix argument to `python-shell-send*` commands is better than adding
yet another customization.



Cheers,
Fabián




Added tag(s) notabug. Request was from fgallina <at> gnu.org (Fabián Ezequiel Gallina) to control <at> debbugs.gnu.org. (Fri, 30 Jan 2015 04:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 27 Feb 2015 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 175 days ago.

Previous Next


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