diff options
| author | Stefan Monnier | 2007-07-23 21:49:42 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-23 21:49:42 +0000 |
| commit | ae59e8884655055609aafcd9bf2d405936018802 (patch) | |
| tree | 94386ffc397aa5a6197d71d9c379ee6f8a172333 | |
| parent | 6145f7fdfe318bc3f13aa03c083bfcd489bd9d83 (diff) | |
| download | emacs-ae59e8884655055609aafcd9bf2d405936018802.tar.gz emacs-ae59e8884655055609aafcd9bf2d405936018802.zip | |
(ses-cleanup): Prevent Emacs from spuriously checking if the
underlying file is uptodate.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ses.el | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9ed3c322922..46624565600 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-07-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * ses.el (ses-cleanup): Prevent Emacs from spuriously checking if the | ||
| 4 | underlying file is uptodate. | ||
| 5 | |||
| 1 | 2007-07-23 Richard Stallman <rms@gnu.org> | 6 | 2007-07-23 Richard Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/octave-inf.el (inferior-octave-prompt): Accept .exe. | 8 | * progmodes/octave-inf.el (inferior-octave-prompt): Accept .exe. |
diff --git a/lisp/ses.el b/lisp/ses.el index 4f51c803de1..c729ca4b432 100644 --- a/lisp/ses.el +++ b/lisp/ses.el | |||
| @@ -1470,17 +1470,22 @@ Narrows the buffer to show only the print area. Gives it `read-only' and | |||
| 1470 | (overlay-put ses--curcell-overlay 'face 'underline)) | 1470 | (overlay-put ses--curcell-overlay 'face 'underline)) |
| 1471 | 1471 | ||
| 1472 | (defun ses-cleanup () | 1472 | (defun ses-cleanup () |
| 1473 | "Cleanup when changing a buffer from SES mode to something else. Delete | 1473 | "Cleanup when changing a buffer from SES mode to something else. |
| 1474 | overlay, remove special text properties." | 1474 | Delete overlays, remove special text properties." |
| 1475 | (widen) | 1475 | (widen) |
| 1476 | (let ((inhibit-read-only t) | 1476 | (let ((inhibit-read-only t) |
| 1477 | ;; When reverting, hide the buffer name, otherwise Emacs will ask | ||
| 1478 | ;; the user "the file is modified, do you really want to make | ||
| 1479 | ;; modifications to this buffer", where the "modifications" refer to | ||
| 1480 | ;; the irrelevant set-text-properties below. | ||
| 1481 | (buffer-file-name nil) | ||
| 1477 | (was-modified (buffer-modified-p))) | 1482 | (was-modified (buffer-modified-p))) |
| 1478 | ;;Delete read-only, keymap, and intangible properties | 1483 | ;;Delete read-only, keymap, and intangible properties |
| 1479 | (set-text-properties (point-min) (point-max) nil) | 1484 | (set-text-properties (point-min) (point-max) nil) |
| 1480 | ;;Delete overlay | 1485 | ;;Delete overlay |
| 1481 | (mapc 'delete-overlay (overlays-in (point-min) (point-max))) | 1486 | (mapc 'delete-overlay (overlays-in (point-min) (point-max))) |
| 1482 | (unless was-modified | 1487 | (unless was-modified |
| 1483 | (set-buffer-modified-p nil)))) | 1488 | (restore-buffer-modified-p nil)))) |
| 1484 | 1489 | ||
| 1485 | ;;;###autoload | 1490 | ;;;###autoload |
| 1486 | (defun ses-mode () | 1491 | (defun ses-mode () |