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: Wed, 28 Oct 2015 06:06:10 +0000 Message-ID: <87eggf4je5.fsf@skimble.plus.com> References: <87lhaof6tm.fsf@skimble.plus.com> <87twpcoyjy.fsf@web.de> 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 1446012410 27749 80.91.229.3 (28 Oct 2015 06:06:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 06:06:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 07:06:40 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 1ZrJsb-00014w-Kv for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 07:06:37 +0100 Original-Received: from localhost ([::1]:35743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrJsa-0005Sp-R1 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 02:06:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrJsQ-0005Si-8V for help-gnu-emacs@gnu.org; Wed, 28 Oct 2015 02:06:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrJsL-0001d2-4K for help-gnu-emacs@gnu.org; Wed, 28 Oct 2015 02:06:26 -0400 Original-Received: from avasout03.plus.net ([84.93.230.244]:40794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrJsK-0001bl-U8 for help-gnu-emacs@gnu.org; Wed, 28 Oct 2015 02:06:21 -0400 Original-Received: from london.london ([212.56.101.125]) by avasout03 with smtp id aW6F1r0052iKkuk01W6GFx; Wed, 28 Oct 2015 06:06:18 +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=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=rnMgS5VL0yhDrB5bmTkA:9 a=AiqBi8xPvfQ5YPIU:21 a=Uvld7sVbqkXdKsT9:21 a=QEXdDO2ut3YA:10 a=1oLJz92xd3B1B5CtRO0A:9 X-AUTH: skimble@:2500 In-Reply-To: <87twpcoyjy.fsf@web.de> (Michael Heerdegen's message of "Tue, 27 Oct 2015 21:18:25 +0100") 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:107861 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Heerdegen writes: > Sharon Kimble writes: > >> 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 > > More like > > (defun qdot/clear-kill-ring () > (interactive) > ...) > > See (info "(elisp) Using Interactive"). Thanks for this Michael, I now have - =2D-8<---------------cut here---------------start------------->8--- #+begin_src emacs-lisp (defun clear-kill-ring () (interactive) "Clear the kill ring variable" (setq kill-ring nil)) (global-set-key (kbd "s-/") 'clear-kill-ring) #+end_src =2D-8<---------------cut here---------------end--------------->8--- And have restarted emacs several times, but if I do a "s-." before hand I can see several items on the kill-ring. So I then do "s-/" to clear the kill-ring, and if I then do a further "s-." it shows that there still remains the same items on the kill-ring, i.e. nothing has changed! Or, IOW, the function isn't working! So I'm back to my original question, what do I have to do to get it working please? 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 iQIcBAEBCgAGBQJWMGXSAAoJEDaBgBkK+INbfVQP/1ZsRm/bd7iSeD60Wv0iTX4k kHskLxa8byOwYXWfWQGcNl9K6NdLsFIYD6MhISVspj7xOfTLiuIUVLNwssQS+FzK qn1b94f87Q1mc4tdSMz3hxmUzd6tN8+d4SYmKYEIJKwiO1Iu6mm4HL1GqS2m3rsN Qb+upLowgQhtduJT+RqNJ8lGMrkuZufvZZIFyPFzFJf08Lm/zOwa/eHFu30zJgCc RAcn7Jas8NVLYRXDLxKUkkPG/psA4cLPoSTTjqzjOdfV2QvQ1RY/yu61UeDA35s1 85AH0WGRZxjoSO3Q+/FCbty2aZIiCGjcZzSzYhpXBDMOjad39jDmKp4+DzJ4zUgL yUJS1CCoh4CErHr+Xa4rxXRo3t1wK8b0sBkehzDdpqw3ZZxagAJ1itabCn0XbUQW Qo+Y2HMfQQUlsIrL1P2cTNcH2DvREFbUVx0vP/eu2oSByLAul7ij7TZLvP/o16lw +vCze33r9rYUaOedRbjY+31WGXcVZTQcXTVSraQKR0SkQtlJW49+N9jQ2CUouYpt nkJrO3t2KPt7Tbse+vWHl8ufMpDrPJIiz+vNHOTv5UkoGtyO0a6qB+eKZ7oFZXoQ H8qJEwLrmvZVdZcqILTDuLhFw757xM5ELBm3ekG2Alm+HR2v6bhDRzURE4szKleu paqfcLCeuBeuLd8wqIjj =HkIR -----END PGP SIGNATURE----- --=-=-=--