?

Log in

change drafts dir? - ljupdate
February 11th, 2011
11:41 am
[wolfshift]

[Link]

Previous Entry Share
change drafts dir?
In the hope that this community is still alive...

How do I change where ljupdate puts draft files? When I run `M-X lj-compose` it creates a file in ~/Mail/drafts. I really, really do not want it to put them there. How do I change this?

Thanks!

(6 comments | Leave a comment)

Comments
 
[User Picture]
From:viktor_haag
Date:February 11th, 2011 04:04 pm (UTC)
(Link)
Looking at the latest source from github, it looks like lj-compose.el hard-codes the auto-save directory for lj message drafts to "~/.ljupdate/drafts"; it doesn't look like this aspect of the mode is customizeable (and perhaps it should be?).

It looks like the major mode ljupdate is using to compose post headers is derived from message-mode, so it's possible that it's not fully overriding the folder assignments for the "parent" mode.

There doesn't seem to be anything in the ljupdate code that's directly setting "~/Mail/..." as a home directory for anything, but perhaps its getting this as a root folder from some other source (such as the settings for 'message-mode').
[User Picture]
From:viktor_haag
Date:February 11th, 2011 04:07 pm (UTC)
(Link)
Which is to say, I guess, that there doesn't seem any customization variable in ljupdate that you can set, and even "changing a default string in the source and rebuilding" won't work. This might be a bug, so unless you're familiar enough with Emacs Lisp to fix it, you're at the mercy of the package maintainers (or someone else who does know Emacs Lisp enough to fix it).
[User Picture]
From:wolfshift
Date:February 11th, 2011 04:09 pm (UTC)
(Link)
Actually, I think I may have found it (though I'm not entirely sure how I got there, other than `M-x customize-group message' and following various links. Under 'Various message variables' there are message-directory and message-auto-save-directory. I'll try setting those and seeing what happens.
[User Picture]
From:wolfshift
Date:February 11th, 2011 04:18 pm (UTC)
(Link)
Yup, that did it. Thanks! I didn't know the compose mode was derived from message-mode; once you told me that I was able to find the relevant variables.
[User Picture]
From:viktor_haag
Date:February 11th, 2011 05:19 pm (UTC)
(Link)
What you want to be careful of now is that you may have reset your directory for all modes that build on message-mode, which may (or may not) be what you want. This still feels like a bug to me: ljupdate drafts should (I think) belong in .ljupdate/drafts or whatever your "ljupate app support" directory is, and not lumped in with drafts/messages for other outgoing message modes. But still, as long you get a solution that works for you under the current circumstances that's best for you at the moment. 8/
[User Picture]
From:wolfshift
Date:February 11th, 2011 05:38 pm (UTC)
(Link)
I don't think I'm using any other modes at the moment that make use of that. At least, nothing else seems to touch ~/Mail/. But I'll keep an eye on it.
ljupdate home page Powered by LiveJournal.com