help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Form to store/recover buffer modified state?


From: Joakim Hove
Subject: Form to store/recover buffer modified state?
Date: Thu, 28 Aug 2003 22:08:14 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

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  / address@hidden  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]