Article written by Ted Carnahan

I am passionate about the missional church, technology, and music. I love my call, my family, and my God!

5 responses to “A Brief Introduction to Emacs psvn”

  1. Tweets that mention A Brief Introduction to Emacs psvn | Ted Carnahan -- Topsy.com

    [...] This post was mentioned on Twitter by bread. bread said: @meteor1113 可以吧。。。我也记不得了,很久没用了。http://bit.ly/aMyg4L 看这里 [...]

  2. The answer to using SVN in your editor* | Kim van Wyk's Home on the Web

    [...] It’s fairly late at night, and I’m doing some desperately needed work coding. I’ve been using SVN to track my progress, as I do at work, and I’ve found myself using PSVN more and more. I’ve long had it installed, but never taken full advantage of it. It provides a central point within emacs to do just about anything you could want to do with an SVN-controlled directory, file or repo (or make new ones). It also hooks into ediff and various other bits of emacs magic. Rather than rehash things, here’s a link to an intro to it I found. [...]

  3. Feiming Chen

    I found Emacs’s generic VC commands (Menu: Tools => Version Control) come in very handy. The following commands do what is mentioned in the article equivalenly:

    Blame and Praise: C-x v g (Annotate: this is color-highlighted so is nicer than svn-status-blame)

    SVN Diff: C-x v = (Compare with Base Version)

    To use Ediff automatically when you invoke “C-x v =”, write the following line in your .emacs file:

    (eval-after-load “vc-hooks” ‘(define-key vc-prefix-map “=” ‘vc-ediff))

  4. Ted Carnahan

    It’s been a few years since I’ve been a series emacs user, and it appears that you’re quite right – in the 4.5 years since this article, the native VC commands for svn have come a long way. Thanks for your comment.

  5. redobot

    Feiming Chen, thanks for the ediff tip. This is basically what I was looking for. An other useful mode to track the changes is the diff-hl. I find it very useful to track the changes in the current buffer. It highlights the chagnes using colors so you can see the code areas you changed/add/deleted and you can navigated between your changes in the current buffer easilly.