Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts

Monday, April 02, 2007

竟然有一大半是浪费在这种弱智的事上!

今天尝试着要用ecb来看代码。。。结果死活不会在函数调用上跳转到函数定义。。。

翻来翻去ecb的文档和mailing list,终于确认是etags的功能,于是去找etags的文档,还是死活搞不定,按M-.提示说no tags file loaded。。。然而tags文件是指定了的,而且这个提示google不到。。。

最后查key binding,发现绑的是cee-tags-find而不是默认的find-tag,难怪行为不一样。。。而cee-tags-find也google 不到,最后google那个cee-tags,才发现原来是bigloo代进来的绑定!bigloo,一个java作的scheme后端。。。为什么会需 要这个呢。。。而且ctags,貌似是vi的tags文件阿。。。确认它试图找一个叫cee-tags的文件。有空用ctags作个试试看它认不。

之前也老是做这样的事。。。研究到半夜,却是很没有价值的小事。。。

不过好歹研究出来了哈~~还是满牛的嘛^_^

I’m now trying to learn Common Lisp, the claimed most powerful language that eve r existed. And if you’re to use CL, you gotta use Emacs. I searched IDE’s, but I didn’t get much luck. However there’re Emacs and Vi modes for lisp. They say: ” If you really need to use Vi, then we have this mode for you…” and they don’t even try to cover up their contempt when they tell you this. So I had to use ema cs.

To use emacs, you gotta use Slime. It’s more a religion than not. CL? OK, Emacs you use, with Slime. You don’t get much choice. Fortunately, I’m not looking for options, since I’m not good at choosing. I dived into Slime directly.

With Slime, you can look up the hypersec with three key strokes. What a convenie nce! And I enjoyed it. Then one day I decided to get rid of the iceweasel I’ve a pted from the debian source. It sucks. I use FoxyProxy for proxying my Wikipedia access, and iceweasel doesn’t seem to get along quite along with the addon. To have to give up one of them, FoxyProxy will not be the answer. I can use Firefox from the Mozilla web site. And I did.

Then the C-c C-d h strokes for the Slime mode mysteriously broke down. I got abs olutely no idea what was up — I was so new in CL and Emacs that I knew less tha n an idiot. I peeked into the Slime code and saw that it used the browse-url pac kage to display the hyperspec docs. Great, but I didn’t find the browse-url sour ce. I then googled, people talked about setqing some browse-url-generic-program and more, and went suggesting C-h p for browse-url help info. I tried and found little luck. I even fixed the problem of not being able to open up my Firefox br owser because of the firefox and the run-mozilla script tries to guess the firef ox-bin name by the call name which was accidentally x-www-browser. But with Slim e, it doesn’t work. I was almost desparate.

Then I decided to try by myself. The Slime doc mentioned the *scratch* buffer as somewhere you can evaluate EL expressions. I tried, and it did eval my expr’s. I tried M-tab, and it showed me symbols starting with browse-url. I spent some t ime snoofing and found out the fact that my Emacs’s using some moz-program to op en up the browser. Then I found out the fact that Emacs was trying to bring abou t the browser with the command “mozilla”. And there’s no such thing as “mozilla” on my laptop. I made a link pointing to firefox, and the problem was fixed.

It’s easy as that. Nothing mysterious… yet nothing you would anybody’d tell yo u. It’s convention, and people expect you to know, rather than ask for. And now I tasted the power of convention.