[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/idlelib EditorWindow.py, 1.65, 1.66 NEWS.txt, 1.53, 1.54 config-keys.def, 1.21, 1.22 configHandler.py, 1.37, 1.38

Guido van Rossum gvanrossum at gmail.com
Fri Jan 28 03:48:00 CET 2005


Thanks!!!


On Thu, 27 Jan 2005 16:16:19 -0800, kbk at users.sourceforge.net
<kbk at users.sourceforge.net> wrote:
> Update of /cvsroot/python/python/dist/src/Lib/idlelib
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5316
> 
> Modified Files:
>         EditorWindow.py NEWS.txt config-keys.def configHandler.py
> Log Message:
> Add keybindings for del-word-left and del-word-right.
> 
> M EditorWindow.py
> M NEWS.txt
> M config-keys.def
> M configHandler.py
> 
> Index: EditorWindow.py
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/EditorWindow.py,v
> retrieving revision 1.65
> retrieving revision 1.66
> diff -u -d -r1.65 -r1.66
> --- EditorWindow.py     19 Jan 2005 00:22:54 -0000      1.65
> +++ EditorWindow.py     28 Jan 2005 00:16:15 -0000      1.66
> @@ -141,6 +141,8 @@
>          text.bind("<<change-indentwidth>>",self.change_indentwidth_event)
>          text.bind("<Left>", self.move_at_edge_if_selection(0))
>          text.bind("<Right>", self.move_at_edge_if_selection(1))
> +        text.bind("<<del-word-left>>", self.del_word_left)
> +        text.bind("<<del-word-right>>", self.del_word_right)
> 
>          if flist:
>              flist.inversedict[self] = key
> @@ -386,6 +388,14 @@
>                      pass
>          return move_at_edge
> 
> +    def del_word_left(self, event):
> +        self.text.event_generate('<Meta-Delete>')
> +        return "break"
> +
> +    def del_word_right(self, event):
> +        self.text.event_generate('<Meta-d>')
> +        return "break"
> +
>      def find_event(self, event):
>          SearchDialog.find(self.text)
>          return "break"
> 
> Index: NEWS.txt
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v
> retrieving revision 1.53
> retrieving revision 1.54
> diff -u -d -r1.53 -r1.54
> --- NEWS.txt    19 Jan 2005 00:22:57 -0000      1.53
> +++ NEWS.txt    28 Jan 2005 00:16:16 -0000      1.54
> @@ -3,17 +3,24 @@
> 
>  *Release date: XX-XXX-2005*
> 
> +- Add keybindings for del-word-left and del-word-right.
> +
>  - Discourage using an indent width other than 8 when using tabs to indent
>    Python code.
> 
>  - Restore use of EditorWindow.set_indentation_params(), was dead code since
> -  Autoindent was merged into EditorWindow.
> +  Autoindent was merged into EditorWindow.  This allows IDLE to conform to the
> +  indentation width of a loaded file.  (But it still will not switch to tabs
> +  even if the file uses tabs.)  Any change in indent width is local to that
> +  window.
> 
>  - Add Tabnanny check before Run/F5, not just when Checking module.
> 
>  - If an extension can't be loaded, print warning and skip it instead of
>    erroring out.
> 
> +- Improve error handling when .idlerc can't be created (warn and exit).
> +
>  - The GUI was hanging if the shell window was closed while a raw_input()
>    was pending.  Restored the quit() of the readline() mainloop().
>    http://mail.python.org/pipermail/idle-dev/2004-December/002307.html
> 
> Index: config-keys.def
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/config-keys.def,v
> retrieving revision 1.21
> retrieving revision 1.22
> diff -u -d -r1.21 -r1.22
> --- config-keys.def     17 Aug 2004 08:01:19 -0000      1.21
> +++ config-keys.def     28 Jan 2005 00:16:16 -0000      1.22
> @@ -55,6 +55,8 @@
>  untabify-region=<Alt-Key-6> <Meta-Key-6>
>  toggle-tabs=<Alt-Key-t> <Meta-Key-t> <Alt-Key-T>
>  change-indentwidth=<Alt-Key-u> <Meta-Key-u> <Alt-Key-U>
> +del-word-left=<Control-Key-BackSpace>
> +del-word-right=<Control-Key-Delete>
> 
>  [IDLE Classic Unix]
>  copy=<Alt-Key-w> <Meta-Key-w>
> @@ -104,6 +106,8 @@
>  untabify-region=<Alt-Key-6>
>  toggle-tabs=<Alt-Key-t>
>  change-indentwidth=<Alt-Key-u>
> +del-word-left=<Alt-Key-BackSpace>
> +del-word-right=<Alt-Key-d>
> 
>  [IDLE Classic Mac]
>  copy=<Command-Key-c>
> @@ -153,3 +157,5 @@
>  untabify-region=<Control-Key-6>
>  toggle-tabs=<Control-Key-t>
>  change-indentwidth=<Control-Key-u>
> +del-word-left=<Control-Key-BackSpace>
> +del-word-right=<Control-Key-Delete>
> 
> Index: configHandler.py
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/configHandler.py,v
> retrieving revision 1.37
> retrieving revision 1.38
> diff -u -d -r1.37 -r1.38
> --- configHandler.py    13 Jan 2005 17:37:38 -0000      1.37
> +++ configHandler.py    28 Jan 2005 00:16:16 -0000      1.38
> @@ -579,7 +579,9 @@
>              '<<tabify-region>>': ['<Alt-Key-5>'],
>              '<<untabify-region>>': ['<Alt-Key-6>'],
>              '<<toggle-tabs>>': ['<Alt-Key-t>'],
> -            '<<change-indentwidth>>': ['<Alt-Key-u>']
> +            '<<change-indentwidth>>': ['<Alt-Key-u>'],
> +            '<<del-word-left>>': ['<Control-Key-BackSpace>'],
> +            '<<del-word-right>>': ['<Control-Key-Delete>']
>              }
>          if keySetName:
>              for event in keyBindings.keys():
> 
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
> 


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list