X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ae940284fa77a6928f5162b7de859e67bdc7506c..7031be6d49cb78d4cc4a2604b899144824abfeca:/lisp/expand.el diff --git a/lisp/expand.el b/lisp/expand.el index c590c0f273..544d0b1cb1 100644 --- a/lisp/expand.el +++ b/lisp/expand.el @@ -1,7 +1,6 @@ ;;; expand.el --- make abbreviations more usable -;; Copyright (C) 1995, 1996, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1995-1996, 2001-2011 Free Software Foundation, Inc. ;; Author: Frederic Lepied ;; Maintainer: Frederic Lepied @@ -368,7 +367,7 @@ See `expand-add-abbrevs'. Value is non-nil if expansion was done." nil)) (defun expand-do-expansion () - (delete-backward-char (length last-abbrev-text)) + (delete-char (- (length last-abbrev-text))) (let* ((vect (symbol-value last-abbrev)) (text (aref vect 0)) (position (aref vect 1)) @@ -470,7 +469,6 @@ This is used only in conjunction with `expand-add-abbrevs'." (beginning-of-defun) (point)) (point-min))) - (here (point)) (state (parse-partial-sexp lim (point)))) (cond ((nth 3 state) 'string) @@ -504,5 +502,4 @@ This is used only in conjunction with `expand-add-abbrevs'." ;; run load hooks (run-hooks 'expand-load-hook) -;; arch-tag: fee53e9e-30e3-4ef3-b191-9785e1f8e885 ;;; expand.el ends here