emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/tempo.el,v


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/lisp/tempo.el,v
Date: Mon, 12 Mar 2007 22:09:10 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kim F. Storm <kfstorm>  07/03/12 22:09:09

Index: tempo.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/tempo.el,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- tempo.el    21 Jan 2007 03:53:10 -0000      1.33
+++ tempo.el    12 Mar 2007 22:09:09 -0000      1.34
@@ -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 <NAME> <NOINSERT>): 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.
@@ -353,6 +355,13 @@
                                       (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)
              (eq (car element) 'l)) (mapcar (function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]