|
Re: File changed during load: msg#00015emacs.nxml.general
Lennart Borgman writes: > It was perhaps me not beeing accurate enough. I meant something that did > not regard just property changes as a buffer change. But maybe there > already is such a thing in Emacs? I mean this is surely taken into > account in normal fontifying? Surprisingly enough, I think there isn't. About fontifying, lazy-lock for example have 'save-buffer-state'. Other packages define their own macros to do that. I think the point is that there is no simple way to say "keep the flag unmodified if I modify only tprops". While it is possible to "keep the flag unmodified if I modify the buffer, in any way" (modifying text as well as tprops). I think it's what are doing all the macros/functions like 'with-buffer-unmodified', 'save-buffer-state', etc. (restoring the state after eval'ing their body, *not* depending on what the body makes). For example, try the following (by 'C-x C-e' after the closing parenthesis): (with-current-buffer (generate-new-buffer "*test*") (nxml-with-unmodifying-text-property-changes (insert "some text"))) You've got a new buffer, named "*test*", modified since its creation because the insertion of "some text", but still with the modification flag to NIL. Well, all that is what I *think*. If you want more precise informations, maybe the best is to ask on c.emacs, g.e.help or emacs-devel. --drkm ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hkiaer8/M=362131.6882499.7825260.1510227/D=groups/S=1706030390:TM/Y=YAHOO/EXP=1123284343/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/emacs-nxml-mode/ <*> To unsubscribe from this group, send an email to: emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: File changed during load: 00015, Lennart Borgman |
|---|---|
| Previous by Thread: | Re: Re: File changed during loadi: 00015, Lennart Borgman |
| Next by Thread: | Re: 'Surround with tag' behaviour: 00015, Josh Sled |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |