From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: netawater Newsgroups: gmane.emacs.help Subject: Re: How to get current keymap Date: Sun, 07 Dec 2008 13:28:34 +0800 Organization: A noiseless patient Spider Message-ID: <873ah0v9j1.fsf@emacs.Arch.net> References: <878wqtcqt6.fsf@emacs.Arch.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228628474 14571 80.91.229.12 (7 Dec 2008 05:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 05:41:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 06:42:19 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 1L9CPJ-0000L4-EY for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 06:42:17 +0100 Original-Received: from localhost ([127.0.0.1]:39954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9CO8-0000y9-6p for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 00:41:04 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news.motzarella.org!motzarella.org!reader.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: reader.motzarella.org U2FsdGVkX1/MH0GqkoEEArO8tGrHQ/1EIXZzLa01P1n+yka94qKH7YTQ+poWXvtbiwIn86AHywh2istywzzTXFXwsv1CkVNJvK66oWXlWWcZACsBvIjAeRnA+kCDUW5YbSk2iF6MfcY= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 7 Dec 2008 05:28:39 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/kP4D4krK8hZpxNP8hXUICE4Tij0GRhYIkQD04rPP/SQ== Cancel-Lock: sha1:j/JVzrJq/OCa/l92D+X+kJ9wRQE= sha1:koKBsXarWsLKtgFYzWLSXP3Fgbw= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:165080 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:60406 Archived-At: Rupert Swarbrick writes: > netawater writes: > >> I used (concat (symbol-name major-mode) "-map") to get current keymap, >> but it failed for LaTeX mode. Are there other methode to get current >> keymap. Thank you very much!. > > Maybe (current-active-maps) does what you need? See > > (info "(elisp) Active Keymaps") > > > Rupert Thank you both. I'm very sorry my description is not accurate, :(. I want to get current mode's keymap, some modes do not have keymap, but current keymap always exists. I need define a key for my function in it and my function can be always active for that mode. Thank you very much for replying.