From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?Tm9yZGz2dw==?= Newsgroups: gmane.emacs.help Subject: Version Control in Speedbar (speedbar-vc) Date: Thu, 05 Jul 2007 16:02:55 -0000 Organization: http://groups.google.com Message-ID: <1183651375.443622.286390@n2g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1183653628 17871 80.91.229.12 (5 Jul 2007 16:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 16:40:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 18:40:27 2007 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I6UNV-0001Em-Ji for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 18:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6UNU-0004gA-K0 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 12:40:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n2g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1183651375 30385 127.0.0.1 (5 Jul 2007 16:02:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 5 Jul 2007 16:02:55 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 netcache (NetCache NetApp/6.1.1RC1) Complaints-To: groups-abuse@google.com Injection-Info: n2g2000hse.googlegroups.com; posting-host=150.227.15.253; posting-account=T25tbw0AAADoaalO12jRFAyM2dkqq2mX Original-Xref: shelby.stanford.edu gnu.emacs.help:149898 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45486 Archived-At: Hey again, Emacs Users! I am trying to get speedbar to display version control context in project trees being version controlled by CVS, Subversion, Bazaar, etc. I thought the follow code should do the trick by displaying an icon beside all directories that have changed. This would make Emacs +Speedbar attractive to people familiar with GUI-interfaces such as Tourtoise-SVN. However, I only get an icon to the right of the actual file that has been changed. This makes it harder to see what has changed when I am currently viewing from the top of the project tree. Is there a way to make Speedbar display information in this way? (defun pnw-speedbar-vc-check-dir-p (directory) "Return t if we should bother checking DIRECTORY for version control files. This can be overloaded to add new types of version control systems." (or ;; Local CVS available in Emacs 21 (and (fboundp 'vc-state) (or (file-exists-p (concat directory "CVS/")) (file-exists-p (concat directory ".svn/")) (file-exists-p (concat directory ".bzr/")) (file-exists-p (concat directory ".git/")) )) ;; Local RCS (file-exists-p (concat directory "RCS/")) ;; Local SCCS (file-exists-p (concat directory "SCCS/")) ;; Remote SCCS project (let ((proj-dir (getenv "PROJECTDIR"))) (if proj-dir (file-exists-p (concat proj-dir "/SCCS")) nil)) ;; User extension (run-hook-with-args-until-success 'speedbar-vc-directory-enable- hook directory) )) (add-hook 'speedbar-vc-directory-enable-hook 'pnw-speedbar-vc-check- dir-p) (setq speedbar-verbosity-level 3) Thanks in advance, Per Nordl=F6w