diff options
| author | David Aspinall | 2003-03-03 20:46:28 +0000 |
|---|---|---|
| committer | David Aspinall | 2003-03-03 20:46:28 +0000 |
| commit | 081911afab12d38b69efcb98594801e67fec1314 (patch) | |
| tree | 5c5a109c48be3a58aaff8ec2a84098196d9ff4a0 /generic/proof-script.el | |
| parent | d5883f7000ca8c8b2f0cb9a896cf32dd975a13f4 (diff) | |
Fix sticky mode properties for X-Symbol
Diffstat (limited to 'generic/proof-script.el')
| -rw-r--r-- | generic/proof-script.el | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index 8c971596..12a6e676 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -2629,17 +2629,18 @@ finish setup which depends on specific proof assistant configuration." ;; Preamble: make this mode class "pg-sticky" so that renaming file ;; to something different doesn't change the mode, no matter what ;; the filename. This is a hack so that write-file will work: - ;; otherwise Emacs insists (as of XEmacs 21.1.9 at least) on - ;; re-setting the mode, which leads to problems with synchronization - ;; and losing extents. (Attempt to catch this in proof-mode by - ;; looking for active scripting buffer fails; perhaps because of - ;; kill buffer function) - ;; [NB: could do this at top level at load time] - - ;; FIXME: temporarily disable this for X-Symbol 4.45 - ;; (put major-mode 'mode-class 'pg-sticky) + ;; otherwise Emacs insists (XEmacs 21.1.9 onwards) on re-setting the + ;; mode, which leads to problems with synchronization and losing + ;; extents. (Attempt to catch this in proof-mode by looking for + ;; active scripting buffer fails; perhaps because of kill buffer + ;; function) [NB: could do this at top level at load time] + + (put major-mode 'mode-class 'pg-sticky) - ;; First, define some values if they aren't defined already. + ;; Make X-symbol ignore that we've asked for fixed mode + (put major-mode 'x-symbol-mode-disable 'ignore) + + ;; Now, define some values if they aren't defined already. (unless proof-mode-for-script (setq proof-mode-for-script major-mode)) |
