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




Reply via email to