yatex

changeset 546:071cd0ab1c71 dev

Optional second arg. for YaTeX-help suppress ask of new entry creation
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 02 Jun 2018 16:47:26 +0900
parents ea6956f10ce7
children 826b0766f6ba
files yatexhlp.el
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/yatexhlp.el	Sat Jun 02 15:57:55 2018 +0900
     1.2 +++ b/yatexhlp.el	Sat Jun 02 16:47:26 2018 +0900
     1.3 @@ -1,7 +1,7 @@
     1.4  ;;; yatexhlp.el --- YaTeX helper for LaTeX -*- coding: sjis -*-
     1.5  ;;; 
     1.6 -;;; (c)1994,1998,2004,2014,2015 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Sun Sep 17 10:23:19 2017 on firestorm
     1.8 +;;; (c)1994,1998,2004,2014,2015,2018 by HIROSE Yuuji.[yuuji@yatex.org]
     1.9 +;;; Last modified Sat Jun  2 16:45:45 2018 on firestorm
    1.10  ;;; $Id$
    1.11  
    1.12  ;;; Code:
    1.13 @@ -302,9 +302,11 @@
    1.14        (message "No matches found.")))
    1.15  
    1.16  ;;;###autoload
    1.17 -(defun YaTeX-help (&optional macro)
    1.18 +(defun YaTeX-help (&optional macro ref-only)
    1.19    "Show help buffer of LaTeX/TeX commands or macros.
    1.20 -Optional argument MACRO, if supplied, is directly selected to keyword."
    1.21 +Optional argument MACRO, if supplied, is directly selected to keyword.
    1.22 +Non-nil for optional second argument REF-ONLY inhibits call enrich-help
    1.23 +for non-interactive use."
    1.24    (interactive)
    1.25    (let (p beg end command)
    1.26      (save-excursion
    1.27 @@ -341,4 +343,5 @@
    1.28      (setq YaTeX-help-saved-config (current-window-configuration))
    1.29      (or (YaTeX-refer-help command YaTeX-help-file)
    1.30  	(YaTeX-refer-help command YaTeX-help-file-private)
    1.31 +	ref-only
    1.32  	(YaTeX-enrich-help command))))