all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to execute certain commands like get-byte, char-* ...
@ 2015-02-11 17:21 helpme
  2015-02-11 18:41 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: helpme @ 2015-02-11 17:21 UTC (permalink / raw)
  To: help-gnu-emacs

When I do:

M-x get-byte <RET>

Emacs says: "no match", why?

I'm using Emacs 24.3.1 for Windows.


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

* RE: How to execute certain commands like get-byte, char-* ...
  2015-02-11 17:21 How to execute certain commands like get-byte, char-* helpme
@ 2015-02-11 18:41 ` Drew Adams
  2015-02-11 19:08   ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2015-02-11 18:41 UTC (permalink / raw)
  To: helpme, help-gnu-emacs

> When I do:
> M-x get-byte <RET>
> Emacs says: "no match", why?

`get-byte' is not a command.



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

* Re: How to execute certain commands like get-byte, char-* ...
  2015-02-11 18:41 ` Drew Adams
@ 2015-02-11 19:08   ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2015-02-11 19:08 UTC (permalink / raw)
  To: helpme, help-gnu-emacs


On 2015-02-11, at 19:41, Drew Adams <drew.adams@oracle.com> wrote:

>> When I do:
>> M-x get-byte <RET>
>> Emacs says: "no match", why?
>
> `get-byte' is not a command.

Just to clarify (I guess Drew's time is more precious than mine - no
irony here, just the statement about our relative competence):
a "command" is a function which has an "interactive" declaration.  If
you want to run a function, which is not a command, you can:

- change its definition to include the "interactive" clause (might not
  be trivial, depending on its signature),

- write a wrapper command for it,

- or use M-: (eval-expression, or - if you use Icicles -
  icicle-pp-eval-expression), and write a piece of Elisp (complete with
  the parens), like M-: (get-byte 4 "hello world")

(This list is probably not exhaustive.)

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



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

end of thread, other threads:[~2015-02-11 19:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 17:21 How to execute certain commands like get-byte, char-* helpme
2015-02-11 18:41 ` Drew Adams
2015-02-11 19:08   ` Marcin Borkowski

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.