From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: org-src-fontification buffers Date: Fri, 18 Mar 2016 11:40:49 -0400 Message-ID: <87lh5fpzem.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agwWN-0005Nw-6E for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 11:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agwWH-0007pj-D2 for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 11:41:03 -0400 Received: from pb-smtp0.pobox.com ([208.72.237.35]:62300 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agwWH-0007pS-6P for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 11:40:57 -0400 In-Reply-To: (Alan Schmitt's message of "Fri, 18 Mar 2016 15:40:38 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Alan Schmitt writes: > Hello, > > I'm having an issue with a buffer that is created by org for > fontification that wants to be saved, although it's temporary. In my > case, it's org-src-fontification:coq-mode, but it seems the problem > happens for other languages (see > https://emacs.stackexchange.com/questions/20593/org-src-fontify-natively-makes-magit-think-there-are-unsaved-files/20607) Trying with elisp blocks, I'm not able to reproduce this (pretty recent Emacs 25, GNU/Linux, latest Org). How are you calling save-some-buffers? It should ignore buffers that aren't visiting files unless its PRED argument is non-nil or a function that returns non-nil. Can you step through save-some-buffers and see what's going on there? Specifically, what's passed in as PRED and what happens here? (or (not (functionp pred)) (with-current-buffer buffer (funcall pred))) > Is there a way to tell emacs it's ok to kill this buffer without saving > it? We could `(set-buffer-modified-p nil)', which will force save-some-buffers to ignore it, but I don't think that should be necessary. -- Kyle