Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85560

Re: idle feature request

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'modified': 0.07; 'classes.': 0.09; 'filename': 0.09; 'lawrence': 0.09; 'lost.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'window.': 0.09; 'window?': 0.09; 'windows,': 0.09; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; 'question.': 0.14; 'context:': 0.16; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'saved.': 0.16; 'wrote:': 0.18; 'first.': 0.19; 'subject:request': 0.19; 'unlike': 0.19; 'memory': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'bar.': 0.24; 'typical': 0.24; 'tracker': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'raise': 0.29; "doesn't": 0.30; "skip:' 10": 0.31; 'usually': 0.31; 'file': 0.32; 'class': 0.32; 'regular': 0.32; 'run': 0.32; 'could': 0.34; 'problem': 0.35; 'except': 0.35; 'something': 0.35; 'more,': 0.35; 'one,': 0.35; 'there': 0.35; 'idle': 0.36; 'interaction': 0.36; 'possible': 0.36; 'clear': 0.37; 'saves': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'then,': 0.60; 'most': 0.60; 'save': 0.62; 'name': 0.63; 'teaching': 0.64; 'become': 0.64; 'taking': 0.65; 'finish': 0.65; 'here': 0.66; 'prompt': 0.68; '1:00': 0.84; 'received:fios.verizon.net': 0.84; 'warning.': 0.84; 'enhancement': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: idle feature request
Date Wed, 11 Feb 2015 21:27:25 -0500
References <f96ffbb6-127f-41a7-a0d9-59efd30aea2d@googlegroups.com> <mbg5b7$hj4$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-98-114-97-173.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
In-Reply-To <mbg5b7$hj4$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18675.1423708056.18130.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1423708056 news.xs4all.nl 2884 [2001:888:2000:d::a6]:51364
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85560

Show key headers only | View raw


On 2/11/2015 1:00 PM, Mark Lawrence wrote:
> On 11/02/2015 13:11, Rustom Mody wrote:
>> Context:
>> I am using idle for taking python classes.

Teaching or taking?

>> Finish the class and run out usually in a hurry and forget to save the
>> idle interaction window.

Do you mean the shell window?

>> Would like to save it so that I can mail it to the students.

Then save it.  What am I not understainding? Your problem scenario is 
not clear to me.  See below for a possible description that I do understand.

>> In emacs I could set a hook to make arbitrary 'buffers' like the
>> python-idle
>> shell become 'saving-buffers' like typical file buffers.
>> ie in emacs like most other editors, a modified file is ask-to-save

That is true in Idle as well.

>> The same can be setup for other (non-file) buffers like a python
>> interaction shell

I have never used emacs so I do not understand your reference thereto. 
In Windows, the interactive console history cannot be saved except by 
awkwardly selecting and cutting.  Idle does allow the shell contents to 
be saved.

>> Can I do the same for idle.

"Same what?" is the question.

> If there isn't an enhancement request on the bug tracker for this please
> raise one, that way this doesn't get lost.

Let us clarify the request here first.

If one saves the shell with 'save as', the filename is added to the 
title bar.  If one does something more, the name in bracketed with *s to 
indicate the the memory buffer has been changed since it was last saved. 
  This is the same as regular edit windows.

However, when one quits, then, unlike a regular edit window, there is no 
ask-to-save warning.  Is this what you want?  This would seem reasonable 
and likely easy.  (I would, however, not want the prompt when the buffer 
has not been saved -- or this could be a configuration option.)

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 05:11 -0800
  Re: idle feature request Fabien <fabien.maussion@gmail.com> - 2015-02-11 14:20 +0100
    Re: idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 05:29 -0800
      Re: idle feature request Fabien <fabien.maussion@gmail.com> - 2015-02-11 14:48 +0100
  Re: idle feature request Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-11 18:00 +0000
  Re: idle feature request Terry Reedy <tjreedy@udel.edu> - 2015-02-11 21:27 -0500
    Re: idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 18:48 -0800
      Re: idle feature request Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-12 04:48 +0000
      Re: idle feature request Terry Reedy <tjreedy@udel.edu> - 2015-02-12 02:17 -0500
  Re: idle feature request Chris Angelico <rosuav@gmail.com> - 2015-02-12 14:05 +1100

csiph-web