aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Monnier2010-08-30 15:03:05 +0200
committerStefan Monnier2010-08-30 15:03:05 +0200
commitf291fe60fb9ed250ded34b6b9ed26e085f119a4e (patch)
treeb46060fd239d808d5873eb871ea4ccad8de9497b /lisp/progmodes/python.el
parentcd196f125640597cb91f3f66ae2608c6923044fa (diff)
downloademacs-f291fe60fb9ed250ded34b6b9ed26e085f119a4e.tar.gz
emacs-f291fe60fb9ed250ded34b6b9ed26e085f119a4e.zip
Use `declare' in defmacros.
* lisp/window.el (save-selected-window): * lisp/subr.el (with-temp-file, with-temp-message, with-syntax-table): * lisp/progmodes/python.el (def-python-skeleton): * lisp/net/dbus.el (dbus-ignore-errors): * lisp/jka-cmpr-hook.el (with-auto-compression-mode): * lisp/international/mule.el (with-category-table): * lisp/emacs-lisp/timer.el (with-timeout): * lisp/emacs-lisp/lisp-mnt.el (lm-with-file): * lisp/emacs-lisp/eieio.el (with-slots): * lisp/emacs-lisp/easymenu.el (easy-menu-define): * lisp/emacs-lisp/debug.el (debugger-env-macro): * lisp/emacs-lisp/cl-compat.el (Multiple-value-bind, Multiple-value-setq) (Multiple-value-call, Multiple-value-prog1): * lisp/emacs-lisp/cl-seq.el (cl-parsing-keywords, cl-check-key) (cl-check-test-nokey, cl-check-test, cl-check-match): Move indent and edebug rule to definition. * lisp/emacs-lisp/lisp-mode.el (save-selected-window) (with-current-buffer, combine-after-change-calls) (with-output-to-string, with-temp-file, with-temp-buffer) (with-temp-message, with-syntax-table, read-if, eval-after-load) (dolist, dotimes, when, unless): * lisp/emacs-lisp/byte-run.el (inline): Remove indent rule, redundant.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 849951a633a..2690d399411 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2285,6 +2285,7 @@ the if condition."
2285(eval-when-compile 2285(eval-when-compile
2286 ;; Define a user-level skeleton and add it to the abbrev table. 2286 ;; Define a user-level skeleton and add it to the abbrev table.
2287(defmacro def-python-skeleton (name &rest elements) 2287(defmacro def-python-skeleton (name &rest elements)
2288 (declare (indent 2))
2288 (let* ((name (symbol-name name)) 2289 (let* ((name (symbol-name name))
2289 (function (intern (concat "python-insert-" name)))) 2290 (function (intern (concat "python-insert-" name))))
2290 `(progn 2291 `(progn
@@ -2297,7 +2298,6 @@ the if condition."
2297 (define-skeleton ,function 2298 (define-skeleton ,function
2298 ,(format "Insert Python \"%s\" template." name) 2299 ,(format "Insert Python \"%s\" template." name)
2299 ,@elements))))) 2300 ,@elements)))))
2300(put 'def-python-skeleton 'lisp-indent-function 2)
2301 2301
2302;; From `skeleton-further-elements' set below: 2302;; From `skeleton-further-elements' set below:
2303;; `<': outdent a level; 2303;; `<': outdent a level;