unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Invoking electirc command programmatically
@ 2005-05-10 14:48 PT
  2005-05-10 16:55 ` rgb
  2005-05-10 22:36 ` Tim X
  0 siblings, 2 replies; 3+ messages in thread
From: PT @ 2005-05-10 14:48 UTC (permalink / raw)


I have this electric function which inserts the character it is bound to  
and does something else too.

(defun my-electric-character (&optional arg)
   "Insert the typed character and pop up a completion buffer"
   (interactive "P")
   (self-insert-command (prefix-numeric-value arg))
   ...)

How can I invoke this function from my program with a certain character,  
so that it behaves just like if the user typed the character on the  
keyboard?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-10 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-10 14:48 Invoking electirc command programmatically PT
2005-05-10 16:55 ` rgb
2005-05-10 22:36 ` Tim X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).