changeset 411:a4a2635c5158 dev

yahtml-element-path works correctly on `body'-less document
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 13 Feb 2015 08:21:39 +0900
parents 9ab38ecfd3d1
children b899adfd0879
files yahtml.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yahtml.el	Fri Feb 13 08:20:12 2015 +0900
+++ b/yahtml.el	Fri Feb 13 08:21:39 2015 +0900
@@ -1,6 +1,6 @@
 ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*-
 ;;; (c) 1994-2015 by HIROSE Yuuji [yuuji(@)yatex.org]
-;;; Last modified Wed Feb 11 08:58:55 2015 on firestorm
+;;; Last modified Wed Feb 11 12:17:03 2015 on firestorm
 ;;; $Id$
 
 (defconst yahtml-revision-number "1.78.1"
@@ -2522,7 +2522,8 @@
 				"body")))
 	(setq path (cons elm path)
 	      elm nil))
-      (and elm (setq path (cons elm path))))))
+      (and elm (setq path (cons elm path)))
+      path)))
 
 (defun yahtml-forward-field (arg)
   "Move ARGth forward cell to table element.

yatex.org