From xemacs-m  Thu May  1 17:26:42 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA04999
	for <xemacs-beta@xemacs.org>; Thu, 1 May 1997 17:26:40 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id AAA16382; Fri, 2 May 1997 00:26:38 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: Patch: cperl-mode.el {C-h} changed to {C-c}
References: <199705012215.PAA03547@bittersweet.inetarena.com>
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 02 May 1997 00:26:37 +0200
In-Reply-To: "Karl M. Hegbloom"'s message of Thu, 1 May 1997 15:15:39 -0700
Message-ID: <kig7mhihlr6.fsf@jagor.srce.hr>
Lines: 29
X-Mailer: Gnus v5.4.45/XEmacs 19.15

"Karl M. Hegbloom" <karlheg@inetarena.com> writes:

> I like to keep {C-h} bound to 'backward-delete-char.  Take this or
> leave it, as you will.  :-)

Both are wrong.  The right solution (at least in XEmacs) is something
like:

(define-key help-map "f" 'blahblah)
(define-key help-map "v" 'blahblah)

This will work will `C-h f' as well as `f1 f' as well as anything
else.  It will also respect your binding of `C-h' to whatever you
like.  `help-map' is present in GNU Emacs, too.

I have no idea what `cperl-define-key' does, but I think it should be
modified to use this mechanism rather than binding "raw" C-h.

> !   (cperl-define-key "\C-cf" 'cperl-info-on-command [(control c) f])
> !   (cperl-define-key "\C-cv" 'cperl-get-help [(control c) v])

Note that modes should never take `C-c <letter>' -- those keystrokes
are reserved for the users!

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
You'll notice that perl is not itself written in Perl.
                                                 -- The Perl FAQ

