From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: clear-kill-ring function Date: Tue, 27 Oct 2015 19:29:57 +0000 Message-ID: <87lhaof6tm.fsf@skimble.plus.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1445974240 8576 80.91.229.3 (27 Oct 2015 19:30:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2015 19:30:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 20:30:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zr9wv-0002LG-Ak for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2015 20:30:25 +0100 Original-Received: from localhost ([::1]:34000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr9wu-00055z-3a for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2015 15:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr9wh-00054P-MV for help-gnu-emacs@gnu.org; Tue, 27 Oct 2015 15:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr9wd-0002Ns-BG for help-gnu-emacs@gnu.org; Tue, 27 Oct 2015 15:30:11 -0400 Original-Received: from avasout03.plus.net ([84.93.230.244]:57931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr9wd-0002NG-5r for help-gnu-emacs@gnu.org; Tue, 27 Oct 2015 15:30:07 -0400 Original-Received: from london.london ([212.56.101.125]) by avasout03 with smtp id aKW41r0042iKkuk01KW58i; Tue, 27 Oct 2015 19:30:06 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=SKu/L7bH c=1 sm=1 tr=0 a=Z6vFUnHZFshV1nOgW1CWSg==:117 a=Z6vFUnHZFshV1nOgW1CWSg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=mDV3o1hIAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=6DgVc4z2RwXm4K4IJuUA:9 a=e5uuGggevFzCw714:21 a=woZPUuT7lARms6MV:21 a=QEXdDO2ut3YA:10 a=WO51ReP4XRkPbfHg6wwA:9 X-AUTH: skimble@:2500 In-Reply-To: (Barry Margolin's message of "Tue, 27 Oct 2015 14:49:53 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.244 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107850 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Barry Margolin writes: > In article , > Sharon Kimble wrote: > >> --8<---------------cut here---------------start------------->8--- >> #+begin_src emacs-lisp >> (defun qdot/clear-kill-ring () >> "Clear the kill ring variable" >> (setq kill-ring nil)) >> (global-set-key (kbd "s-/") 'qdot/clear-kill-ring) >> #+end_src >> --8<---------------cut here---------------end--------------->8--- >>=20 >> However when I do "s-/" emacs replied with >>=20 >> =C2=A2~=C2=A2w=C2=A2w=C2=A2w=C2=A2w >> =C2=A2x(wrong-type-argument commandp qdot/clear-kill-ring) in=20 >> ad-Advice-call-interactively >> =C2=A2=C2=A2=C2=A2w=C2=A2w=C2=A2w=C2=A2w >>=20 >> So what should I have in my function please to get it working properly? > > You forgot to put (interactive) in qdot/clear-kill-ring, to indicate=20 > that it's a command, not just an ordinary function. You mean like - =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82(defun qdot/clear-kill-ring (interactive) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 I'm not sure what you mean or how to show it. Is that what you meant? Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWL9C2AAoJEDaBgBkK+INbcqIQALzQiX/9JnvrAEz9RtwKzeKL zGRQi+ZB3rtMqr8FTJ9eNw9yY6TlQrWGEDfDGP3NNQCILikcZ/+5dEID10VlEhxz WkbmP80/zVTxobF8nvMTHtzSiFILMqXlHzO7OZJJL9FADg9FZDI4666FyxFfEwKB vpreoGuzshFRZLELN2bvdfOyWr1qTAOYLoWknMq3kPdcicqlvhLDAFfGCJxlaGs2 gxgwTZvFRY5SAvkAG7ZdWTQpU1mxTB4/18BxQAks8tsfF3ps6KAG3MZC0hDunO1E wCPa0x4fajhmLj4RN3bbUfGWYNOobGztM4jweE0Ts8HACPaurxTe4NdnGnnarSKD YCYSYMDGUMZhZKKHFSrWvEEDSEEgJvwLyG2wSYzmFBUP9qh1gpZWPQJjhRoL/TDU +IsbjfePQklXWX/HcvSU+zSph3Vym0DcTvd5PEJv3F8TnYfiAjVfMz+/m3Lo947c pqXagCLmoqUd8ownLpDQRRuyy75X3jo9/JyUNqanVzT79yXzQbQFEUDpW8HB52Ge xS1RiR4gbO5H5/ZHjoMLwmiLFJwwTVgZoOIIR08xpFtORFbv2pk42IoQ4jUw16QR R/z2PZEdXXuLDNGVjRj4oyVfvU2M5Gi5sPzjJ1WcGuoS0VtA9V3Hd1bJeWPbxmCF iSvjWzGZ8NTUGeXMbtxj =I98d -----END PGP SIGNATURE----- --=-=-=--