From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Assign menu function to keychord? Date: Wed, 15 Oct 2008 05:04:35 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224067261 17304 80.91.229.12 (15 Oct 2008 10:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 10:41:01 +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 Oct 15 12:42:00 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kq3pA-0005Fv-PZ for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 12:41:53 +0200 Original-Received: from localhost ([127.0.0.1]:53541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq3o6-0007bO-7x for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 06:40:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 15 Oct 2008 05:04:15 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 23 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.6 Original-X-Trace: sv3-7hveXx5cP5Wz7Yku+7p5hPtsGpxc741xjrknrPh5CKBiBoNT6vnyk7Hk2/bpnP1sNFFrPbSdZNGcOTX!3jx7BVCL8yB+XACLO08xNoWl2ETEpUx/OAv9J8U/rDMtRqey+X1x/LHdlczR1gemolmQ95ckqucx!0qjJMKCJRiyvtJIs4VUiAE1up6NB Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:163452 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58799 Archived-At: B. T. Raven wrote: > In an .tex buffer (using Auctex) and under Menu > Command , there is a > Clean All option that seems to call an undocumented (menu-function-176). > Is it possible to assign this to some key combination? Is it in general > possible to assign anything found in the menu bars to the keyboard? > > Thanks, > > Ed The function seems to be (TeX-clean t) but since it needs an argument in order to Clean All, I don't know how to assign it to an alias (e.g. defalias 'txc 'TeX-clean)or to a keychord. Does the function with argument have to be wrapped in a user function with a lambda()? Does this function also need the interactive declaration? Related to this problem (generically) is the question of whether it is possible to generate a report of ALL unassigned key combos in a given mode. Is this a non-trivial programming exercise? Thanks, Ed