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 diff
     1.1 --- a/yahtml.el	Tue May 23 11:43:34 2017 +0859
     1.2 +++ b/yahtml.el	Mon May 29 09:10:44 2017 +0859
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*-
     1.5  ;;; (c) 1994-2017 by HIROSE Yuuji [yuuji(@)yatex.org]
     1.6 -;;; Last modified Tue May 16 12:56:27 2017 on firestorm
     1.7 +;;; Last modified Mon May 29 09:10:43 2017 on firestorm
     1.8  ;;; $Id$
     1.9  
    1.10  (defconst yahtml-revision-number "1.79.3"
    1.11 @@ -1918,7 +1918,9 @@
    1.12  	(cond
    1.13  	 ((string-match "^\\(ht\\|f\\)tps?:" href)
    1.14  	  (yahtml-browse-html href))
    1.15 -	 (t (setq file (substring href 0 (string-match "#" href)))
    1.16 +	 (t (if (string-match "\&" href)
    1.17 +		(setq href (yahtml-untranslate-string href)))
    1.18 +	    (setq file (substring href 0 (string-match "#" href)))
    1.19  	    (if (string-match "#" href)
    1.20  		(setq name (substring href (1+ (string-match "#" href)))))
    1.21  	    (if (string< "" file)