I get the error \"Symbol\'s value as variable is void: ftp_site_connect\" on function running. I been checking the other questions with the similar error \"Symbol\'s value as va
Well thanks to @npostavs it seems I found the problem.
After modifying the code as the info on the link @npostavs gave me ( the 'function in the code is wrong the 'format is for lists not for functions ) the following changed code seemed to work but it generated another error.
(defun ftp_site_connect()
(interactive)
( ange-ftp-set-passwd "ftp.site.com" "username" "password" )
( find-file "/username@ftp.site.com:/" )
)
(ftp_site_connect)
So, I found out that the function ange-ftp-set-passwd didn't exist on my server and that I had to setup the passwords through the .netrc file instead doing it inline. After changing again the code now seems to work perfectly.
;; Add first the user and password to the .netrc file like this:
;; machine HOST login NAME password PASSWD
;; and change the permissions on that file to chmod 600
;; -------------------------------------------------------------
(defun ftp_site_connect()
(interactive)
( find-file "/username@ftp.site.com:/" )
)
(ftp_site_connect)
Thank you everyone for your help.