annotate lisp/locale/ja/locale-start.el @ 131:869e1851236b xemacs-20-1p4

Import from CVS: tag xemacs-20-1p4
author cvs
date Mon, 13 Aug 2007 09:29:07 +0200
parents 131b0175ea99
children 538048ae2ab8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 (defun startup-splash-frame-body ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 `("\n" ,(emacs-version) "\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3 (face bold-italic "\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4 Copyright (C) 1985-1996 Free Software Foundation, Inc.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 Copyright (C) 1990-1994 Lucid, Inc.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6 Copyright (C) 1993-1996 Sun Microsystems, Inc. All Rights Reserved.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 Copyright (C) 1994-1996 Board of Trustees, University of Illinois
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 Copyright (C) 1995-1996 Ben Wing\n\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 ,@(if (featurep 'sparcworks)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 `( "\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 Sun provides support for the WorkShop/XEmacs integration package only.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 All other XEmacs packages are provided to you \"AS IS\".
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 For full details, type " (key describe-no-warranty)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15 " to refer to the GPL Version 2, dated June 1991.\n\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16 ,@(let ((lang (or (getenv "LC_ALL") (getenv "LC_MESSAGES") (getenv "LANG"))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17 (if (and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 (not (featurep 'mule)) ; Already got mule?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19 (not (eq 'tty (console-type))) ; No Mule support on tty's yet
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 lang ; Non-English locale?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21 (not (string-equal lang "C"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 (not (string-match "^en" lang))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23 (locate-file "xemacs-mule" exec-path)) ; Comes with Sun WorkShop
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 '( "\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 This version of XEmacs has been built with support for Latin-1 languages only.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26 To handle other languages you need to run a Multi-lingual (`Mule') version of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 XEmacs, by either running the command `xemacs-mule', or by using the X resource
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 `ESERVE*defaultXEmacsPath: xemacs-mule' when starting XEmacs from Sun WorkShop.\n\n"))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30 '("XEmacs comes with ABSOLUTELY NO WARRANTY; type "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 (key describe-no-warranty) " for full details.\n"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 "You may give out copies of XEmacs; type "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 (key describe-copying) " to see the conditions.\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 "Type " (key describe-distribution)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36 " for information on getting the latest version.\n\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 "Type " (key help-command) " or use the " (face bold "Help") " menu to get help.\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 "Type " (key advertised-undo) " to undo changes (`C-' means use the Control key).\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 "To get out of XEmacs, type " (key save-buffers-kill-emacs) ".\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 "Type " (key help-with-tutorial) " for a tutorial on using XEmacs.\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 "Type " (key info) " to enter Info, "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 "which you can use to read online documentation.\n\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 (face (bold red) ( "\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 For tips and answers to frequently asked questions, see the XEmacs FAQ.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 \(It's on the Help menu, or type " (key xemacs-local-faq) " [a capital F!].\)"))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 (defun command-line-do-help (arg)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 "Print the $(BF|K\(B XEmacs usage message and exit."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 (let ((standard-output 'external-debugging-output))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 (princ (concat "\n" (emacs-version) "\n\n"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 (princ
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 (if (featurep 'x)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 (concat "XEmacs accepts all standard X Toolkit command line options.\n"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 "In addition, the")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57 "The"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 (princ " following options are accepted:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 -t <device> Use TTY <device> instead of the terminal for input
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 and output. This implies the -nw option.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 -nw Inhibit the use of any window-system-specific
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 display code: use the current tty.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 -batch Execute noninteractively (messages go to stderr).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 -debug-init Enter the debugger if an error in the init file occurs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66 -unmapped Do not map the initial frame.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 -no-site-file Do not load the site-specific init file (site-start.el).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 -no-init-file Do not load the user-specific init file (~/.emacs).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69 -q Same as -no-init-file.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 -user <user> Load user's init file instead of your own.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 -u <user> Same as -user.\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 (let ((l command-switch-alist)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 (insert (lambda (&rest x)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74 (princ " ")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75 (let ((len 2))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 (while x
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77 (princ (car x))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 (incf len (length (car x)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 (setq x (cdr x)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 (when (>= len 24)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 (terpri) (setq len 0))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 (while (< len 24)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 (princ " ")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 (incf len))))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 (while l
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 (let ((name (car (car l)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 (fn (cdr (car l)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 doc arg cons)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 (cond
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 ((and (symbolp fn) (get fn 'undocumented)) nil)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 (t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92 (setq doc (documentation fn))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 (if (member doc '(nil "")) (setq doc "(undocumented)"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 (cond ((string-match "\n\\(<.*>\\)\n?\\'" doc)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95 ;; Doc of the form "The frobber switch\n<arg1> <arg2>"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96 (setq arg (substring doc (match-beginning 1) (match-end 1))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97 doc (substring doc 0 (match-beginning 0))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 ((string-match "\n+\\'" doc)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99 (setq doc (substring doc 0 (match-beginning 0)))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 (if (and (setq cons (rassq fn command-switch-alist))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101 (not (eq cons (car l))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102 (setq doc (format "Same as %s." (car cons))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 (if arg
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104 (funcall insert name " " arg)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 (funcall insert name))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
106 (princ doc)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
107 (terpri))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
108 (setq l (cdr l))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
109 (princ "\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
110 +N <file> Start displaying <file> at line N.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
111
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
112 Anything else is considered a file name, and is placed into a buffer for
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
113 editing.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
114
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
115 XEmacs has an online tutorial and manuals. Type ^Ht (Control-h t) after
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
116 starting XEmacs to run the tutorial. Type ^Hi to enter the manual browser.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
117 Type ^H^H^H (Control-h Control-h Control-h) to get more help options.\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
118
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
119 (kill-emacs 0)))