Error “Symbol's value as variable is void: ftp_site_connect” on function running

前端 未结 1 820
自闭症患者
自闭症患者 2021-01-26 08:12

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

相关标签:
1条回答
  • 2021-01-26 08:45

    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.

    0 讨论(0)
提交回复
热议问题