+2007-11-04 Juanma Barranquero <lekktu@gmail.com>
+
+ * abbrev.el (define-abbrev-table): Doc fix.
+
2007-11-04 Thien-Thi Nguyen <ttn@gnuvola.org>
* info.el (Info-revert-buffer-function): New func.
* follow.el (follow-stop-intercept-process-output):
Use `follow-call-process-filter' rather than `process-filter'.
Simplify.
- * vc.el (vc0iff): Prevent errors in an edge case.
2007-10-11 Eric S. Raymond <esr@snark.thyrsus.com>
,(if (symbolp var)
`(if (local-variable-p ',var)
(default-value ',var)))))))
-
+
;;; Code that used to be implemented in src/abbrev.c
(if (listp (cdr x))
(append (cdr x) tables) (cons (cdr x) tables)))))
tables))))
-
+
(defun abbrev-symbol (abbrev &optional table)
"Return the symbol representing abbrev named ABBREV.
sym)))))))
(if (symbol-value sym)
sym)))
-
+
(defun abbrev-expansion (abbrev &optional table)
"Return the string that ABBREV expands into in the current buffer.
(setq name (buffer-substring start end))
(goto-char pos) ; Restore point.
(list (abbrev-symbol name tables) name start end)))
-
+
(while (and tables (not (car res)))
(let* ((table (pop tables))
(enable-fun (abbrev-table-get table :enable-function)))
abbreviations.
- `:case-fixed' non-nil means that abbreviations are looked up without
case-folding, and the expansion is not capitalized/upcased.
-- `:regexp' describes the form of abbrevs. It defaults to \\<\\(\\w+\\)\\W* which
+- `:regexp' describes the form of abbrevs. It defaults to \\=\\<\\(\\w+\\)\\W* which
means that an abbrev can only be a single word. The submatch 1 is treated
as the potential name of an abbrev.
- `:enable-function' can be set to a function of no argument which returns