help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get rid of stock (standard) speedbar if do not have root acce


From: Robert Thorpe
Subject: Re: How to get rid of stock (standard) speedbar if do not have root access?
Date: 15 Dec 2006 05:54:55 -0800
User-agent: G2/1.0

christopherbalz wrote:
> No luck, having tried all kindly mentioned approaches.
>
> Unloading the speedbar:
>   (unload-feature 'speedbar)
> in some places in my .emacs file does not work since the speedbar is
> not loaded.

Good point.  I forgot how Speedbar works.  The one function M-x
speedbar is autoloaded.
In this case you don't need to do any unloading, just to load the mode.

> If I try this code right before '(load-file (expand-file-name
> "~/emacs/site/cedet/common/cedet.elc"))':
>
> (load-file (expand-file-name "~/emacs/site/speedbar/sb-image.el")) ;;
> Override stock, system speedbar.
> (load-file (expand-file-name "~/emacs/site/speedbar/dframe.elc")) ;;
> Override stock, system speedbar.
> (load-file (expand-file-name "~/emacs/site/speedbar/speedbar.elc")) ;;
> Override stock, system speedbar.
>

What you are doing here is loading things from a location that is not
on the load-path.  It is better to append to the load-path.

(setq load-path (append load-path '("~/emacs/site/speedbar/")))
(load "dframe")
(load "sb-image")
(load "speedbar")

I think loading speedbar should load the others anyway, with this
setup.

> I then do get the updated speedbar (1.0pre3), but also continue to get
> the annoyingly ever-repeated error message:
>   idle error: "#<buffer .emacs> - Unmatched Text during Lexical
> Analysis"
> or (for another example):
>   idle error: "#<buffer Packager.java> - Unmatched Text during Lexical
> Analysis" [2 times]
>
> that is said to be due to the speedbar version conflict I am trying to
> fix in the first place.

That looks like a compability problem, probably between the Speedbar
version you're using and the version of Emacs. Apart from that I don't
know.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]