From: Ian Eure <ian@digg.com>
To: 2238@emacsbugs.donarmstrong.com
Subject: bug#2238: Acknowledgement (23.0.90; [PATCH] Regression in python.el)
Date: Sun, 8 Feb 2009 14:44:47 -0800 [thread overview]
Message-ID: <27292569-94DB-4C83-A2EF-7BCBF3FFF339@digg.com> (raw)
In-Reply-To: <handler.2238.B.123413131213357.ack@emacsbugs.donarmstrong.com>
[-- Attachment #1: Type: text/plain, Size: 41 bytes --]
Forgot to attach the patch, here it is.
[-- Attachment #2: python-use-skeletons-CVSHEAD.diff --]
[-- Type: application/octet-stream, Size: 1055 bytes --]
--- python.el.~1.93.~ 2009-02-02 20:13:17.000000000 -0800
+++ python.el 2009-02-08 14:10:37.000000000 -0800
@@ -2205,6 +2205,13 @@
\f
;;;; Skeletons
+(defcustom python-use-skeletons nil
+ "Non-nil means template skeletons will be automagically inserted.
+This happens when pressing \"if<SPACE>\", for example, to prompt for
+the if condition."
+ :type 'boolean
+ :group 'python)
+
(define-abbrev-table 'python-mode-abbrev-table ()
"Abbrev table for Python mode."
:case-fixed t
@@ -2221,9 +2228,10 @@
`(progn
;; Usual technique for inserting a skeleton, but expand
;; to the original abbrev instead if in a comment or string.
- (define-abbrev python-mode-abbrev-table ,name ""
- ',function
- nil t) ; system abbrev
+ (if python-use-skeletons
+ (define-abbrev python-mode-abbrev-table ,name ""
+ ',function
+ nil t)) ; system abbrev
(define-skeleton ,function
,(format "Insert Python \"%s\" template." name)
,@elements)))))
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
next prev parent reply other threads:[~2009-02-08 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ii3aej9dvw.fsf@fencepost.gnu.org>
2009-02-08 22:13 ` bug#2238: 23.0.90; [PATCH] Regression in python.el Ian Eure
[not found] ` <handler.2238.B.123413131213357.ack@emacsbugs.donarmstrong.com>
2009-02-08 22:44 ` Ian Eure [this message]
2009-02-09 0:32 ` bug#2238: Acknowledgement (23.0.90; [PATCH] Regression in python.el) Stefan Monnier
2009-02-09 6:12 ` Ian Eure
2009-02-13 4:20 ` bug#2238: marked as done " Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27292569-94DB-4C83-A2EF-7BCBF3FFF339@digg.com \
--to=ian@digg.com \
--cc=2238@emacsbugs.donarmstrong.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.