all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Executing the command bound to a key-stroke
@ 2004-01-26  7:33 Arjan Bos
  2004-01-27  7:56 ` Joakim Hove
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Arjan Bos @ 2004-01-26  7:33 UTC (permalink / raw)


How do I execute the command bound to \C-j ?

I've written my own major mode (netrexx-mode.el) and one of the pieces 
of elisp I have in there worry me. I feel that there should be a more 
consise way of doing it.

(if (eq (local-key-binding "\C-j")
      'netrexx-indent-newline-indent-with-end-comment)
    (netrexx-indent-newline-indent-with-end-comment)
   ;; else
   (netrexx-indent-newline-indent)))

The problem with this is that \C-j might be bound to some other command 
and that isn't handled by my code. What I would like is to execute the 
command bound to \C-j directly. I've tried several things, but they all 
failed me, hence this kludge.

TIA,

Arjan

-- 
--
If you really want to contact me, then replace the "I see you" text by 
its three letter accronym, ICU.

Fabricate Diem PVNC, Motto of the Night Watch -- Terry Pratchett

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

end of thread, other threads:[~2004-01-28 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26  7:33 Executing the command bound to a key-stroke Arjan Bos
2004-01-27  7:56 ` Joakim Hove
2004-01-28 19:57   ` Arjan Bos
2004-01-27  9:26 ` Eli Zaretskii
2004-01-27 14:08 ` Stefan Monnier
2004-01-28 19:56   ` Arjan Bos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.