unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Patch that adds help to isearch
Date: Wed, 30 Nov 2005 04:47:28 +0200	[thread overview]
Message-ID: <87r78yswf4.fsf@jurta.org> (raw)
In-Reply-To: <36dd4d936dd9fb.36dd9fb36dd4d9@net.lu.se> (LENNART BORGMAN's message of "Tue, 29 Nov 2005 11:23:11 +0100")

> Thanks for the explanation about why C-h is needed for an
> experienced user.  I think however that enabling the help only for
> the state when the search string is empty would be confusing.
> I would prefer a defcustom to enable/disable isearch-mode-help on
> C-h instead.  Could that satisfy experienced users?

A key definition is as simple as defcustom.  Instead of:

(setq isearch-bind-C-h-to-isearch-mode-help t)

you can put in .emacs:

(define-key map "\C-h" 'isearch-mode-help)

The main question is what should be the default.  For novices, who
don't know how to configure Emacs, the default binding of C-h to
`isearch-mode-help' is very helpful.  More experienced users can
put in .emacs:

(define-key isearch-mode-map "\C-h" nil)

if C-h is bound to `isearch-mode-help' in isearch.el by default.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2005-11-30  2:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 10:23 Patch that adds help to isearch LENNART BORGMAN
2005-11-30  2:47 ` Juri Linkov [this message]
2005-11-30  8:24   ` Lennart Borgman
2005-11-30 15:34     ` Juri Linkov
2005-11-30 22:27       ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2005-11-24 23:02 Lennart Borgman
2005-11-26  4:22 ` Richard M. Stallman
2005-11-27 22:53   ` Lennart Borgman
2005-11-28  7:21     ` Lennart Borgman
2005-11-29  9:04   ` Juri Linkov
2005-11-29 21:47     ` Richard M. Stallman
2005-11-29 22:12       ` Lennart Borgman
2005-11-30  2:48         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r78yswf4.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).