[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Muse checks remote files
From: |
Magnus Henoch |
Subject: |
[emacs-wiki-discuss] Muse checks remote files |
Date: |
Sat, 28 Jan 2006 00:08:03 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (berkeley-unix) |
I've had problems when I have included a link to a file on a remote
computer (through Tramp). Muse tries to check whether the file exists
during fontification; Tramp asks for a password, but the prompt isn't
displayed, so I have to type the password blindly.
A more thorough analysis might be in order, but this patch fixes the
problem for me:
--- orig/lisp/muse-colors.el
+++ mod/lisp/muse-colors.el
@@ -635,7 +635,7 @@
(cond ((string-match muse-url-regexp link)
'muse-link-face)
((string-match muse-file-regexp link)
- (if (file-exists-p link)
+ (if (or (file-remote-p link) (file-exists-p link))
'muse-link-face
'muse-bad-link-face))
((not (featurep 'muse-project))
@@ -646,7 +646,7 @@
(if (or (and (muse-project-of-file)
(muse-project-page-file
link muse-current-project t))
- (file-exists-p link))
+ (or (file-remote-p link) (file-exists-p link)))
'muse-link-face
'muse-bad-link-face)))))))
Magnus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [emacs-wiki-discuss] Muse checks remote files,
Magnus Henoch <=