From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: search -> replace -> global keymap? Date: Thu, 09 Mar 2017 18:24:26 +0000 Message-ID: <87a88u8g11.fsf@skimble.plus.com> References: <87mvcv39lz.fsf@skimble.plus.com> <1a33d696-77d1-44af-bccf-efd6690f7202@default> <87r326a9mj.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1489083895 20457 195.159.176.226 (9 Mar 2017 18:24:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 18:24:55 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 19:24:50 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm2k4-0004em-AO for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 19:24:48 +0100 Original-Received: from localhost ([::1]:35702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm2kA-0004yK-7o for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 13:24:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm2ji-0004yE-G6 for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:24:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm2jd-0006JJ-RO for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:24:26 -0500 Original-Received: from avasout07.plus.net ([84.93.230.235]:42571) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm2jd-0006If-Ke for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:24:21 -0500 Original-Received: from london.london ([51.7.106.233]) by avasout07 with smtp id tuQH1u003529ot701uQJ2Z; Thu, 09 Mar 2017 18:24:20 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=Y8KIilWN c=1 sm=1 tr=0 a=E49OrRtc5+dUs92J+03Wog==:117 a=E49OrRtc5+dUs92J+03Wog==:17 a=yPCof4ZbAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=oTxkgnCFE1soY5ouOacA:9 a=tyEzlWBuDT-rsKkF:21 a=JktWMI-tEe4cxnng:21 a=7h3yL3mdLO8tPUmRnFEA:9 a=ONNS8QRKHyMA:10 a=2lfDSYhZ3Z6b8uxcDO-Z:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Drew Adams's message of "Thu, 9 Mar 2017 06:46:27 -0800 (PST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 84.93.230.235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112497 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Drew Adams writes: >> >> I'm using a certain command very often from the menus and using my >> >> mouse. It is 'search -> replace -> global' but how can I assign a key= map >> >> to it please so that I'm able to call it from within my document plea= se? >> > >> > What menu is that (I don't see it)? >> > >> > Anyway, do this: `C-h k' followed by picking the menu item that you >> > want to assign a key to. That will tell you what the command is >> > that that menu item invokes. >> > >> > Then do `C-h w' followed by that command name, to see if it is >> > already on a keyboard key sequence, in addition to being bound >> > to that menu item. >> > >> > If it has no keyboard binding, give it one, using `global-set-key'. >> > >> > You can use `M-x global-set-key' interactively, to try it out. >> > You can use `(global-set-key (kbd "...") 'COMMAND)' in your init >> > file to get the binding persistently, where "..." is the key >> > sequence you want and COMMAND is the command you want to bind >> > it to. >>=20 >> Thanks for this Drew. >>=20 >> To find what I'm talking about 'Menu-bar -> Search -> Replace -> Global' > > I don't see that menu. You should mention the details about your > Emacs version/installation. With `emacs -Q' (no init file) I see > the Search menu under the Edit menu on the menu-bar. I see no > Search menu on the menu-bar. But it might also depend on what mode > you are in etc. Sorry Drew, those details are in my sig at the bottom of all my emails. The menu-bar is open in every buffer and mode, as I do still use it a lot. > >> and the command that it generates is 'replace-string'. So I've assigned >> a keyboard binding to it and its now working well, thanks. > > Good. But how did you find which command is bound to it, if `C-h k' > doesn't work for you? I used 'F1 k'. Because I can't use 'C-h whatever' I try and use 'F1 whateve= r'. > >> But this problem has thrown up a difficulty for me, in that I can't use >> 'C-h k'! If I try it it always just shows the 'k', and ditto 'C-h w'! >> How can I find what it has been mapped to please? > > Others have responded to this question. Try f1 if C-h doesn't seem > to work. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D http://www.drugfacts.org.uk=20=20 Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYwZ3aAAoJEDaBgBkK+INbK6UQAJUdVohPCUKYCgzHXbAJ4+e/ sf02P33XnSPzaQFRhyellDfQ2NuNqwCBOyxET0XMAmeq2p8kv93Yl2wTvQGVbfV2 y19LsKPZsM8ekW0WnK9rK9Qy6Otlw4jKPbLFYEfexWemG++dTVDf/Rw6AUshlNHi J2GqT9wrbZKuuROQinjz/Xip5UCX3Q2gFNica0g8SfMYTOG03ZFMMTFKermvTlv5 ZJB3glbp4QMm4FwaR4hTe9m93aqecrs5a2weKMldfK3DH7SZ+yePtNNxj/hY5wXc fifkygRhxadKGaEvB+n+hpvgeZpKBc4v0Yhmpi6lqomPjF5YMaw+dXUtua1cgry8 bbjxgcm72XA/c8nLeOfnD134DvZCYmaZxHZvor401X5yvSb1Znb986P2Fmch0eFU 2vlQHFQsxENvYs0bQQP+HEcy6yso96r0/nmAvNn/rD47VZblRjd+KMiPVu9zO6lz CYnsXVrIQjBfQGnmHhqeOzxxz9uHb8RUqnhrq4oGBFxniSy15WYWw8NKzh6Z7vHD oVZ4+3Qz1CDzKeyrJUFgLi76LSWAsz0dPAWR7NJ1bJv2XhrGxe1DCnKlyg/wrBi8 sywhPCIERkIq21gI9+9cN62Fu3q6papxzlwo9xhlpowVHP4Yf6H72rhgGwDKYGJx XacwwrVtLEzOsu3ZwWHi =g2h9 -----END PGP SIGNATURE----- --=-=-=--