Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
ae59e888
Commit
ae59e888
authored
Jul 23, 2007
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ses-cleanup): Prevent Emacs from spuriously checking if the
underlying file is uptodate.
parent
6145f7fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/ses.el
lisp/ses.el
+8
-3
No files found.
lisp/ChangeLog
View file @
ae59e888
2007-07-23 Stefan Monnier <monnier@iro.umontreal.ca>
* ses.el (ses-cleanup): Prevent Emacs from spuriously checking if the
underlying file is uptodate.
2007-07-23 Richard Stallman <rms@gnu.org>
* progmodes/octave-inf.el (inferior-octave-prompt): Accept .exe.
lisp/ses.el
View file @
ae59e888
...
...
@@ -1470,17 +1470,22 @@ Narrows the buffer to show only the print area. Gives it `read-only' and
(
overlay-put
ses--curcell-overlay
'face
'underline
))
(
defun
ses-cleanup
()
"Cleanup when changing a buffer from SES mode to something else.
Delete
overlay
, remove special text properties."
"Cleanup when changing a buffer from SES mode to something else.
Delete overlays
, remove special text properties."
(
widen
)
(
let
((
inhibit-read-only
t
)
;; When reverting, hide the buffer name, otherwise Emacs will ask
;; the user "the file is modified, do you really want to make
;; modifications to this buffer", where the "modifications" refer to
;; the irrelevant set-text-properties below.
(
buffer-file-name
nil
)
(
was-modified
(
buffer-modified-p
)))
;;Delete read-only, keymap, and intangible properties
(
set-text-properties
(
point-min
)
(
point-max
)
nil
)
;;Delete overlay
(
mapc
'delete-overlay
(
overlays-in
(
point-min
)
(
point-max
)))
(
unless
was-modified
(
set
-buffer-modified-p
nil
))))
(
restore
-buffer-modified-p
nil
))))
;;;###autoload
(
defun
ses-mode
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment