reverse-merged the python-mode snippet directory, will forward merge the trunk again

This commit is contained in:
capitaomorte
2009-07-22 10:38:44 +00:00
parent 408413a811
commit 519c3514d2
3 changed files with 38 additions and 34 deletions

View File

@@ -36,23 +36,19 @@ class ${1:ClassName}(${2:object}):
indent)))
}
${4:$
(let* ((indent (concat "\n" (make-string (current-column) 32)))
(self-vars (mapconcat
'(lambda (x)
(if (not (string= (nth 0 x) ""))
(concat "self._" (nth 0 x) " = " (nth 0 x))))
(mapcar
'(lambda (x)
(mapcar
'(lambda (x)
(replace-regexp-in-string "[[:blank:]]*$" ""
(replace-regexp-in-string "^[[:blank:]]*" "" x)))
x))
(mapcar '(lambda (x) (split-string x "="))
(split-string text ",")))
(concat indent))))
(if (string= self-vars "")
indent
self-vars))
(mapconcat
'(lambda (x)
(if (not (string= (nth 0 x) ""))
(concat "self._" (nth 0 x) " = " (nth 0 x))))
(mapcar
'(lambda (x)
(mapcar
'(lambda (x)
(replace-regexp-in-string "[[:blank:]]*$" ""
(replace-regexp-in-string "^[[:blank:]]*" "" x)))
x))
(mapcar '(lambda (x) (split-string x "="))
(split-string text ",")))
(concat "\n" (make-string (current-column) 32)))
}
$0