# HG changeset patch # User yuuji@gentei.org # Date 1284172856 -32400 # Node ID b65b3dc543d177ee042a659ba83b883bd3f532d8 # Parent 13a717bee06668cd66a532e7818111c47f11e9bb The function YaTeX-hex added. diff -r 13a717bee066 -r b65b3dc543d1 yatexlib.el --- a/yatexlib.el Thu Sep 09 09:11:25 2010 +0900 +++ b/yatexlib.el Sat Sep 11 11:40:56 2010 +0900 @@ -2,7 +2,7 @@ ;;; YaTeX and yahtml common libraries, general functions and definitions ;;; yatexlib.el ;;; (c)1994-2009 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Wed Jul 7 06:48:48 2010 on firestorm +;;; Last modified Sat Sep 11 11:40:11 2010 on firestorm ;;; $Id$ ;; General variables @@ -1067,6 +1067,37 @@ (get-file-buffer pf) (switch-to-buffer (get-file-buffer pf))))) +(defun YaTeX-get-builtin (key) + "Read source built-in command of %# usage." + (catch 'builtin + (let ((bl (delq nil (list (current-buffer) + (and YaTeX-parent-file + (get-file-buffer YaTeX-parent-file))))) + (leader (or (cdr-safe (assq major-mode + '((yatex-mode . "%#") + (yahtml-mode . "