From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.python-mode,gmane.emacs.bugs Subject: 23.1.92; python-expand-template docu Date: Sat, 13 Mar 2010 12:51:12 +0100 Message-ID: <4B9B7C30.5040101@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268480934 3972 80.91.229.12 (13 Mar 2010 11:48:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 11:48:54 +0000 (UTC) Cc: python-mode@python.org To: bug-gnu-emacs@gnu.org Original-X-From: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Sat Mar 13 12:48:50 2010 Return-path: Envelope-to: gcpp-python-mode@m.gmane.org Original-Received: from mail.python.org ([82.94.164.166]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NqPpq-0002JH-6b for gcpp-python-mode@m.gmane.org; Sat, 13 Mar 2010 12:48:50 +0100 Original-Received: from albatross.python.org (localhost [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 00185F5F5 for ; Sat, 13 Mar 2010 12:48:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1268480930; bh=DDLWubyjyGP4hk5eQgzIQe2vzmAKlnEXZRUy2Ki1q+E=; h=Message-ID:Date:From:MIME-Version:To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Content-Type:Content-Transfer-Encoding:Sender; b=i0+THx5s398SxqFHo84HQV+8PWYF0Gcc2RzAitmHwkaSFBRqhzzrHwavvnf7l0JPU Akngd0bexgNLLCI7KnW6A/URMH1mBJCIjewAmZsuKBeyChqTy7Wsv+9lwVFUhr0dEU J+Tu+0Mp4snkZv+inyaGnmH8zEQ1OMweubWqNnTY= Original-Received: from albatross.python.org (localhost [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id D5DB8D7E5 for ; Sat, 13 Mar 2010 12:48:44 +0100 (CET) X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'received:192.168.178': 0.07; 'sfxlen:0': 0.07; 'received:212.227.126.171': 0.09; 'subject:python': 0.13; 'docstring': 0.16; 'expanded': 0.16; 'feature.': 0.16; 'inserting': 0.16; 'skip:` 20': 0.16; 'url:launchpad': 0.16; 'cc:2**0': 0.17; 'cc:no real name:2**0': 0.19; 'extend': 0.22; 'suggest': 0.23; 'url:code': 0.23; 'version': 0.25; 'ways': 0.27; 'received:kundenserver.de': 0.27; 'received:moutng.kundenserver.de': 0.27; 'thanks': 0.28; 'cc:addr:python.org': 0.29; 'hi,': 0.31; 'done': 0.32; 'user': 0.33; 'description': 0.33; 'calling': 0.33; 'latter': 0.35; 'now:': 0.35; 'received:212.227.126': 0.35; 'received:192': 0.35; 'set': 0.35; 'table': 0.36; "it's": 0.36; 'received:de': 0.37; 'usage': 0.37; 'header:User-Agent:1': 0.38; 'received:192.168': 0.39; 'mentioned': 0.40; 'statement': 0.40; 'two': 0.40; 'received:212.227': 0.40; 's Original-Received: from localhost (HELO mail.python.org) (127.0.0.1) by albatross.python.org with SMTP; 13 Mar 2010 12:48:44 +0100 Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.python.org (Postfix) with ESMTP for ; Sat, 13 Mar 2010 12:48:42 +0100 (CET) Original-Received: from [192.168.178.27] (p54BEBB14.dip0.t-ipconnect.de [84.190.187.20]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Le9A8-1NKbC328uS-00po3n; Sat, 13 Mar 2010 12:48:36 +0100 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) X-Provags-ID: V01U2FsdGVkX1+M8O2bzwIEpAs5fKi02MFqnLyoq5tE/e9l79y uGEaRd4z2PJt6nz9eGLDBjIDHzUyp6cxtH6SEV/xz1UYU7sZWd aD/8NVJ3no2b7oTMpNZhCS/8Mxd2neDcLcACE0Xow0= X-BeenThere: python-mode@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: For issues concerning python-mode for X/Emacs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Errors-To: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Xref: news.gmane.org gmane.emacs.python-mode:394 gmane.emacs.bugs:35547 Archived-At: Hi, python.el provides templates inserting compound statements like `if', `for' etc. - a nice feature. AFAIS it's for use in two ways - 1) as an abbrev expanded 2) by calling `python-expand-template', afterwards the user is prompted. See only the first usage mentioned in the docu. The latter may be more suitable for beginners, as it's done expressingly only - no automatic abbreviation expansion. Suggest to extend the docstring of `python-use-skeletons' with something like "In any case you may use skeletons, calling `python-expand-template'." Also description of `define-derived-mode python-mode' which closes now: "An abbrev table is set up with skeleton expansions for compound statement templates." should mention `python-use-skeletons'. Thanks all Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/ GNU Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2010-02-19