From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: bundling C-u C-space
Date: Mon, 12 Oct 2015 02:51:21 +0200 [thread overview]
Message-ID: <87vbaczz7a.fsf@debian.uxu> (raw)
In-Reply-To: 877fmt10v5.fsf@debian.uxu
Emanuel Berg <embe8573@student.uu.se> writes:
> Why '(4) and not 4? Use the source, Luke!
> For set-mark-command, it is
>
> (interactive "P")
>
> and not "p".
By the way, here is an even better example which shows
the power of not pi but "p":
(defun window-increase-size (lines)
(interactive "p")
(window-resize nil lines) )
(defun window-decrease-size (lines)
(interactive "p")
(window-resize nil (* -1 lines) ))
(nil = current window!)
After you bind these to keystrokes, you can brute
hammer them keys until the window is of the right
size, *or* you can be mindful Jedi Master Kublai Khan
and shamanize exactly how many lines are needed, and
then hammer (or caress rather) that into action as the
prefix argument! You see? Poet and killer!
--
underground experts united
http://user.it.uu.se/~embe8573
prev parent reply other threads:[~2015-10-12 0:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-10 20:03 bundling C-u C-space Tim Johnson
2015-10-10 20:30 ` Drew Adams
2015-10-10 20:36 ` Drew Adams
2015-10-10 21:24 ` Tim Johnson
2015-10-10 21:51 ` Drew Adams
2015-10-10 22:51 ` Tim Johnson
2015-10-11 22:44 ` Emanuel Berg
2015-10-12 0:51 ` Emanuel Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbaczz7a.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.