Skip to content

Commit d9fba6c

Browse files
committed
Merge pull request #1191 from geraldus/g/fix-1182
Remove obsolete code
2 parents 60d4eb0 + a13540f commit d9fba6c

File tree

4 files changed

+2
-49
lines changed

4 files changed

+2
-49
lines changed

doc/haskell-mode.texi

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,6 @@ To just align imports, jump to an import section and run
298298

299299
@code{M-x haskell-align-imports}
300300

301-
@subsection Entering imports
302-
303-
If you have Haskell Interactive Mode enabled and a session open,
304-
you can write
305-
306-
@code{import}
307-
308-
And then hit @kbd{SPC} (running @code{M-x haskell-mode-contextual-space})
309-
which will prompt a list of all modules, either installed modules or
310-
local project directory files. Then it'll insert it and then format that
311-
module section.
312-
313301
@subsection stylish-haskell
314302

315303
As an alternative to the elisp functions described above, haskell-mode
@@ -777,7 +765,7 @@ program to start and its arguments:
777765
If it's @code{ghci}, @code{haskell-process-path-ghci} and
778766
@code{haskell-process-args-ghci} will be used.
779767
@item
780-
If it's @code{cabal-repl}, @code{haskell-process-path-ghci} and
768+
If it's @code{cabal-repl}, @code{haskell-process-path-ghci} and
781769
@code{haskell-process-args-ghci}.
782770
@item
783771
If it's @code{stack-ghci}, @code{haskell-process-path-stack} and

haskell-indentation.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ set and deleted as if they were real tabs."
129129
(defvar haskell-literate) ; defined in haskell-mode.el
130130

131131
(defun haskell-indentation-bird-p ()
132-
"Return t if this is a literate Haskell buffer in bird style,
133-
NIL otherwise."
132+
"Return t if this is a literate Haskell buffer in bird style, NIL otherwise."
134133
(eq haskell-literate 'bird))
135134

136135
;;----------------------------------------------------------------------------

haskell-mode.el

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,6 @@ May return a qualified name."
655655
(let ((fill-prefix (or fill-prefix (if (eq haskell-literate 'bird) ">"))))
656656
(delete-indentation arg)))
657657

658-
;; Various mode variables.
659-
(defcustom haskell-mode-contextual-import-completion
660-
t
661-
"Enable import completion on haskell-mode-contextual-space."
662-
:type 'boolean
663-
:group 'haskell-interactive)
664-
665658
(defvar eldoc-print-current-symbol-info-function)
666659

667660
(defvar haskell-mode-interactive-prompt-state nil

haskell.el

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -340,33 +340,6 @@ If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
340340
(haskell-interactive-mode-error-backward)
341341
(haskell-interactive-jump-to-error-line)))))
342342

343-
;;;###autoload
344-
(defun haskell-mode-contextual-space ()
345-
"Contextually do clever stuff when hitting space."
346-
(interactive)
347-
(if (or (not (bound-and-true-p interactive-haskell-mode))
348-
(not (haskell-session-maybe)))
349-
(self-insert-command 1)
350-
(cond ((and haskell-mode-contextual-import-completion
351-
(save-excursion (forward-word -1)
352-
(looking-at "^import$")))
353-
(insert " ")
354-
(let ((module (haskell-complete-module-read
355-
"Module: "
356-
(haskell-session-all-modules (haskell-session)))))
357-
(let ((mapping (assoc module haskell-import-mapping)))
358-
(if mapping
359-
(progn (delete-region (line-beginning-position)
360-
(line-end-position))
361-
(insert (cdr mapping)))
362-
(insert module)))
363-
(haskell-mode-format-imports)))
364-
(t
365-
(let ((ident (save-excursion (forward-char -1) (haskell-ident-at-point))))
366-
(insert " ")
367-
(when ident
368-
(haskell-process-do-try-info ident)))))))
369-
370343
(defvar xref-prompt-for-identifier nil)
371344

372345
;;;###autoload

0 commit comments

Comments
 (0)