# HG changeset patch # User Chong Yidong # Date 1174154605 0 # Node ID 8730dda8a05bef29102dd4469ffbd46b77d8d54a # Parent def0970bb061df847095551d4924afdb495a0ee3 (tempo-insert): Deal with 'r> if it appears specified with a prompt argument. diff -r def0970bb061 -r 8730dda8a05b lisp/tempo.el --- a/lisp/tempo.el Sat Mar 17 18:02:12 2007 +0000 +++ b/lisp/tempo.el Sat Mar 17 18:03:25 2007 +0000 @@ -266,6 +266,8 @@ that you often should place this item after the text you want on the line. - `r>': Like `r', but it also indents the region. + - (r> PROMPT ): Like (r ...), but is also indents + the region. - `n>': Inserts a newline and indents line. - `o': Like `%' but leaves the point before the newline. - nil: It is ignored. @@ -352,6 +354,13 @@ (goto-char tempo-region-stop) (tempo-insert-prompt-compat (cdr element)))) + ((and (consp element) + (eq (car element) 'r>)) (if on-region + (progn + (goto-char tempo-region-stop) + (indent-region (mark) (point) nil)) + (tempo-insert-prompt-compat + (cdr element)))) ((and (consp element) (eq (car element) 's)) (tempo-insert-named (car (cdr element)))) ((and (consp element)