unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Form to store/recover buffer modified state?
@ 2003-08-28 20:08 Joakim Hove
  2003-09-03  1:29 ` Jesper Harder
  0 siblings, 1 reply; 5+ messages in thread
From: Joakim Hove @ 2003-08-28 20:08 UTC (permalink / raw)



Hello,

I have some buffer manipulating[1] functions which are wrapped in a
construct like this:

(let ((modified (buffer-modified-p)))
  ;;
  (lots of code)
  ;;
  (if (not modified) (set-buffer-modifed-p nil)))

To ensure that the buffer is not marked as modified when the function
has finished executing.  Is there a special form, i.e. resembling
(save-excursion ) to achieve this?


regards Joakim


[1] The manipulations in question are typically text properties,
    i.e. manipulations which should not be saved.



-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / hove@bccs.no  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-05 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28 20:08 Form to store/recover buffer modified state? Joakim Hove
2003-09-03  1:29 ` Jesper Harder
2003-09-03  7:06   ` Joakim Hove
2003-09-03 15:48     ` Jesper Harder
2003-09-05 16:18   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).