In the function below I gather a list of shares in shareList which is defined in the let so it is undefined at the end. How do I make its contents available at that stage.

(defun getsharelist() "Update shareList with valid shares." (let ((shareList '()) (filedest) ) (save-excursion (goto-char (point-min)) ;;do some processing involving the update of 'sharedList ) ) ;;sharedList is undefined here ) 
submitted by /u/vfclists
[link] [comments]