unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19695: 24.4; python.el: [RFE] add customization option for send-main
@ 2015-01-26 17:18 Carlos Pita
  2015-01-30  4:23 ` Fabián Ezequiel Gallina
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Pita @ 2015-01-26 17:18 UTC (permalink / raw)
  To: 19695; +Cc: galli.87

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#19695: 24.4; python.el: [RFE] add customization option for send-main
  2015-01-26 17:18 bug#19695: 24.4; python.el: [RFE] add customization option for send-main Carlos Pita
@ 2015-01-30  4:23 ` Fabián Ezequiel Gallina
  0 siblings, 0 replies; 2+ messages in thread
From: Fabián Ezequiel Gallina @ 2015-01-30  4:23 UTC (permalink / raw)
  To: 19695-done

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-30  4:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-26 17:18 bug#19695: 24.4; python.el: [RFE] add customization option for send-main Carlos Pita
2015-01-30  4:23 ` Fabián Ezequiel Gallina

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).