From 573f4575dc88c9bbf0f9103fec0d8558f45190d2 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 25 Nov 2009 22:52:02 +0000 Subject: [PATCH] (man): completion-ignore-case t for friendliness and since man itself is case-insensitive on the command line. --- lisp/ChangeLog | 6 ++++-- lisp/man.el | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a7a1d93c286..add90d7c32f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,8 +3,10 @@ * man.el (Man-completion-table): default-directory "/" in case doesn't otherwise exist. process-environment COLUMNS=999 so as not to truncate long names. process-connection-type pipe to avoid - any chance of hitting the pseudo-tty TIOCGWINSZ. (Further to - Bug#3717.) + any chance of hitting the pseudo-tty TIOCGWINSZ. + (man): completion-ignore-case t for friendliness and since man + itself is case-insensitive on the command line. + Further to Bug#3717. 2009-11-25 Juri Linkov diff --git a/lisp/man.el b/lisp/man.el index cbec29f1250..050ebed81a0 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -799,6 +799,13 @@ all sections related to a subject, put something appropriate into the `Man-switches' variable, which see." (interactive (list (let* ((default-entry (Man-default-man-entry)) + ;; ignore case because that's friendly for bizarre + ;; caps things like the X11 function names and because + ;; "man" itself is case-sensitive on the command line + ;; so you're accustomed not to bother about the case + ;; ("man -k" is case-insensitive similarly, so the + ;; table has everything available to complete) + (completion-ignore-case t) (input (completing-read (format "Manual entry%s" (if (string= default-entry "") -- 2.39.5