ramblex/emacs-textmate — Issue #3: Text is read-only error in minibuffer
Author: tstgruby
Created: 2011-11-18 14:22:58+00:00
State: open

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 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
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 ()
```