From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: trouble binding to & Date: Wed, 9 Jul 2008 09:32:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <18e1e72f-faa6-4628-8e40-81dec803acc0@l42g2000hsc.googlegroups.com> References: <87r6a5tytp.fsf@hubble.informatimago.com> <695c3ff5-6562-429b-a0b6-6c4e2a3ed040@z66g2000hsc.googlegroups.com> <36c2bf58-c3c4-4bd5-9540-9911f843ea78@d45g2000hsc.googlegroups.com> 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 1215621693 1459 80.91.229.12 (9 Jul 2008 16:41:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2008 16:41:33 +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 Jul 09 18:42:18 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 1KGck9-0004f8-F1 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2008 18:42:14 +0200 Original-Received: from localhost ([127.0.0.1]:36317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGcjF-0001PD-W7 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2008 12:41:18 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l42g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1215621134 31458 127.0.0.1 (9 Jul 2008 16:32:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Jul 2008 16:32:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l42g2000hsc.googlegroups.com; posting-host=208.218.238.20; posting-account=yS7ZzQoAAACbDncxMo9UeCyhsLtcDWPM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160001 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:55349 Archived-At: On Jul 7, 11:34 pm, Xah wrote: > On Jul 7, 11:59 am, Mirko wrote: > > > Nope. This is what I have > > > (define-key iop-alert-mode-map (kbd "") 'view-previous-entry) > > For debugging purposes, you might try first to replace the > =E2=80=9C(kbd "")=E2=80=9D with just =E2=80=9C[prior]=E2=80=9D. If= that still doesn't work, at > least you get rid of one possbibility of problem. > > Also, simply try to bind something to the PageUp key, e.g. > (global-set-key (kbd "") 'find-file) > and see if your emacs recognize that at all. > > What build or platform is your emacs on? > > Few monhts ago i tried =E2=80=9CEmacs.app=E2=80=9D (the emacs build for M= ac OS X and > NeXTStep, based on cacoa), it has a known bug that it won't recognize > keybindings on the numerical keypad. The author said he doesn't know > what's the problem or how to fix. (=E2=80=9CEmacs.app=E2=80=9D has severa= l major bugs > that i couldn't adapt it as my emacs. The oher one is unicode ...) > > Xah > =E2=88=91http://xahlee.org/ > > =E2=98=84 OK, there were a couple of problems: 1) old *.elc file 2) I was creating a derived mode 3) Outside of the define-derived-mode expression, I was separately using the construct: (unless iop-alert-mode-map (setq iop-alert-mode-map (copy-keymap text-mode-map)) (define-key iop-alert-mode-map (kbd "") 'view-previous-entry) =2E.. So, what was happening most likely was that the derived mode was creating the mode-map, and this prevented the (unless iop-alert-mode- map from operating. I moved the define-key inside the define-derived-mode expression. Thank you all for putting up with this. Mirko