From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: How to get current keymap Date: Sat, 6 Dec 2008 10:24:45 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <878wqtcqt6.fsf@emacs.Arch.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228593278 21996 80.91.229.12 (6 Dec 2008 19:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2008 19:54:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 06 20:55:41 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 1L93Fd-0006SC-4n for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 20:55:41 +0100 Original-Received: from localhost ([127.0.0.1]:58506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L93ES-000353-Gd for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 14:54:28 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p2g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 29 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1228587885 28619 127.0.0.1 (6 Dec 2008 18:24:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 6 Dec 2008 18:24:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prn.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165075 comp.emacs:97425 X-Mailman-Approved-At: Sat, 06 Dec 2008 14:52:17 -0500 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:60403 Archived-At: On Dec 6, 6:37 am, netawater wrote: > I used (concat (symbol-name major-mode) "-map") to get current keymap, bu= t it > failed for LaTeX mode. Are there other methode to get current keymap. Tha= nk you > very much!. there are these: current-active-maps Function: Return a list of the currently active keymaps. current-global-map Function: Return the current global keymap. current-local-map Function: Return current buffer's local keymap, or nil if it has none. current-minor-mode-maps Function: Return a list of keymaps for the minor modes of the current buffer. these are gotten by =E2=80=9CCtrl+u Ctrl+h a -maps=E2=80=9D. In short, give= a empty arg to apropos-command then look for function names ending in =E2=80=9C-map= s=E2=80=9D. Xah =E2=88=91 http://xahlee.org/ =E2=98=84