comparison lisp/utils/forms.el @ 48:56c54cf7c5b6 r19-16b90

Import from CVS: tag r19-16b90
author cvs
date Mon, 13 Aug 2007 08:56:04 +0200
parents b82b59fe008d
children 131b0175ea99
comparison
equal deleted inserted replaced
47:11c6df210d7f 48:56c54cf7c5b6
298 ;;; Global variables and constants: 298 ;;; Global variables and constants:
299 299
300 (provide 'forms) ;;; official 300 (provide 'forms) ;;; official
301 (provide 'forms-mode) ;;; for compatibility 301 (provide 'forms-mode) ;;; for compatibility
302 302
303 (defconst forms-version (substring "$Revision: 1.1.1.2 $" 11 -2) 303 (defconst forms-version (substring "$Revision: 1.2 $" 11 -2)
304 "The version number of forms-mode (as string). The complete RCS id is: 304 "The version number of forms-mode (as string). The complete RCS id is:
305 305
306 $Id: forms.el,v 1.1.1.2 1996/12/18 03:54:04 steve Exp $") 306 $Id: forms.el,v 1.2 1997/08/21 06:24:16 steve Exp $")
307 307
308 (defvar forms-mode-hooks nil 308 (defvar forms-mode-hooks nil
309 "Hook functions to be run upon entering Forms mode.") 309 "Hook functions to be run upon entering Forms mode.")
310 310
311 ;;; Mandatory variables - must be set by evaluating the control file. 311 ;;; Mandatory variables - must be set by evaluating the control file.
1675 1675
1676 (setq buffer-read-only nil) 1676 (setq buffer-read-only nil)
1677 (if forms-use-text-properties 1677 (if forms-use-text-properties
1678 (let ((inhibit-read-only t)) 1678 (let ((inhibit-read-only t))
1679 (set-text-properties (point-min) (point-max) nil))) 1679 (set-text-properties (point-min) (point-max) nil)))
1680 (if forms-use-extents
1681 (map-extents '(lambda (x ignore) (detach-extent x) nil)))
1680 (erase-buffer) 1682 (erase-buffer)
1681 1683
1682 ;; Verify the number of fields, extend forms--the-record-list if needed. 1684 ;; Verify the number of fields, extend forms--the-record-list if needed.
1683 (if (= (length forms--the-record-list) forms-number-of-fields) 1685 (if (= (length forms--the-record-list) forms-number-of-fields)
1684 nil 1686 nil