diff options
| author | Stefan Monnier | 2007-10-31 15:47:02 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-31 15:47:02 +0000 |
| commit | 2b86bfb1fd50af27d41aff1034df08be2cdf82b1 (patch) | |
| tree | dddf6866dfd8e878ab45639564dce68ec999c7af | |
| parent | 26e966803ca07cf77406ff6a568649ac5c670bb4 (diff) | |
| download | emacs-2b86bfb1fd50af27d41aff1034df08be2cdf82b1.tar.gz emacs-2b86bfb1fd50af27d41aff1034df08be2cdf82b1.zip | |
(abbrev-symbol): Correct let->let*.
(abbrev--before-point): Only use abbrev-start-location if before point.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/abbrev.el | 11 |
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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-10-31 Juanma Barranquero <lekktu@gmail.com> | 6 | 2007-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)) |