atom feed17 messages in at.iem.pd-dev[PD-dev] recentfiles_list explanation
FromSent OnAttachments
Yvan VolochineMar 14, 2011 6:09 pm.patch
Yvan VolochineMar 14, 2011 7:45 pm 
Hans-Christoph SteinerMar 15, 2011 11:28 am 
Yvan VolochineMar 15, 2011 2:15 pm 
IOhannes zmölnigMar 15, 2011 3:20 pm 
yvMar 15, 2011 9:01 pm 
yvMar 15, 2011 9:29 pm 
yvMar 16, 2011 8:44 am 
Hans-Christoph SteinerMar 16, 2011 10:16 am 
Hans-Christoph SteinerMar 16, 2011 10:27 am 
yvan volochineMar 16, 2011 10:35 am 
yvan volochineMar 16, 2011 10:38 am 
Hans-Christoph SteinerMar 16, 2011 12:18 pm 
Hans-Christoph SteinerMar 16, 2011 12:19 pm 
yvan volochineMar 16, 2011 4:54 pm 
Hans-Christoph SteinerMar 16, 2011 10:09 pm 
yvan volochineMar 17, 2011 3:11 pm 
Subject:[PD-dev] recentfiles_list explanation
From:Yvan Volochine (yvan@gmail.com)
Date:Mar 14, 2011 6:09:17 pm
List:at.iem.pd-dev
Attachments:

hello

sorry if this is obvious but I'm looking into pd source for the 1st time today...

I'm trying to get recentfiles written to ~/.pdsettings and I think I'm missing something obvious. (see my patch attached or here: http://pastebin.com/3apUXLzs ).

so far I can read from .pdsettings and get the recentfiles in the File menu (when I wrote them in theremanually) but, in s_files.c/glob_savepreferences():

char *pathelem = namelist_get(recentfiles_list, i)

does not make it. I think that I don't really understand the way pd and the gui communicate with each other. IIUC, recentfiles_list is updated when a file is opened (in tcl/wheredoesthisgo.tcl) but how come in glob_savepreferences() sys_searchpath and other globals are "found" if recentfiles_list is not ?

also, maybe having recentfiles written to another file than .pdsettings would be easier (like it seems to be the case on osx by looking at the code but I'm not sure) but another dot file just for this would be ugly IMHO

thanks for your advices or for pointing me to other threads where this is discussed (couldn't find any).

cheers, _yvan