diff options
| author | Karl Heuer | 1994-05-07 01:52:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-05-07 01:52:42 +0000 |
| commit | 724244d233e07e41b83c8697dbbfcadf09841cbb (patch) | |
| tree | dc8e265c69c80f9780a64f5a162ac8e77dcf850f /lisp/forms.el | |
| parent | f86f73c33dc8eb7cf53cac3fbbfabde3eb9678f1 (diff) | |
| download | emacs-724244d233e07e41b83c8697dbbfcadf09841cbb.tar.gz emacs-724244d233e07e41b83c8697dbbfcadf09841cbb.zip | |
(forms-mode): Set visited file name to nil to prevent overwrite and autosave.
The previous method didn't go far enough.
Diffstat (limited to 'lisp/forms.el')
| -rw-r--r-- | lisp/forms.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/forms.el b/lisp/forms.el index d6ad21092a7..b86f9bd6448 100644 --- a/lisp/forms.el +++ b/lisp/forms.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;;; Copyright (C) 1991, 1993 Free Software Foundation, Inc. | 2 | ;;; Copyright (C) 1991, 1993 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Johan Vromans <jv@nl.net> | 4 | ;; Author: Johan Vromans <jv@nl.net> |
| 5 | ;; Version: $Revision: 2.3 $ | 5 | ;; Version: $Revision: 2.4 $ |
| 6 | 6 | ||
| 7 | ;; This file is part of GNU Emacs. | 7 | ;; This file is part of GNU Emacs. |
| 8 | 8 | ||
| @@ -266,10 +266,10 @@ | |||
| 266 | (provide 'forms) ;;; official | 266 | (provide 'forms) ;;; official |
| 267 | (provide 'forms-mode) ;;; for compatibility | 267 | (provide 'forms-mode) ;;; for compatibility |
| 268 | 268 | ||
| 269 | (defconst forms-version (substring "$Revision: 2.3 $" 11 -2) | 269 | (defconst forms-version (substring "$Revision: 2.4 $" 11 -2) |
| 270 | "The version number of forms-mode (as string). The complete RCS id is: | 270 | "The version number of forms-mode (as string). The complete RCS id is: |
| 271 | 271 | ||
| 272 | $Id: forms.el,v 2.3 1993/10/21 00:43:51 rms Exp kwzh $") | 272 | $Id: forms.el,v 2.4 1994/03/28 23:13:07 kwzh Exp kwzh $") |
| 273 | 273 | ||
| 274 | (defvar forms-mode-hooks nil | 274 | (defvar forms-mode-hooks nil |
| 275 | "Hook functions to be run upon entering Forms mode.") | 275 | "Hook functions to be run upon entering Forms mode.") |
| @@ -505,8 +505,7 @@ Commands: Equivalent keys in read-only mode: | |||
| 505 | (make-local-variable 'forms--dynamic-text) | 505 | (make-local-variable 'forms--dynamic-text) |
| 506 | 506 | ||
| 507 | ;; Prevent accidental overwrite of the control file and autosave. | 507 | ;; Prevent accidental overwrite of the control file and autosave. |
| 508 | (setq buffer-file-name nil) | 508 | (set-visited-file-name nil) |
| 509 | (auto-save-mode nil) | ||
| 510 | 509 | ||
| 511 | ;; Prepare this buffer for further processing. | 510 | ;; Prepare this buffer for further processing. |
| 512 | (setq buffer-read-only nil) | 511 | (setq buffer-read-only nil) |