From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: creating a sub-menu Date: Wed, 06 Mar 2013 06:44:05 -0500 Message-ID: <51372C05.5080304@mousecar.com> References: Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1362570287 16179 80.91.229.3 (6 Mar 2013 11:44:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 11:44:47 +0000 (UTC) To: Joost Kremers , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 12:45:09 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 1UDCmS-00024W-I6 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 12:45:08 +0100 Original-Received: from localhost ([::1]:55135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDCm6-0007KI-Vw for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 06:44:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDClr-0007Jw-Vp for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 06:44:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDClq-0001Hl-TH for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 06:44:31 -0500 Original-Received: from mout.perfora.net ([74.208.4.195]:56513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDClq-0001HY-Mn for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 06:44:30 -0500 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus3) with ESMTP (Nemesis) id 0MWCcT-1UJZe91rNR-00Y1OM; Wed, 06 Mar 2013 06:44:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 In-Reply-To: X-Provags-ID: V02:K0:tA9yLAZkA+qL+/NEzxUoe3Rv/XWrMjfa+Bd32jxXBid eMmyUd9bbLjsbj712ssDQcFg4rcFuRuRu5o6wejGr4GQwRw8mb KnyDlHZgXCDH1so176Ce88zO1JLYNjyM7Q50mon0ar7/+dNlb4 UxyUCj4xWaOvdbNcgfh1kq4X3EyLdfwdgQJLKlBTi4ucYf2unT i5oK7DkixOahrxSLcaqX3oHm/Rt5lshXtWYGRV/wXRbsi2LSPM 0GtVZdUeebjJo6im3zyw5xti3eTL7QOusG3wyWFBp72FgbfCP4 Zso3NOcxxqBaRoKVYBvP/60BOn8UGerkX4uqxgxDf3NIPq5y5z IP/UaN9YdgaqCY5NtrYtqUX7eoYO0mDk6+oFvQ6EI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.195 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:89383 Archived-At: n 03/05/2013 08:42 PM Joost Kremers wrote: > 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 Thanks for your response, Joost. But I already have an easier way than that to change the input method, one which takes just two mouse clicks... and then another two mouse clicks to return to my normal input method. But I want a way so that all I need do is "C-xaa" to get 'ä'-- so I can type this and other characters without breaking the flow of my typing. I want these listed in the menu also because I might not remember all the key combos for all the characters. (I'll likely add more in future.)