On Mon, May 23, 2011 at 15:11, Simon Katz <nomisk...@gmail.com> wrote:

> On Mon, May 23, 2011 at 14:36, Simon Katz <nomisk...@gmail.com> wrote:
>
>> On Sun, May 22, 2011 at 03:35, Phil Hagelberg <p...@hagelb.org> wrote:
>>
>>> On May 21, 1:28 pm, Simon Katz <nomisk...@gmail.com> wrote:
>>> > I'm having trouble using Emacs' Find Source command to navigate to
>>> > Clojure source.
>>> >
>>> > I'm using Leiningen (1.4.2) and Emacs (23.2).
>>>
>>> > I thought this would be enough to allow the Emacs Find Source command
>>> > (meta-.) to find Clojure source code.  But when, for example, I try
>>> > meta-. on reduce, Emacs jumps to a buffer showing this line...
>>>
>>> Works fine for me. Would need more details to debug. How did you
>>> install slime? How did you launch and connect to the swank server?
>>> From what buffer did you invoke M-.? What does C-h c say about M-.
>>> from that buffer?
>>>
>>> -Phil
>>
>>
>> Thanks for confirming it should work.
>>
>> I should also have mentioned:
>>
>> - I have the behaviour I'm describing on Windows XP and Windows Vista.
>>
>> - M-. works ok to find my own definitions.
>>
>> I've now installed an unzip.exe (from
>> http://gnuwin32.sourceforge.net/packages/unzip.htm),
>> and now when I try M-. on reduce I get the line
>>       caution: filename not matched:  "clojure/core.clj"
>>   in a buffer described as
>>       core.clj (cloju...        51 Clojure
>>  [...]/sk-mini-project-1-2-0/lib/clojure-1.2.0.jar:clojure/core.clj
>>
>> Googling led me to this...
>>   http://web.archiveorange.com/archive/v/UcW9CERUAfsCRJzpBo7s
>> which says there are issues with Emacs and unzipping on
>> Windows. I followed the suggestion there (in the post dated
>> Wed Dec 08 2010), but that just reverted me to the original behaviour
>> I described.
>>
>> Any further pointers would be appreciated!
>>
>> Here are the answers to Phil's questions in case any of these details
>> may be useful:
>>
>> - Looking back at my notes, I didn't explicitly install slime.  Does
>>   slime come as part of installing Clojure Mode and/or Swank Clojure in
>>   Emacs (using the package-list-packages command)?
>>
>> - I launch the swank server with
>>     lein swank
>>
>> - I connect to the swank server with
>>     M-x slime-connect
>>
>> - I have the behaviour I described when using M-. from either a REPL or
>>   from a buffer displaying a .clj file in Clojure mode.
>>
>> - C-h c for both the REPL and Clojure mode says "M-. runs the command
>>   slime-edit-definition".
>>
>> Simon
>>
>
> Replying to myself...
>
> Actually, following the advice at...
>   http://web.archiveorange.com/archive/v/UcW9CERUAfsCRJzpBo7s
> ...(in the post dated Wed Dec 08 2010) gives rise to different behaviours
> on my XP machine and my Vista machine.  On the XP machine, I get the
> behaviour I described originally but on the Vista machine I still get the
> "caution: filename not matched" behaviour.
>
> The only difference I can find in the two Emacs installations is that the
> XP installation has clojure-test-mode-1.5.1 and the Vista installation does
> not.
>
> Simon
>

Replying to myself again...

In fact, the advice at
http://web.archiveorange.com/archive/v/UcW9CERUAfsCRJzpBo7s does work -- it
was me that was malfunctioning.  Problem solved.

Simon

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to