From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: creating a sub-menu Date: 6 Mar 2013 01:42:58 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1362537087 22125 80.91.229.3 (6 Mar 2013 02:31:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 02:31:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 03:31:50 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UD48s-00055F-M6 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 03:31:42 +0100 Original-Received: from localhost ([::1]:37711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD48X-0006ph-3J for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Mar 2013 21:31:21 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net O5adwG5RqvfLxLcrJ6mYqw3I/DB9Cwre9E4wFabvZg1yvzTfHL8HH7LSMvpg8+uA20 Cancel-Lock: sha1:i5Bo/KDKmWxXzMBe+si/qRSjWhE= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:197095 X-Mailman-Approved-At: Tue, 05 Mar 2013 21:31:12 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89376 Archived-At: 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 -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)