comparison lisp/international/mule-cmds.el @ 40666:84cd0f5441e2

(describe-language-environment): Use `help-buffer' and move `help-setup-xref' to beginning.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 03 Nov 2001 00:28:22 +0000
parents 8149d14c23bf
children 20229bfaf7ce
comparison
equal deleted inserted replaced
40665:1d907a03e658 40666:84cd0f5441e2
1568 (error "No documentation for the specified language")) 1568 (error "No documentation for the specified language"))
1569 (if (symbolp language-name) 1569 (if (symbolp language-name)
1570 (setq language-name (symbol-name language-name))) 1570 (setq language-name (symbol-name language-name)))
1571 (let ((doc (get-language-info language-name 'documentation)) 1571 (let ((doc (get-language-info language-name 'documentation))
1572 pos) 1572 pos)
1573 (with-output-to-temp-buffer "*Help*" 1573 (help-setup-xref (list #'describe-language-environment language-name)
1574 (interactive-p))
1575 (with-output-to-temp-buffer (help-buffer)
1574 (save-excursion 1576 (save-excursion
1575 (set-buffer standard-output) 1577 (set-buffer standard-output)
1576 (insert language-name " language environment\n\n") 1578 (insert language-name " language environment\n\n")
1577 (if (stringp doc) 1579 (if (stringp doc)
1578 (insert doc "\n\n")) 1580 (insert doc "\n\n"))
1637 (insert "\t(alias:") 1639 (insert "\t(alias:")
1638 (while aliases 1640 (while aliases
1639 (insert " " (symbol-name (car aliases))) 1641 (insert " " (symbol-name (car aliases)))
1640 (setq aliases (cdr aliases))) 1642 (setq aliases (cdr aliases)))
1641 (insert ")\n"))) 1643 (insert ")\n")))
1642 (setq l (cdr l))))) 1644 (setq l (cdr l)))))))))
1643 (help-setup-xref (list #'describe-language-environment language-name)
1644 (interactive-p))))))
1645 1645
1646 ;;; Locales. 1646 ;;; Locales.
1647 1647
1648 (defvar locale-translation-file-name nil 1648 (defvar locale-translation-file-name nil
1649 "File name for the system's file of locale-name aliases, or nil if none.") 1649 "File name for the system's file of locale-name aliases, or nil if none.")