all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* CTL-u for complicated commands
@ 2003-08-15 11:19 schaecsn
  2003-08-15 12:38 ` Jussi Piitulainen
  2003-08-15 12:57 ` Johan Bockgård
  0 siblings, 2 replies; 5+ messages in thread
From: schaecsn @ 2003-08-15 11:19 UTC (permalink / raw)


Hi,

I can repeat commands via CTL-u <number> <command>. That doesn't work
always.

Example: I want to format each paragraph in a text with ALT-q, so what
I would like to do is:

CTL-u <a very big number> ALT-q <arrow-down>.

Any ideas who this can be done?

- Stefan

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

* Re: CTL-u for complicated commands
  2003-08-15 11:19 CTL-u for complicated commands schaecsn
@ 2003-08-15 12:38 ` Jussi Piitulainen
  2003-08-15 12:46   ` Robert Marshall
  2003-08-15 12:57 ` Johan Bockgård
  1 sibling, 1 reply; 5+ messages in thread
From: Jussi Piitulainen @ 2003-08-15 12:38 UTC (permalink / raw)


schaecsn writes:

> I can repeat commands via CTL-u <number> <command>. That doesn't work
> always.
> 
> Example: I want to format each paragraph in a text with ALT-q, so what
> I would like to do is:
> 
> CTL-u <a very big number> ALT-q <arrow-down>.
> 
> Any ideas who this can be done?

Make a keyboard macro and then repeat that. Your macro would be `C-x (
Alt-q <arrow-down> C-x )'. Then you try it a couple of times with `C-x
e', and when it seems right, you do `C-u verybignum C-x e'.
-- 
Jussi 

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

* Re: CTL-u for complicated commands
  2003-08-15 12:38 ` Jussi Piitulainen
@ 2003-08-15 12:46   ` Robert Marshall
  2003-08-15 20:45     ` Kevin Rodgers
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Marshall @ 2003-08-15 12:46 UTC (permalink / raw)


On 15 Aug 2003, Jussi Piitulainen wrote:

> schaecsn writes:
> 
>> I can repeat commands via CTL-u <number> <command>. That doesn't
>> work always.
>> 
>> Example: I want to format each paragraph in a text with ALT-q, so
>> what I would like to do is:
>> 
>> CTL-u <a very big number> ALT-q <arrow-down>.
>> 
>> Any ideas who this can be done?
> 
> Make a keyboard macro and then repeat that. Your macro would be `C-x
> ( Alt-q <arrow-down> C-x )'. Then you try it a couple of times with
> `C-x e', and when it seems right, you do `C-u verybignum C-x e'.

Or - better - C-u 0 C-x e

assuming that arrow-down doesn't extend the bufffer (see
next-line-add-newlines)

R
-- 
Poetry's not window cleaning.
It breaks the glass.
-- Chase Twichell

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

* Re: CTL-u for complicated commands
  2003-08-15 11:19 CTL-u for complicated commands schaecsn
  2003-08-15 12:38 ` Jussi Piitulainen
@ 2003-08-15 12:57 ` Johan Bockgård
  1 sibling, 0 replies; 5+ messages in thread
From: Johan Bockgård @ 2003-08-15 12:57 UTC (permalink / raw)


schaecsn <schaecsn@taipeh.wonderland.de> writes:

> I want to format each paragraph in a text

C-x h M-x fill-region RET

-- 
Man, Windows takes sooo long to boot up!
Yeah. But it halts quickly.

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

* Re: CTL-u for complicated commands
  2003-08-15 12:46   ` Robert Marshall
@ 2003-08-15 20:45     ` Kevin Rodgers
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2003-08-15 20:45 UTC (permalink / raw)


Robert Marshall wrote:

>>Make a keyboard macro and then repeat that. Your macro would be `C-x
>>( Alt-q <arrow-down> C-x )'. Then you try it a couple of times with
>>`C-x e', and when it seems right, you do `C-u verybignum C-x e'.
> 
> Or - better - C-u 0 C-x e


I've always found it annoying that specifying 0 as the arg to
call-last-kbd-macro does not run it 0 times.  I prefer to specify
a negative argument (C-u -) to run it til an error is signalled.


> assuming that arrow-down doesn't extend the bufffer (see
> next-line-add-newlines)


-- 
Kevin Rodgers

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

end of thread, other threads:[~2003-08-15 20:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 11:19 CTL-u for complicated commands schaecsn
2003-08-15 12:38 ` Jussi Piitulainen
2003-08-15 12:46   ` Robert Marshall
2003-08-15 20:45     ` Kevin Rodgers
2003-08-15 12:57 ` Johan Bockgård

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.