[Python-mode] Python-mode Digest, Vol 92, Issue 1

lpeng564 at gmail.com lpeng564 at gmail.com
Wed Feb 1 12:37:28 CET 2012


 py-ask-about-save (Andreas R?hler)
  2. Re: py-ask-about-save ( Fran?ois Pinard)
  3. Re: py-ask-about-save (Andreas R?hler)

root

On Feb 1, 2012, at 7:00 PM, python-mode-request at python.org wrote:

> Send Python-mode mailing list submissions to
>    python-mode at python.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://mail.python.org/mailman/listinfo/python-mode
> or, via email, send a message with subject or body 'help' to
>    python-mode-request at python.org
> 
> You can reach the person managing the list at
>    python-mode-owner at python.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-mode digest..."
> 
> 
> Today's Topics:
> 
>   1. py-ask-about-save (Andreas R?hler)
>   2. Re: py-ask-about-save ( Fran?ois Pinard)
>   3. Re: py-ask-about-save (Andreas R?hler)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 31 Jan 2012 19:50:58 +0100
> From: Andreas R?hler <andreas.roehler at online.de>
> To: python-mode at python.org
> Subject: [Python-mode] py-ask-about-save
> Message-ID: <4F283812.9040700 at online.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
> 
> Hi,
> 
> exists a boolean variable
> 
> (defcustom py-ask-about-save t
>   "If not nil, ask about which buffers to save before executing some code.
> Otherwise, all modified buffers are saved without asking."
> 
> ;;;;;;;;;;
> 
> this rather nags me. Saving all buffer unconditional is probably 
> terrible, OTOH always get questioned by `t'
> 
> Will change the implementation into
> 
>  "If not nil, ask about which buffers to save before executing some code.
> Otherwise do nothing."
> 
> Opinions?
> 
> Cheers,
> 
> Andreas
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 31 Jan 2012 15:47:11 -0500
> From: pinard at iro.umontreal.ca ( Fran?ois Pinard)
> To: Andreas R?hler <andreas.roehler at online.de>
> Cc: python-mode at python.org
> Subject: Re: [Python-mode] py-ask-about-save
> Message-ID: <87wr87d2gg.fsf at iro.umontreal.ca>
> Content-Type: text/plain; charset=utf-8
> 
> Andreas R?hler <andreas.roehler at online.de> writes:
> 
>> (defcustom py-ask-about-save t
>>  "If not nil, ask about which buffers to save before executing some code.
>> Otherwise, all modified buffers are saved without asking."
> 
>> Will change the implementation into
> 
>> "If not nil, ask about which buffers to save before executing some code.
>> Otherwise do nothing."
> 
>> Opinions?
> 
> Hi, Andreas, and gang!
> 
> I guess this is inspired from compilation-ask-about-save.  It is easier
> to remember when alike variables have alike behaviour.
> 
> Some Emacs variables have nil, t and 'ask for a value; you surely have
> seen some of them, I do not have an example handy.  The behaviour could
> be controlled by such a 3-valued variable, yet then, the variable name
> should be changed to not be misleading.
> 
> Fran?ois
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Wed, 01 Feb 2012 07:18:22 +0100
> From: Andreas R?hler <andreas.roehler at online.de>
> To: Fran?ois Pinard <pinard at iro.umontreal.ca>
> Cc: python-mode at python.org
> Subject: Re: [Python-mode] py-ask-about-save
> Message-ID: <4F28D92E.8070607 at online.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Am 31.01.2012 21:47, schrieb Fran?ois Pinard:
>> Andreas R?hler<andreas.roehler at online.de>  writes:
>> 
>>> (defcustom py-ask-about-save t
>>>   "If not nil, ask about which buffers to save before executing some code.
>>> Otherwise, all modified buffers are saved without asking."
>> 
>>> Will change the implementation into
>> 
>>>  "If not nil, ask about which buffers to save before executing some code.
>>> Otherwise do nothing."
>> 
>>> Opinions?
>> 
>> Hi, Andreas, and gang!
>> 
>> I guess this is inspired from compilation-ask-about-save.  It is easier
>> to remember when alike variables have alike behaviour.
>> 
>> Some Emacs variables have nil, t and 'ask for a value; you surely have
>> seen some of them, I do not have an example handy.  The behaviour could
>> be controlled by such a 3-valued variable, yet then, the variable name
>> should be changed to not be misleading.
>> 
>> Fran?ois
>> 
> 
> Thanks, Fran?ois. Good idea, will look for that.
> 
> Andreas
> 
> 
> ------------------------------
> 
> _______________________________________________
> Python-mode mailing list
> Python-mode at python.org
> http://mail.python.org/mailman/listinfo/python-mode
> 
> 
> End of Python-mode Digest, Vol 92, Issue 1
> ******************************************


More information about the Python-mode mailing list