Skip to content

"Quick Test" Instructions No Longer Working, Current Dir Not in Load-Path #169

@lumin-etherlight

Description

@lumin-etherlight

I tried to test nano-emacs using the "Quick test" instructions provided in the README (i.e. running emacs -q -l nano.el), but they didn't work. Emacs throws the following error:

eval-buffer: Cannot open load file: No such file or directory, nano-layout

This is a result of emacs not being able to find the module being required. I suspect this is a regression caused by commit 5ff5f58, which removes the code that adds the current directory to the load path. Applying the following patch fixes the issue, and allows the Quick test instructions to work again.

diff --git a/nano.el b/nano.el
index a55ddd0..5ad94a0 100644
--- a/nano.el
+++ b/nano.el
@@ -17,6 +17,8 @@
 ;; ---------------------------------------------------------------------
 (package-initialize)

+(add-to-list 'load-path ".")
+
 ;; Default layout (optional)
 (require 'nano-layout)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions