emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [bug] org-edit-src-code auto-save glitch


From: Charles Berry
Subject: [O] [bug] org-edit-src-code auto-save glitch
Date: Tue, 26 Mar 2013 19:18:57 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]