News for hackers. Stuff that matters.
Re:Emacs Rocks by tptacek on Sunday November 16, 2014 @05:52PM (#8615836)
I don't know that I agree with this. I'm rewriting for the fourth time a blog post I wrote on auditing C/C++ code using Emacs. The combination of Helm, cscope/ascope, hi-lock, ectags, Projectile, and incremental recursive grep is pretty hard to beat.

I use unobtrusive dabbrev-style completion --- I don't want popup menus with completion possibilities drawn from documentation, because Dash.app does a better job of that and is shared by all applications.

I think Emacs does an at least adequate job at all the core functions of Xcode, but does some things Xcode can't do at all.

(It's been a few years since I've written more than a couple thousands lines in Xcode, though.)

Re:Emacs Rocks by to3m on Sunday November 16, 2014 @08:18PM (#8616332)
Don't worry, I'm not saying Xcode isn't awful. I've just found that code navigation saves me more time than having a fancy text editor does. And even after putting some effort in, the results with emacs just aren't as good (particularly compared to effort expended) as what you get from Xcode and Visual Studio.

Which is a shame, because Xcode's text editor is awful (or did I mention that already??), and Visual Studio's is crashingly average. I'd much rather use emacs.

(I use company-mode, with the clang backend, and it's OK. For code navigation, currently nothing, but rtags (https://github.com/Andersbakken/rtags) is on my todo list. The README is worth a skim - it has a cute way of grabbing the list of files you're using.)

Re:Emacs Rocks by mangamadaiyan on Sunday November 16, 2014 @07:26PM (#8616161)
Link to the post please? It should make for interesting reading.
Re:Emacs Rocks by tptacek on Sunday November 16, 2014 @07:45PM (#8616223)
It's still sitting in Draftin.com, waiting for me to like it enough.
Re:Emacs Rocks by taeric on Sunday November 16, 2014 @06:17PM (#8615937)
Instead of cscope/ctages, have you tried GNU GLOBAL? I've taken my first steps with it and the ggtags mode. So far, I am finding it to be drastically better than ctags.

Have I just never configured ctags correctly?

Re:Emacs Rocks by tptacek on Sunday November 16, 2014 @07:08PM (#8616105)
I didn't even know about it. This looks awesome. Highly recommend: wrap GNU GLOBAL in a web app (scrape its output, stick it in a database). We did that at Matasano (with dumber tools than GLOBAL) and not only was it incredibly useful, but shockingly, shockingly easy.
Re:Emacs Rocks by taeric on Sunday November 16, 2014 @07:58PM (#8616273)
I'm not sure what you are referring to for the web app. Are you just wanting to skin what it puts as a hypertext file already?[1]

[1] http://www.tamacom.com/tour/kernel/linux/

Re:Emacs Rocks by tptacek on Sunday November 16, 2014 @08:10PM (#8616308)
I didn't know GLOBAL had a web interface, but we generally want search, highlight, bookmarks, and notes, in addition to clickable cross-reference popups. We used ectags and Pygments.
Re:Emacs Rocks by taeric on Sunday November 16, 2014 @08:21PM (#8616346)
Makes sense, I think. As I said earlier, I am new to GLOBAL entirely. Something I found as I was building up my new emacs setup at work. So far, I've been impressed. Not sure I'll ever care for the web interface, but the ggtags mode has been a dream. And I've really only used find-references and find-definition.
Re:Emacs Rocks by a_e_k on Monday November 17, 2014 @01:10AM (#8617059)
I've been using GLOBAL with a slightly tweaked gtags.el for almost 5 years now. It's definitely served me well.
Re:Emacs Rocks by wglb on Monday November 17, 2014 @10:56PM (#8622290)
Do you run into any practical size limitations?
Re:Emacs Rocks by tuhdo on Monday November 17, 2014 @11:47PM (#8622409)
It works well for project like Linux kernel. Jump/listing references happens instantly.