[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Buffer *temp* modified; kill anyway?
From: |
Bill White |
Subject: |
Re: [Orgmode] Buffer *temp* modified; kill anyway? |
Date: |
Wed, 04 Mar 2009 22:55:59 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) |
On Wed Mar 04 2009 at 16:26, Nick Dokos <address@hidden> wrote:
> Nick Dokos <address@hidden> wrote:
>
>> Bill White <address@hidden> wrote:
>>
>> > On Wed Mar 04 2009 at 12:38, Nick Dokos <address@hidden> wrote:
>> >
>> > > Bill White <address@hidden> 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 . address@hidden . http://members.wolfram.com/billw
"No ma'am, we're musicians."