summaryrefslogtreecommitdiff
path: root/lisp/skeleton.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-12-22 19:37:31 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-12-22 19:37:31 +0000
commit26736ce36eb0861020f21ca52f78e49562794894 (patch)
tree84a6cc2e3be3da2a009c787e15c4710a7fd26c3b /lisp/skeleton.el
parent95fa4fd79582445edfd57f55e8a84f7f25df16de (diff)
downloademacs-26736ce36eb0861020f21ca52f78e49562794894.tar.gz
(skeleton-internal-1): Make sure the first line of
the region is also re-indented.
Diffstat (limited to 'lisp/skeleton.el')
-rw-r--r--lisp/skeleton.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/skeleton.el b/lisp/skeleton.el
index b75833954fc..7e29eb6a322 100644
--- a/lisp/skeleton.el
+++ b/lisp/skeleton.el
@@ -426,7 +426,8 @@ automatically, and you are prompted to fill in the variable parts.")))
((eq element '>)
(if (and skeleton-regions
(eq (nth 1 skeleton) '_))
- (indent-region (point) (car skeleton-regions) nil)
+ (indent-region (line-beginning-position)
+ (car skeleton-regions) nil)
(indent-according-to-mode)))
((eq element '_)
(if skeleton-regions