Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Text is read-only error in minibuffer #3

Open
tstgruby opened this Issue · 0 comments

1 participant

@tstgruby

This is my setup:

(require 'ido)
(ido-mode t)
(tm/initialize)

When using C-x C-f the current path is displayed in the minibuffer like:

/usr/share/doc/

Usually <backspace> removes the top-level directory from that path:

/usr/share/

When textmate mode is enabled, it displays an error instead:

Text is read-only

And it doesn't allow me to go to the parent directory.

Here's a patch:

diff --git a/textmate.el b/textmate.el
index 5b5cb27..8efa5ea 100644
--- a/textmate.el
+++ b/textmate.el
@@ -88,7 +88,7 @@ chars are not auto-inserted in major-mode"

 (defun tm/minor-mode-auto-on ()
   "Turn on TM minor mode unless `tm/dont-activate' is set to t."
-  (unless tm/dont-activate
+  (unless (or tm/dont-activate (minibufferp))
     (tm/minor-mode-on)))

 (defun tm/minor-mode-on ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.