Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(haskell-package-conf-file): Don't use `ignore-errors'

Ignore-this: 45e195cf8109f2bc37799884e459ac5f
(haskell-package-conf-file): Don't use `ignore-errors'
because this form is not byte-compiled :-(.

darcs-hash:20071212202430-c2f2e-2d752bd321d7a16af57857417cb7f619b86d1967.gz
  • Loading branch information...
commit 744f5cea9ecf90aa1aa9ffa8d1de8be6fdb2ec80 1 parent e06f394
monnier authored
Showing with 12 additions and 5 deletions.
  1. +5 −0 ChangeLog
  2. +7 −5 inf-haskell.el
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2007-12-12 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * inf-haskell.el (haskell-package-conf-file): Don't use `ignore-errors'
+ because this form is not byte-compiled :-(.
+
2007-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.4.
View
12 inf-haskell.el
@@ -478,11 +478,13 @@ only be used if the value of `inferior-haskell-use-web-docs' is
:type 'string)
(defcustom haskell-package-conf-file
- (ignore-errors
- (with-temp-buffer
- (call-process "ghc" nil t nil "--print-libdir")
- (expand-file-name "package.conf"
- (buffer-substring (point-min) (1- (point-max))))))
+ (condition-case nil
+ (with-temp-buffer
+ (call-process "ghc" nil t nil "--print-libdir")
+ (expand-file-name "package.conf"
+ (buffer-substring (point-min) (1- (point-max)))))
+ ;; Don't use `ignore-errors' because this form is not byte-compiled :-(
+ (error nil))
"Where the package configuration file for the package manager resides.
By default this is set to `ghc --print-libdir`/package.conf."
:group 'haskell
Please sign in to comment.
Something went wrong with that request. Please try again.