[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Update location of svnbook source in HACKING

From: <kfogel_at_collab.net>
Date: 2005-03-05 06:12:13 CET

Michael W Thelen <mike@pietdepsi.com> writes:
> Just a patch to update HACKING with the new location of the SVN book and
> translations. There is also a reference in HACKING to using svnbook.el
> in Emacs whenever editing a file under doc/book/book. That should also
> be changed, but I don't know the best way to change it.

+1 to commit your patch.

As for svnbook.el, you can use this patch for HACKING:

--- HACKING (revision 13263)
+++ HACKING (working copy)
@@ -460,13 +460,19 @@
          ;;; Begin Subversion development section
          (defun my-find-file-hook ()
- (let ((svntree-path (expand-file-name "~/projects/subversion/)))
- (if (string-match (concat svntree-path "doc/book")
- buffer-file-name)
- (load (concat svntree-path "doc/book/tools/svnbook"))
- (if (string-match svntree-path buffer-file-name)
- (load (concat svntree-path "tools/dev/svn-dev"))))))
+ (let ((svn-tree-path (expand-file-name "~/projects/subversion"))
+ (book-tree-path (expand-file-name "~/projects/svnbook")))
+ (cond
+ ((string-match svn-tree-path buffer-file-name)
+ (load (concat svn-tree-path "/tools/dev/svn-dev")))
+ ((string-match book-tree-path buffer-file-name)
+ ;; Handle load exception for svnbook.el, because it tries to
+ ;; load psgml, and not everyone has that available.
+ (condition-case nil
+ (load (concat book-tree-path "/src/tools/svnbook"))
+ (error
+ (message "(Ignored problem loading svnbook.el.)")))))))
          (add-hook 'find-file-hooks 'my-find-file-hook)
          ;;; End Subversion development section

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 5 06:31:51 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.