-
Notifications
You must be signed in to change notification settings - Fork 347
Refactor load-or-reload #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
What about it the case when the user doesn't want to think whether he wants to load or reload -- and just wants to "get the latest version into GHC"? |
For your viewing pleasure full source of current (defun haskell-process-load-or-reload (&optional toggle)
"Load or reload. Universal argument toggles which."
(interactive "P")
(if toggle
(progn (setq haskell-reload-p (not haskell-reload-p))
(message "%s (No action taken this time)"
(if haskell-reload-p
"Now running :reload."
"Now running :load <buffer-filename>.")))
(if haskell-reload-p (haskell-process-reload-file) (haskell-process-load-file)))) I do not think this does what you thought it does. To answer more directly: just use |
Oh my god.. |
bergey
added a commit
to bergey/haskell-mode
that referenced
this issue
Nov 14, 2015
- Rename haskell-process-reload - keybindings for -process-load-file & -process-reload - remove references to -process-load-or-reload - mark -process-load-or-reload obsolete closes haskell#807
bergey
added a commit
to bergey/haskell-mode
that referenced
this issue
Nov 24, 2015
- Rename haskell-process-reload - keybindings for -process-load-file & -process-reload - remove references to -process-load-or-reload - mark -process-load-or-reload obsolete closes haskell#807
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User interface around load or reload needs a bit of work:
C-c C-l
directly tohaskell-process-load-file
haskell-process-reload-file
tohaskell-process-reload
C-c C-r
directly tohaskell-process-reload
haskell-process-load-or-reload
as obsoletehaskell-reload-p
as obsoleteThe text was updated successfully, but these errors were encountered: