comparison lisp/abbrev.el @ 91367:c70e45a7acfd

Merge from emacs--devo--0 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
author Miles Bader <miles@gnu.org>
date Wed, 30 Jan 2008 07:57:28 +0000
parents 606f2d163a64 2957493cf354
children
comparison
equal deleted inserted replaced
91366:86f3a8f0a3a6 91367:c70e45a7acfd
522 (let* ((sym (intern-soft "" table))) 522 (let* ((sym (intern-soft "" table)))
523 (dotimes (i (length table)) 523 (dotimes (i (length table))
524 (aset table i 0)) 524 (aset table i 0))
525 ;; Preserve the table's properties. 525 ;; Preserve the table's properties.
526 (assert sym) 526 (assert sym)
527 (intern sym table) 527 (let ((newsym (intern "" table)))
528 (set newsym nil) ; Make sure it won't be confused for an abbrev.
529 (setplist newsym (symbol-plist sym)))
528 (abbrev-table-put table :abbrev-table-modiff 530 (abbrev-table-put table :abbrev-table-modiff
529 (1+ (abbrev-table-get table :abbrev-table-modiff))))) 531 (1+ (abbrev-table-get table :abbrev-table-modiff)))))
530 532
531 (defun define-abbrev (table name expansion &optional hook &rest props) 533 (defun define-abbrev (table name expansion &optional hook &rest props)
532 "Define an abbrev in TABLE named NAME, to expand to EXPANSION and call HOOK. 534 "Define an abbrev in TABLE named NAME, to expand to EXPANSION and call HOOK.