(Couldn't darcs send directly to the list, wrong address set in darcs ;)) ---------- Forwarded Message ----------
Subject: darcs patch: Add interpreter-mode-alist entries (this... (and 1 more) Date: Sunday 14 March 2010 From: Daniel Schüssler <[email protected]> To: [email protected] 2 patches for repository http://code.haskell.org/haskellmode-emacs: Tue Mar 9 07:33:28 CET 2010 Daniel SchÌssler <[email protected]> * Add interpreter-mode-alist entries (this autolaunches haskell-mode for files beginning with #!/usr/bin/runghc etc.) Sun Mar 14 15:16:40 CET 2010 Daniel SchÌssler <[email protected]> * Add `haskell-bro' command to display the output of "ghc -e ':browse Foo'" in a separate buffer. + some general stuff. -------------------------------------------------------
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 New patches: [Add interpreter-mode-alist entries (this autolaunches haskell-mode for files beginning with #!/usr/bin/runghc etc.) Daniel Schüssler <[email protected]>**20100309063328 Ignore-this: 9193f78937e76964fcc41094bc737f14 ] hunk ./haskell-mode.el 524 (set (make-local-variable 'mode-line-process) '("/" (:eval (symbol-name haskell-literate))))) - -;;;###autoload(add-to-list 'auto-mode-alist '("\\.\\(?:[gh]s\\|hi\\)\\'" . haskell-mode)) - -;;;###autoload(add-to-list 'auto-mode-alist '("\\.l[gh]s\\'" . literate-haskell-mode)) +;;;###autoload(add-to-list 'auto-mode-alist '("\\.\\(?:[gh]s\\|hi\\)\\'" . haskell-mode)) +;;;###autoload(add-to-list 'auto-mode-alist '("\\.l[gh]s\\'" . literate-haskell-mode)) +;;;###autoload(add-to-list 'interpreter-mode-alist '("runghc" . haskell-mode)) +;;;###autoload(add-to-list 'interpreter-mode-alist '("runhaskell" . haskell-mode)) (defcustom haskell-hoogle-command (if (executable-find "hoogle") "hoogle") hunk ./haskell-site-file.el 195 As `haskell-mode' but for literate scripts. \(fn)" t nil) - -(add-to-list 'auto-mode-alist '("\\.\\(?:[gh]s\\|hi\\)\\'" . haskell-mode)) - -(add-to-list 'auto-mode-alist '("\\.l[gh]s\\'" . literate-haskell-mode)) +(add-to-list 'auto-mode-alist '("\\.\\(?:[gh]s\\|hi\\)\\'" . haskell-mode)) +(add-to-list 'auto-mode-alist '("\\.l[gh]s\\'" . literate-haskell-mode)) +(add-to-list 'interpreter-mode-alist '("runghc" . haskell-mode)) +(add-to-list 'interpreter-mode-alist '("runhaskell" . haskell-mode)) (autoload 'haskell-hoogle "haskell-mode" "\ Do a Hoogle search for QUERY. [Add `haskell-bro' command to display the output of "ghc -e ':browse Foo'" in a separate buffer. + some general stuff. Daniel Schüssler <[email protected]>**20100314141640 Ignore-this: f9b6b049554f8108f9648d2cdeb254e6 ] hunk ./Makefile 4 EMACS = emacs ELFILES = \ + haskell-bro.el \ haskell-c.el \ haskell-cabal.el \ haskell-decl-scan.el \ hunk ./Makefile 10 haskell-doc.el \ haskell-font-lock.el \ + haskell-general-purpose.el \ haskell-ghci.el \ haskell-hugs.el \ haskell-indent.el \ hunk ./haskell-mode.el 81 ;; version of Emacs you are using, and a small example of the problem ;; or suggestion. ;; - -;; Version 1.5 +;; Version (first version in darcs?) and higher: See darcs changelog +;; +;; Version 1.5: ;; Added autoload for haskell-indentation ;; ;; Version 1.43: hunk ./haskell-mode.el 189 ;; Set load-path ;;;###autoload (add-to-list 'load-path - - (or (file-name-directory load-file-name) (car load-path))) + ; fix load-file-name==nil case + (or (and load-file-name (file-name-directory load-file-name)) (car load-path))) ;; Set up autoloads for the modules we supply (autoload 'turn-on-haskell-decl-scan "haskell-decl-scan" hunk ./haskell-mode.el 621 (eval-after-load "flymake" '(add-to-list 'flymake-allowed-file-name-masks '("\\.l?hs\\'" haskell-flymake-init))) + + + + + + ;; Provide ourselves: hunk ./haskell-site-file.el 2 - -;;;### (autoloads (haskell-c-mode) "haskell-c" "haskell-c.el" (18170 - -;;;;;; 47169)) +;;;### (autoloads (haskell-bro) "haskell-bro" "haskell-bro.el" (19356 +;;;;;; 61292)) +;;; Generated autoloads from haskell-bro.el + +(autoload 'haskell-bro "haskell-bro" "\ +Run ghci's :bro command on MODULE, displaying the result in `haskell-bro-buffer-name' + +\(fn MODULE)" t nil) + +;;;*** + +;;;### (autoloads (haskell-c-mode) "haskell-c" "haskell-c.el" (19177 +;;;;;; 22539)) ;;; Generated autoloads from haskell-c.el (add-to-list 'auto-mode-alist '("\\.hsc\\'" . haskell-c-mode)) hunk ./haskell-site-file.el 40 ;;;*** ;;;### (autoloads (haskell-decl-scan-mode) "haskell-decl-scan" "haskell-decl-scan.el" - -;;;;;; (19206 35523)) +;;;;;; (19210 17941)) ;;; Generated autoloads from haskell-decl-scan.el (autoload 'haskell-decl-scan-mode "haskell-decl-scan" "\ hunk ./haskell-site-file.el 90 ;;;*** ;;;### (autoloads (haskell-doc-show-type haskell-doc-mode) "haskell-doc" - -;;;;;; "haskell-doc.el" (19206 35819)) +;;;;;; "haskell-doc.el" (19210 17941)) ;;; Generated autoloads from haskell-doc.el (autoload 'haskell-doc-mode "haskell-doc" "\ hunk ./haskell-site-file.el 113 ;;;*** ;;;### (autoloads (haskell-indent-mode) "haskell-indent" "haskell-indent.el" - -;;;;;; (19206 35819)) +;;;;;; (19210 17941)) ;;; Generated autoloads from haskell-indent.el (autoload 'haskell-indent-mode "haskell-indent" "\ hunk ./haskell-site-file.el 145 ;;;*** ;;;### (autoloads (haskell-indentation-mode) "haskell-indentation" - -;;;;;; "haskell-indentation.el" (19216 1488)) +;;;;;; "haskell-indentation.el" (19294 61571)) ;;; Generated autoloads from haskell-indentation.el (autoload 'haskell-indentation-mode "haskell-indentation" "\ hunk ./haskell-site-file.el 159 ;;;*** ;;;### (autoloads (haskell-hayoo haskell-hoogle literate-haskell-mode - -;;;;;; haskell-mode) "haskell-mode" "haskell-mode.el" (19217 23751)) +;;;;;; haskell-mode) "haskell-mode" "haskell-mode.el" (19356 61028)) ;;; Generated autoloads from haskell-mode.el hunk ./haskell-site-file.el 162 - -(add-to-list 'load-path (or (file-name-directory load-file-name) (car load-path))) +(add-to-list 'load-path (or (and load-file-name (file-name-directory load-file-name)) (car load-path))) (autoload 'haskell-mode "haskell-mode" "\ Major mode for editing Haskell programs. hunk ./haskell-site-file.el 229 ;;;### (autoloads (inferior-haskell-find-haddock inferior-haskell-find-definition ;;;;;; inferior-haskell-info inferior-haskell-type inferior-haskell-load-file - -;;;;;; switch-to-haskell) "inf-haskell" "inf-haskell.el" (19214 - -;;;;;; 18334)) +;;;;;; switch-to-haskell) "inf-haskell" "inf-haskell.el" (19349 +;;;;;; 60312)) ;;; Generated autoloads from inf-haskell.el (defalias 'run-haskell 'switch-to-haskell) hunk ./haskell-site-file.el 283 ;;;*** - -;;;### (autoloads nil nil ("haskell-font-lock.el" "haskell-ghci.el" - -;;;;;; "haskell-hugs.el" "haskell-simple-indent.el") (19217 23753 - -;;;;;; 561352)) +;;;### (autoloads nil nil ("haskell-font-lock.el" "haskell-general-purpose.el" +;;;;;; "haskell-ghci.el" "haskell-hugs.el" "haskell-simple-indent.el") +;;;;;; (19356 61320 887962)) ;;;*** Context: [Add options to mode hook. Dave Love <[email protected]>**20091208103442 Ignore-this: 30f5d09a670745427d0e8151b2d67b65 They're capitalized-words-mode and turn-on-haskell-decl-scan. ] [Use a special current-column function for haskell. Fixes #12. [email protected]**20091212212634 Ignore-this: c105f4dec7cd24b850b1a1b88de11b8f ] [Turn off parse-sexp-ignore-comments (?) [email protected]**20091202161717 Ignore-this: 86a95ede94d4f5bee3f9889c410b4 ] [Avoid treating -->, etc., as comments [email protected]**20091202161538 Ignore-this: bc84159fe4fa7db93f802372858a5e66 ] [TAG 2.7.0 [email protected]**20091130150338 Ignore-this: 28d8d1717347488cae5c803080e44284 ] Patch bundle hash: e8c8ae03ff76b80dffd2cd09ee2c3d1b372985eb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuc8UUACgkQvcFeHWVWopdI3wCfVM/m8DFGevmkvYz48J+Q77aW qucAn0B1DyRZVjh+hXJZOf8r0tFlcHXe =unZX -----END PGP SIGNATURE-----
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Haskellmode-emacs mailing list [email protected] http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs
