unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* numeric keypad return
@ 2008-11-14  9:32 kodifik
  2008-11-14 12:12 ` Tassilo Horn
  2008-11-14 12:13 ` Juanma Barranquero
  0 siblings, 2 replies; 3+ messages in thread
From: kodifik @ 2008-11-14  9:32 UTC (permalink / raw)
  To: help-gnu-emacs

Sorry if this has been answered 10000000 times before, but I do not
find it in documentation, nor googling around.
The question is: Can I assign the num. key "intro" independently from
the normal return key?
Thanks for you patience.


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

* Re: numeric keypad return
  2008-11-14  9:32 numeric keypad return kodifik
@ 2008-11-14 12:12 ` Tassilo Horn
  2008-11-14 12:13 ` Juanma Barranquero
  1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2008-11-14 12:12 UTC (permalink / raw)
  To: help-gnu-emacs

kodifik@eurogaran.com writes:

> Sorry if this has been answered 10000000 times before, but I do not
> find it in documentation, nor googling around.  The question is: Can I
> assign the num. key "intro" independently from the normal return key?

You mean "enter", not "intro", right?

Looking at

,----[ C-h k RET ]
| RET (translated from <kp-enter>) runs the command newline, which is an
| interactive compiled Lisp function in `simple.el'.
| 
| It is bound to RET.
| 
| (newline &optional arg)
| 
| Insert a newline, and move to left margin of the new line if it's
| blank.  If `use-hard-newlines' is non-nil, the newline is marked with
| the text-property `hard'.
| With arg, insert that many newlines.
| Call `auto-fill-function' if the current column number is greater than
| the value of `fill-column' and arg is nil.
`----

I can see that the key <kb-enter> currently translates to RET, but emacs
seems to distinguish.  So you can define it separately:

  (define-key 'some-key-map (kbd "<kp-enter) 'some-command)

Bye,
Tassilo
-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_





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

* Re: numeric keypad return
  2008-11-14  9:32 numeric keypad return kodifik
  2008-11-14 12:12 ` Tassilo Horn
@ 2008-11-14 12:13 ` Juanma Barranquero
  1 sibling, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2008-11-14 12:13 UTC (permalink / raw)
  To: kodifik; +Cc: help-gnu-emacs

On Fri, Nov 14, 2008 at 10:32,  <kodifik@eurogaran.com> wrote:

> The question is: Can I assign the num. key "intro" independently from
> the normal return key?

Yes.

Try C-h k <NUM-INTRO> and C-h k <NORMAL-INTRO> to see the names to use
in bindings, for example:

C-h k <NORMAL-INTRO>  => "RET (translated from <return>) [...]"

C-h k <NUM-INTRO>  => "RET (translated from <kp-enter>) [...]"

  Juanma




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

end of thread, other threads:[~2008-11-14 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-14  9:32 numeric keypad return kodifik
2008-11-14 12:12 ` Tassilo Horn
2008-11-14 12:13 ` Juanma Barranquero

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).