From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: magicus Newsgroups: gmane.emacs.help Subject: Elisp Question... Date: Sun, 27 Sep 2009 14:32:22 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1254105494 12971 80.91.229.12 (28 Sep 2009 02:38:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2009 02:38:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 04:38:08 2009 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 1Ms67r-0004mA-MV for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Sep 2009 04:38:07 +0200 Original-Received: from localhost ([127.0.0.1]:36217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ms67r-0001fn-6A for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Sep 2009 22:38:07 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsfeed.esat.net!feeder.news.heanet.ie!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.eternal-september.org U2FsdGVkX18UVpNWlpHr9DZ0g3wf+VCkzOn32uN7sxrcqi0FnLmsWrA9ScRWNO+YA8DsQAvwi7miunjB3RxbRLdDpYk25rID1JPHk8E9kmZ1Pbe7VRPK997PUHEo6PLBBuqbIo/ZmZmjp6mQtfvlTQ== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sun, 27 Sep 2009 14:32:22 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19hhRV6tfpa5LyPmbs7qv1W9J0+53xU3XU= Cancel-Lock: sha1:7lyl7/mF55O21mpclZGqmEulYeQ= User-Agent: Pan/0.132 (Waxed in Black) Original-Xref: news.stanford.edu gnu.emacs.help:173377 X-Mailman-Approved-At: Sun, 27 Sep 2009 22:37:23 -0400 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:68494 Archived-At: Hi, I posted this to comp.emacs when this might be a more useful newgroup. I am new to using elisp and I put together the following due to ignorance about how to do it in one function: ==================================================================== (fset 'flp-cr "Copyright © 2009 Furlan Lawrence Primus. All rights reserved.") (global-set-key (kbd "") 'flp-cr) (fset 'flp-copyright [f9 home ?\C- ?\C-e ?\M-w]) (global-set-key (kbd "") 'flp-copyright) ==================================================================== The main point here is that I wanted to be able to have it such that when I press F8 it displays the text AND copys it so that I can then use it outside of Emacs. The above seems to work and I'd like to make it a lot more compact. In addition, while it works in version 22.2.1 it stops after printing "Copyright" in version GNU Emacs 23.1.50.24 (i686-pc-linux- gnu, GTK+ Version 2.16.1) of 2009-09-27 on magicbox which I compile earlier from CVS. The error message post was: After 0 kbd macro iterations: up-list: Scan error: "Unbalanced parentheses", 202, 202 TIA for any comments and suggestions. ciao, f -- We are here to laugh at the odds and live our lives so well that Death will tremble to take us. -- Charles Bukowski