Skip to content

textmate-goto-file fails when you're in a tramp-buffer #13

@alf

Description

@alf

If I open the file /localhost:/test.html and then try to run textmate-goto-file, emacs becomes unresponsive for about 15 seconds followed by the message: byte-code: Lisp nesting exceeds `max-lisp-eval-depth'

Seems the bug is in textmate-find-project-root which exits only when a root is found or the remaining path is "/". Since we're using tramp, the latter will never happen.

It seems ido has a function: ido-is-root-directory that can be used (if textmate can depend on ido that is). Here's my temp fix:
((ido-is-root-directory (substring (expand-file-name root) 0 -1)) nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions