From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: How to write a self-insert-command-like command? Date: Fri, 31 Jul 2015 22:35:14 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98C1FB1504@DAKIYA1.pegasus.local> References: <878u9wvxsa.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438382148 20342 80.91.229.3 (31 Jul 2015 22:35:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2015 22:35:48 +0000 (UTC) To: Marcin Borkowski , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 00:35:46 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 1ZLItx-00068h-M0 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 00:35:41 +0200 Original-Received: from localhost ([::1]:46227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLItw-0007EH-Uc for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2015 18:35:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLItd-0007Dz-4D for help-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLItY-00006p-4C for help-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:35:21 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:59232 helo=livemail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLItY-000053-15 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:35:16 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.03.0123.003; Fri, 31 Jul 2015 18:35:15 -0400 Thread-Topic: How to write a self-insert-command-like command? Thread-Index: AQHQy9VoSUXiSV39SUmVrbaMlG9/e532KgFA In-Reply-To: <878u9wvxsa.fsf@mbork.pl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 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:106173 Archived-At: > -----Original Message----- > On > Behalf Of Marcin Borkowski > Subject: How to write a self-insert-command-like command? >=20 > Hi all, >=20 > I want to have a command whose behavior will depend on the key used to > invoke it, much like self-insert-command. How to do that? Is > last-command-event the right tool for that, or is there a better one? last-command event is what I have used on the rare occasion=20 that I've written such a thing. --=20 ,Doug Douglas Lewan Shubert Ticketing (201) 489-8600 ext 4335 I once worked in a can recycling facility. It was soda pressing.