February 27, 2009

New version of Squid-GSB utility

Right now I released new version of the Squid-GSB utility (version 0.2), that allows to use Google Safe Browsing API database together with Squild. In new version i did following changes:
  • CMake is used to configure and build - this allows to implement more correct detection of Boost libraries;
  • correct handling of Transfer-Encoding: chunked is implemented;
  • source repository is moved to GitHub;
  • documentation is updated
New version you can also download from my site.

February 17, 2009

Emacs + Haskell + Pretty lambda

Do you know, that if you set the haskell-font-lock-symbols variable to t, in the haskell-mode hook, then your source code will look as on following picture:
haskell-pretty-font-lock
P.S. some symbols aren't included into standard package, but patch is already sent to author of haskell-mode...

February 13, 2009

Cedet + Qt

On one of the Russian forums I was asked "Why Cedet doesn't work with Qt?" Answer is very simple - it works, but you need to make simple customization. Add following code into your initialization file, and Cedet begin to parse your code:
(add-to-list 'auto-mode-alist
'("/usr/include/qt4" . c++-mode))
(semantic-add-system-include 
"/usr/include/qt4" 'c++-mode)
(add-to-list 'semantic-lex-c-preprocessor-symbol-file
"/usr/include/qt4/Qt/qconfig.h")
(add-to-list 'semantic-lex-c-preprocessor-symbol-file
"/usr/include/qt4/Qt/qconfig-dist.h")
Here is proof:
Emacs + Cedet + Qt
Thanks to Eric M. Ludlam for hint about semantic-lex-c-preprocessor-symbol-file variable.
Update (12/05/2009): It seems, that this approach will not work in fresh CEDET - I'm working on fix

Small article about Cedet

I wrote small article, called "A Gentle introduction to Cedet" about how to install & use the Cedet package. I hope, that this article will help Emacs users to get information about this wonderful package.
You can write comments and suggestions about article in comment widget at the end of page (JavaScript should be enabled).
P.S. i know that there are grammatical errors in my article, please write your comments at the end of the page, or via mail/jabber directly to me.

February 8, 2009

Second version of the hs-lint package

Just updated hs-lint, so it now allows to perform replacements of user's code with hints, produced by HLint. To use this feature, you need to set hs-lint-replace-with-suggestions variable to t, and than after execution of the hs-lint command you'll asked for confirm replacement each of hint, found by HLint. And if you'll set the hs-lint-replace-without-ask variable to t, then all replacement will be done without confirmation.
New version is available from my site.

February 7, 2009

cedet + boost::shared_ptr

Eric Ludlam committed to CVS changes, that fix errors in names completion for objects, wrapped into boost::shared_ptr. Now all works fine, and I able to use Emacs more effectively, when I work with foreign code (usually for my code, i remember all functions ;-)
For other smart pointers this feature already existed, the problem was only in parsing of shared_ptr's definition.
P.S. I started to translate to English my introduction level article about Emacs & Cedet usage for work with C & C++ code...