From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: [bug] org-edit-src-code auto-save glitch Date: Tue, 26 Mar 2013 19:18:57 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKZP0-0007OG-9E for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 15:19:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKZOv-0004Xc-JZ for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 15:19:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:39293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKZOv-0004XH-CI for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 15:19:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKZPG-0004a5-Hg for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 20:19:38 +0100 Received: from 137.110.34.176 ([137.110.34.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 20:19:38 +0100 Received: from ccberry by 137.110.34.176 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 20:19: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: emacs-orgmode@gnu.org I use Org-mode version 8.0-pre (release_8.0-pre-180-gf09471) I am getting my src-buffers auto-saved even though C-h v org-edit-src-auto-save-idle-delay RET gives me ,---- | org-edit-src-auto-save-idle-delay is a variable defined in `org-src.el'. | Its value is 0 | | Documentation: | Delay of idle time before auto-saving src code buffers. | When a positive integer N, save after N seconds of idle time. | When 0 (the default), don't auto-save. `---- When I open a src buffer and do C-h v buffer-auto-save-file-name RET I get ,---- | buffer-auto-save-file-name is a variable defined in `C source code'. | Its value is "org-src-2801BU-2013-26-03.txt" | Local in buffer *Org Src notes.org[ R ]*; global value is nil | [deleted] | | Documentation: | Name of file for auto-saving current buffer. | If it is nil, that means don't auto-save this buffer. `---- Also, M-x auto-save-mode echoes "Auto-Save mode disabled" which tells me it was enabled when I opened that buffer. IIUC the problem is that this part of the function ,---- | (setq buffer-file-name nil | buffer-auto-save-file-name | (concat (make-temp-name "org-src-") | (format-time-string "-%Y-%d-%m") ".txt")) `---- should consult org-edit-src-auto-save-idle-delay and when it is zero, set buffer-auto-save-file-name to nil or take some other action to ensure that auto-save-mode does get enabled. ? Chuck