Mercurial > hgrepos > hgweb.cgi > yatex
changeset 462:c940797c19ad dev
href target of file should be untranslated before find-file
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 29 May 2017 09:10:44 +0859 |
parents | 9db0e1522847 |
children | a4d49700b1c5 |
files | yahtml.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/yahtml.el Tue May 23 11:43:34 2017 +0859 +++ b/yahtml.el Mon May 29 09:10:44 2017 +0859 @@ -1,6 +1,6 @@ ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*- ;;; (c) 1994-2017 by HIROSE Yuuji [yuuji(@)yatex.org] -;;; Last modified Tue May 16 12:56:27 2017 on firestorm +;;; Last modified Mon May 29 09:10:43 2017 on firestorm ;;; $Id$ (defconst yahtml-revision-number "1.79.3" @@ -1918,7 +1918,9 @@ (cond ((string-match "^\\(ht\\|f\\)tps?:" href) (yahtml-browse-html href)) - (t (setq file (substring href 0 (string-match "#" href))) + (t (if (string-match "\&" href) + (setq href (yahtml-untranslate-string href))) + (setq file (substring href 0 (string-match "#" href))) (if (string-match "#" href) (setq name (substring href (1+ (string-match "#" href))))) (if (string< "" file)