From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YSK Newsgroups: gmane.emacs.help Subject: Re: redefine C-h Date: Sun, 10 Aug 2008 18:00:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6c2a4df0-eaa7-4617-9cb5-94f0ca4bd888@w7g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218418850 30659 80.91.229.12 (11 Aug 2008 01:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 01:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 03:41: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 1KSMPk-0003VP-KH for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 03:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:37792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSMOo-0000c1-Mi for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2008 21:40:42 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r66g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 108 Original-NNTP-Posting-Host: 69.121.149.235 Original-X-Trace: posting.google.com 1218416436 8166 127.0.0.1 (11 Aug 2008 01:00:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Aug 2008 01:00:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r66g2000hsg.googlegroups.com; posting-host=69.121.149.235; posting-account=z6ITewoAAABmlG9vONzLvdFrBL9rvvvn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 (CK-IBM) Firefox/3.0.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161083 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:56430 Archived-At: On Aug 10, 8:41=A0pm, "Drew Adams" wrote: > > Icicles does not bind `C-h'. `C-h' with Icicle mode is the same as it is = without > it. (*) Drew, I must have turned on an icicles setting to override these keys, since commenting out these lines in icicles-mode.el gave me the C-h behavior I was looking for: ; (icicle-remap 'where-is 'icicle- where-is ; icicle-mode-map (current-global-map)) ; `C-h w' and ; (define-key icicle-mode-map "\C-h\C-o" 'icicle-describe-option- of-type) ; `C-h C-o' I'm not exactly sure why, actually. Possibly I made another change at around the same time that I can't recall right now that actually "fixed" my C-h issue. > If `C-h' remains a prefix key after your customizations, I am sure that h= as > nothing to do with Icicles. And, as others have pointed out, [C-h] is not= what > you want anyway - use [(control ?h)] or "\C-h" or (kbd "C-h") or [?\C-h] = or... > And you should also customize `help-char', as Kevin pointed out. > > Similarly, for `C-M-h': Icicles should not affect it. Your binding of `C-= M-h' to > `help-command' should work OK everywhere. Is that not what you see? Yes, C-M-h worked correctly right away. It's the 'C-h' rebinding that was not taking. > > Icicle mode does, however make some changes in the minibuffer keymaps. On= e that > is pertinent here is that it remaps command `delete-backward-char' to > `icicle-delete-backward-char' in the minibuffer completion keymaps. This = is so > that whenever you delete a character in the minibuffer the set of candida= te > completions is updated to reflect your edited input. > > This is as it should be. This does not, however, affect the binding of > `delete-backward-char' outside of the minibuffer. And it does not even af= fect > its binding in the minibuffer, except during completion. Yes..I would prefer to keep the iciciles minibuffer features intact since I do use icicles entirely for its minibuffer enhancements. > > If you successfully change the binding of `delete-backward-char' to `C-h'= , then, > because Icicle mode remaps this to `icicle-delete-backward-char' in the > minibuffer during completion, `C-h' during completion will delete a minib= uffer > character and update the set of completion candidates. > > IIUC, that should be just what you're after: `C-h' will always delete the > character before point. In the minibuffer, it will also update the comple= tion > candidates - but that's the only difference. In my current setup, C-h does do the right thing in the minibuffer - delete the char before point, and update the completion list. > You can easily see all of this for yourself if you load library `help-fns= +.el' > (**) and then use `C-h M-k' (`describe-keymap'). You can use `C-h C-k' to= show > `icicle-mode-map' and each of the minibuffer maps: `minibuffer-local-map'= , > `minibuffer-local-completion-map', and so on. Quit Icicle mode and check = the > minibuffer maps again, to see the difference. Check `global-map' too, to = see > whether your customizations have really taken effect as you expect. > `describe-keymap' is your friend. Thanks for the tip..I will give help-fns+.el a spin; it looks handy. > > You should be able to get what you want and still use Icicles, without an= y > difficulty. If you have questions, feel free to ask. If you see a problem= , > please file a bug report: `M-x icicle-send-bug-report'. > > ---- > (*) In Icicle mode, these two `C-h' bindings are changed, but only if you= so > choose - see option `icicle-top-level-key-bindings': > > `C-h C-o' - `icicle-describe-option-of-type' > `C-h w' =A0 - `icicle-where-is' (multi-command version of `where-is') > > (**) `help-fns+.el' is available here:http://www.emacswiki.org/cgi-bin/wi= ki/help-fns%2b.el