+2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * abbrev.el (unexpand-abbrev): Better preserve markers.
+
2008-06-05 Glenn Morris <rgm@gnu.org>
* emacs-lisp/autoload.el (autoload-rubric): New function,
;; to do the expansion.
(let ((val (symbol-value last-abbrev)))
(unless (stringp val)
- (error "value of abbrev-symbol must be a string"))
- (delete-region (point) (+ (point) (length val)))
+ (error "Value of abbrev-symbol must be a string"))
;; Don't inherit properties here; just copy from old contents.
(insert last-abbrev-text)
+ ;; Delete after inserting, to better preserve markers.
+ (delete-region (point) (+ (point) (length val)))
(setq last-abbrev-text nil))))))
(defun abbrev--write (sym)