emacs/var/elfeed/db/data/9a/9aa17780458209608224e9e2692ed8b9b484b654
2022-01-03 12:49:32 -06:00

1 line
799 B
Plaintext

<!-- SC_OFF --><div class="md"><p>Hi - I&#39;m trying to write a function which will take a filename from a project as user input. This doesn&#39;t seem to work. I get `nil` returned for the `filename` variable.</p> <p>&#x200B;</p> <pre><code>(defun my-test-function() (interactive) (let ((filename (projectile-find-file))) (message (format &quot;Current %s&quot; filename)))) </code></pre> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/PigsDogsAndSheep"> /u/PigsDogsAndSheep </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r589s8/how_to_use_projectilefindfile_in_a_custom_function/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r589s8/how_to_use_projectilefindfile_in_a_custom_function/">[comments]</a></span>