On Wed Mar 04 2009 at 16:26, Nick Dokos <nicholas.do...@hp.com> wrote:
> Nick Dokos <nicholas.do...@hp.com> wrote: > >> Bill White <bi...@wolfram.com> wrote: >> >> > On Wed Mar 04 2009 at 12:38, Nick Dokos <nicholas.do...@hp.com> wrote: >> > >> > > Bill White <bi...@wolfram.com> wrote: >> > > >> > >> Hi all - >> > >> >> > >> "Buffer *temp* modified; kill anyway?" is driving me nuts. >> > >> >> > >> Has anyone seen this error message when html-exporting pages that >> > >> contain #+begin_src ? I get this once for every #+begin_src >> > >> ... #+end_src group on a page. I assume it's coming from htmlize.el, >> > >> but I haven't been able to isolate the problem with edebug. I'm using >> > >> the latest htmlize.el from >> > >> http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el >> > >> >> > >> Any ideas what's going on and how to silence it? If it weren't for this >> > >> I'd be able to publish without babysitting the process through >> > >> source-heavy files. >> > >> >> > > >> > > Bill, >> > > >> >> .... >> >> So I don't understand the difference in behavior between the two cases, >> but maybe this provides enough detail for a better elisper than me to >> understand and explain to the rest of us. >> > > OK - I think I know why: the mode of the temp buffer is set according > to the language in the begin_src construct: emacs-lisp-mode in one > case, message-mode (and a bunch of minor modes) in the other. The > difference is that the latter associates the buffer with a file, > whereas the former does not. It's that difference that makes > kill-buffer behave differently. > > I suspect that the thing to do is to mark the buffer > unmodified. Here's a patch: That did it - what a relief! Your elisp skills are pretty sharp. I was looking in entirely the wrong place to solve this. Many thanks! bw -- Bill White . bi...@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians." _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode