From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Brenner Newsgroups: gmane.emacs.help Subject: Re: ESC x man and "man -k" Date: Fri, 22 Jan 2010 01:11:23 -0800 Message-ID: <873a1ybj2c.fsf@kzsu.stanford.edu> References: <87eillbbyo.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264153277 27481 80.91.229.12 (22 Jan 2010 09:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 09:41:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 22 10:41:10 2010 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 1NYG0r-0001al-3L for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 10:41:09 +0100 Original-Received: from localhost ([127.0.0.1]:48004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYG0s-0005zM-4r for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 04:41:10 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.rawbandwidth!news.posted.rawbandwidth.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 22 Jan 2010 03:10:41 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:TOB4/aPnMLzWgrlTbf0gxlN0OTo= Original-Lines: 31 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 198.144.208.84 Original-X-Trace: sv3-B8zKd+uVHYAxXcusTJm53tJ0i0YCBgnnRx2/1EoxGJZr4VtzTvwT2T1moQVbKn/N0zw8iZBTDBCprcz!Y4DRaPVnO/BGVE85F8EFH+wXKyXDMFrxkyEngcpS0pTkxlHRctgdpvIMyDt2ldkVmDev7M9jo+o= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:176301 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:71371 Archived-At: Kevin Rodgers writes: > Joseph Brenner wrote: >> I've always liked the man feature: >> man -k >> Which does something like an "apropos" search on man pages. >> >> I used to use this feature often inside of emacs, first doing an >> ESC x man >> then at the prompt, entering: >> -k >> >> Now, with a recent "cvs emacs" (soon to be called "bizarre emacs", I fear), >> I find that I can't type the space after the -k. >> >> Is this supposed to be a feature? How can I fix it? > > It must be doing completion on the option letter. > > Type C-q SPC instead of just SPC. Yes, that seems to work... but I decided I might as well do it like this: (defun man-apropos-search (search-term) "Do a keyword search of man pages, cf. 'man -k SEARCH-TERM'." (interactive "ssearch term for man pages: ") (man (concat "-k " search-term))) (global-set-key "\M-om" 'man-apropos-search)