The documentation for
M-x runs the command execute-extended-command (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’. It is bound to <execute>, <menu>, M-x. (execute-extended-command PREFIXARG &optional COMMAND-NAME TYPED) This function is for interactive use only; in Lisp code use ‘command-execute’ instead. Read a command name, then read the arguments and call the command. To pass a prefix argument to the command you are invoking, give a prefix argument to ‘execute-extended-command’.
I'm still a beginner at Elisp so I'm not sure I understand all of this, but it is saying that this should run an
interactive compiled Lisp function somewhere.
I recently was looking for a way to find the current frame height & width. I stumbled across this website after searching about it in my favourite search engine: https://www.gnu.org/software/emacs/manual/html_node/elisp/Frame-Size.html
Now, this is saying that, for example
Function: frame-height &optional frame
Function: frame-width &optional frame
These functions return the height and width of the text area of frame, measured in units of the default font height and width of frame (see Frame Font). These functions are plain shorthands for writing (frame-parameter frame 'height) and (frame-parameter frame 'width).
If the text area of frame measured in pixels is not a multiple of its default font size, the values returned by these functions are rounded down to the number of characters of the default font that fully fit into the text area.
frame-width are functions in Emacs. This seems like the legitimate gnu.org website so it should have the latest information.
Not sure why this isn't working when I do
M-x frame-height in Emacs;
[No Match] apparently.
Could anyone help me out in understanding this documentation?