-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
It appears there is no default candidate for completing read.
Reproduction:
- run
emux-session-load-template - see default option chosen
- hit RET
- see following error:
Debugger entered--Lisp error: (file-error "Cannot open load file" "/Users/adam/.emacs.d/emux-templates/.el")
load("/Users/adam/.emacs.d/emux-templates/.el" nil nil t)
load-file("~/.emacs.d/emux-templates/.el")
(progn (emux-session-create (list (quote :name) template)) (load-file (concat "~/.emacs.d/emux-templates/" template ".el")) (message "%s template loaded" template))
(if (cond ((not (emux-session-from-name template)) t) (t (yes-or-no-p (format "session %s already exists, really load?" template)))) (progn (emux-session-create (list (quote :name) template)) (load-file (concat "~/.emacs.d/emux-templates/" template ".el")) (message "%s template loaded" template)))
(let ((template (emux-completing-read "load emux session template: " (mapcar (function (lambda (filename) (substring filename 0 -3))) (directory-files "~/.emacs.d/emux-templates" nil "^[^#].*.el"))))) (if (cond ((not (emux-session-from-name template)) t) (t (yes-or-no-p (format "session %s already exists, really load?" template)))) (progn (emux-session-create (list (quote :name) template)) (load-file (concat "~/.emacs.d/emux-templates/" template ".el")) (message "%s template loaded" template))))
emux-session-load-template()
call-interactively(emux-session-load-template nil nil)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels