unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument
@ 2018-10-21  4:18 Van L
  2018-10-21 12:26 ` Eli Zaretskii
  2018-10-21 20:33 ` Michael Heerdegen
  0 siblings, 2 replies; 6+ messages in thread
From: Van L @ 2018-10-21  4:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am unable to have the following work.

The elisp documentation has for me the problem of tl;dr and after experimenting with a few paragraphs and failing I want to ask how to get this done. I wonder sometimes if the documentation is obtuse by design to steal time.

┌────
│ (defun x-setface-height-i (number)
│   "Face height is set to NUMBER."
│   (interactive "nInsert number: ")
│   (set-face-attribute 'default (selected-frame) :height number))
│ 
│ ;; (info "(elisp) Interactive Call")
│ (global-set-key (kbd "C-c o") (funcall-interactively x-setface-height-i 202))
│ (global-set-key (kbd "C-c O") (funcall-interactively x-setface-height-i 256))
└────




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

end of thread, other threads:[~2018-10-22 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-21  4:18 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument Van L
2018-10-21 12:26 ` Eli Zaretskii
2018-10-21 20:33 ` Michael Heerdegen
2018-10-21 23:00   ` Van L
2018-10-22  6:25     ` Eli Zaretskii
2018-10-22 21:55       ` Van L

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