ken wrote:
Trying to create a sub-menu under "Edit". Got part of the way there,
but still missing something.
(define-key menu-bar-edit-menu [insert-xascii-chars]
'(menu-item "Insert non-ASCII characters" xascii
(xascii "\C-xaa" "ä" "ä` (ä)" ("ä"))
(xascii "\C-xaA" "Ä" "Ä` (Ä)" ("Ä"))
(xascii "\C-xao" "ö" "ö` (ö)" ("ö"))
(xascii "\C-xaO" "Ö" "Ö` (Ö)" ("Ö"))
(xascii "\C-xau" "ü" "ü` (ü)" ("ü"))
(xascii "\C-xaU" "Ü" "Ü` (Ü)" ("Ü"))
(xascii "\C-xas" "ß" "ß` (ß)" ("ß"))
(xascii "\C-xa<" "«" "«` («)" ("«"))
(xascii "\C-xa>" "»" "»` (»)" ("»"))))
Above yields error:
Debugger entered--Lisp error: (wrong-type-argument arrayp xascii)
dunno about the error, but if all you want is to easily type German, why
don't you use an input method? `M-x set-input-method latin9-prefix RET'
and you can type "a to get ä, ~s to get ß, ~< to get «, etc.
(info "(emacs) Input Methods") for details.
HTH