aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/abbrev.el11
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c7d1b834125..cb936a3265a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * abbrev.el (abbrev-symbol): Correct let->let*.
4 (abbrev--before-point): Only use abbrev-start-location if before point.
5
12007-10-31 Juanma Barranquero <lekktu@gmail.com> 62007-10-31 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * strokes.el (strokes-alphabetic-lessp): Simplify. Doc fix. 8 * strokes.el (strokes-alphabetic-lessp): Simplify. Doc fix.
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 04b8a8ce97c..87a31df8112 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -649,8 +649,8 @@ The default is to try buffer's mode-specific abbrev table, then global table."
649 (let ((tables (abbrev--active-tables table)) 649 (let ((tables (abbrev--active-tables table))
650 sym) 650 sym)
651 (while (and tables (not (symbol-value sym))) 651 (while (and tables (not (symbol-value sym)))
652 (let ((table (pop tables)) 652 (let* ((table (pop tables))
653 (case-fold (not (abbrev-table-get table :case-fixed)))) 653 (case-fold (not (abbrev-table-get table :case-fixed))))
654 (setq tables (append (abbrev-table-get table :parents) tables)) 654 (setq tables (append (abbrev-table-get table :parents) tables))
655 ;; In case the table doesn't set :case-fixed but some of the 655 ;; In case the table doesn't set :case-fixed but some of the
656 ;; abbrevs do, we have to be careful. 656 ;; abbrevs do, we have to be careful.
@@ -693,9 +693,10 @@ then ABBREV is looked up in that table only."
693 (delete-region start (1+ start))) 693 (delete-region start (1+ start)))
694 (skip-syntax-backward " ") 694 (skip-syntax-backward " ")
695 (setq end (point)) 695 (setq end (point))
696 (setq name (buffer-substring start end)) 696 (when (> end start)
697 (goto-char pos) ; Restore point. 697 (setq name (buffer-substring start end))
698 (list (abbrev-symbol name tables) name start end)) 698 (goto-char pos) ; Restore point.
699 (list (abbrev-symbol name tables) name start end)))
699 700
700 (while (and tables (not (car res))) 701 (while (and tables (not (car res)))
701 (let* ((table (pop tables)) 702 (let* ((table (pop tables))