1 |
;;; tempo.el --- Flexible template insertion |
;;; tempo.el --- Flexible template insertion |
2 |
|
|
3 |
;; Copyright (C) 1994, 1995 Free Software Foundation, Inc. |
;; Copyright (C) 1994, 1995, 2004 Free Software Foundation, Inc. |
4 |
|
|
5 |
;; Author: David K}gedal <davidk@lysator.liu.se> |
;; Author: David K}gedal <davidk@lysator.liu.se> |
6 |
;; Created: 16 Feb 1994 |
;; Created: 16 Feb 1994 |
172 |
(defvar tempo-marks nil |
(defvar tempo-marks nil |
173 |
"A list of marks to jump to with `\\[tempo-forward-mark]' and `\\[tempo-backward-mark]'.") |
"A list of marks to jump to with `\\[tempo-forward-mark]' and `\\[tempo-backward-mark]'.") |
174 |
|
|
175 |
(defvar tempo-match-finder "\\b\\([^\\b]+\\)\\=" |
(defvar tempo-match-finder "\\b\\([[:word:]]+\\)\\=" |
176 |
"The regexp or function used to find the string to match against tags. |
"The regexp or function used to find the string to match against tags. |
177 |
|
|
178 |
If `tempo-match-finder is a string, it should contain a regular |
If `tempo-match-finder is a string, it should contain a regular |
182 |
each string in the tag list. If one is found, the whole text between |
each string in the tag list. If one is found, the whole text between |
183 |
the first \\( and the point is replaced with the inserted template. |
the first \\( and the point is replaced with the inserted template. |
184 |
|
|
185 |
You will probably want to include \\ \= at the end of the regexp to |
You will probably want to include \\=\\= at the end of the regexp to |
186 |
make sure that the string is matched only against text adjacent to the |
make sure that the string is matched only against text adjacent to the |
187 |
point. |
point. |
188 |
|
|