all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-u 1 inserts four "1" characters?
@ 2010-09-11 23:39 Sean McAfee
  2010-09-11 23:49 ` Pascal J. Bourguignon
  2010-09-12  9:29 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Sean McAfee @ 2010-09-11 23:39 UTC (permalink / raw)
  To: help-gnu-emacs

I almost always specify command prefix arguments by holding down the
meta key while I type the argument digits.  But just now I tried
specifying the prefix by typing C-u followed by the digits, and as soon
as I typed the first digit, four copies of the digit were inserted into
my current buffer!

Further experimentation showed that it didn't matter how many times I
type C-u prior to typing the first digit; four copies are always
inserted (not 16, 64, etc).  Also, if I type a hyphen following the C-u,
I get four hyphens in my buffer.

Anyone have any idea why this could be happening?


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

* Re: C-u 1 inserts four "1" characters?
  2010-09-11 23:39 C-u 1 inserts four "1" characters? Sean McAfee
@ 2010-09-11 23:49 ` Pascal J. Bourguignon
  2010-09-12  0:59   ` John Bokma
  2010-09-12  9:29 ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Pascal J. Bourguignon @ 2010-09-11 23:49 UTC (permalink / raw)
  To: help-gnu-emacs

Sean McAfee <eefacm@gmail.com> writes:

> I almost always specify command prefix arguments by holding down the
> meta key while I type the argument digits.  But just now I tried
> specifying the prefix by typing C-u followed by the digits, and as soon
> as I typed the first digit, four copies of the digit were inserted into
> my current buffer!
>
> Further experimentation showed that it didn't matter how many times I
> type C-u prior to typing the first digit; four copies are always
> inserted (not 16, 64, etc).  Also, if I type a hyphen following the C-u,
> I get four hyphens in my buffer.
>
> Anyone have any idea why this could be happening?

This is specified and documented that way.  C-u x is four xs.

If you want a different number, then type it: C-u 10 x is ten xs.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


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

* Re: C-u 1 inserts four "1" characters?
  2010-09-11 23:49 ` Pascal J. Bourguignon
@ 2010-09-12  0:59   ` John Bokma
  2010-09-12  1:45     ` Pascal J. Bourguignon
  0 siblings, 1 reply; 6+ messages in thread
From: John Bokma @ 2010-09-12  0:59 UTC (permalink / raw)
  To: help-gnu-emacs

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> Sean McAfee <eefacm@gmail.com> writes:
>
>> I almost always specify command prefix arguments by holding down the
>> meta key while I type the argument digits.  But just now I tried
>> specifying the prefix by typing C-u followed by the digits, and as soon
>> as I typed the first digit, four copies of the digit were inserted into
>> my current buffer!
>>
>> Further experimentation showed that it didn't matter how many times I
>> type C-u prior to typing the first digit; four copies are always
>> inserted (not 16, 64, etc).  Also, if I type a hyphen following the C-u,
>> I get four hyphens in my buffer.
>>
>> Anyone have any idea why this could be happening?
>
> This is specified and documented that way.  C-u x is four xs.
>
> If you want a different number, then type it: C-u 10 x is ten xs.

From what I understand Sean's complaint is that

C-u 3  gives 3333
C-u -  gives ----

So, if he tries 

C-u 10 x

he gets

11110x

not

xxxxxxxxxx

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/    Facebook: http://www.facebook.com/j.j.j.bokma
    Freelance Perl & Python Development: http://castleamber.com/


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

* Re: C-u 1 inserts four "1" characters?
  2010-09-12  0:59   ` John Bokma
@ 2010-09-12  1:45     ` Pascal J. Bourguignon
  0 siblings, 0 replies; 6+ messages in thread
From: Pascal J. Bourguignon @ 2010-09-12  1:45 UTC (permalink / raw)
  To: help-gnu-emacs

John Bokma <john@castleamber.com> writes:

> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> Sean McAfee <eefacm@gmail.com> writes:
>>
>>> I almost always specify command prefix arguments by holding down the
>>> meta key while I type the argument digits.  But just now I tried
>>> specifying the prefix by typing C-u followed by the digits, and as soon
>>> as I typed the first digit, four copies of the digit were inserted into
>>> my current buffer!
>>>
>>> Further experimentation showed that it didn't matter how many times I
>>> type C-u prior to typing the first digit; four copies are always
>>> inserted (not 16, 64, etc).  Also, if I type a hyphen following the C-u,
>>> I get four hyphens in my buffer.
>>>
>>> Anyone have any idea why this could be happening?
>>
>> This is specified and documented that way.  C-u x is four xs.
>>
>> If you want a different number, then type it: C-u 10 x is ten xs.
>
> From what I understand Sean's complaint is that
>
> C-u 3  gives 3333
> C-u -  gives ----
>
> So, if he tries 
>
> C-u 10 x
>
> he gets
>
> 11110x
>
> not
>
> xxxxxxxxxx


Indeed, he wrote that.
Sorry, I just demonstrated poor reading skills...  must be tired.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


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

* Re: C-u 1 inserts four "1" characters?
  2010-09-11 23:39 C-u 1 inserts four "1" characters? Sean McAfee
  2010-09-11 23:49 ` Pascal J. Bourguignon
@ 2010-09-12  9:29 ` Stefan Monnier
  2010-09-13 17:45   ` Sean McAfee
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-09-12  9:29 UTC (permalink / raw)
  To: help-gnu-emacs

> I almost always specify command prefix arguments by holding down the
> meta key while I type the argument digits.  But just now I tried
> specifying the prefix by typing C-u followed by the digits, and as soon
> as I typed the first digit, four copies of the digit were inserted into
> my current buffer!

That would be a bug.  I can't reproduce it, so first try it with
"emacs -Q" and if you can't reproduce there, try and prune your .emacs
until you figure out which part is the culprit.


        Stefan


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

* Re: C-u 1 inserts four "1" characters?
  2010-09-12  9:29 ` Stefan Monnier
@ 2010-09-13 17:45   ` Sean McAfee
  0 siblings, 0 replies; 6+ messages in thread
From: Sean McAfee @ 2010-09-13 17:45 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I almost always specify command prefix arguments by holding down the
>> meta key while I type the argument digits.  But just now I tried
>> specifying the prefix by typing C-u followed by the digits, and as soon
>> as I typed the first digit, four copies of the digit were inserted into
>> my current buffer!
>
> That would be a bug.  I can't reproduce it, so first try it with
> "emacs -Q" and if you can't reproduce there, try and prune your .emacs
> until you figure out which part is the culprit.

After restarting Emacs, I now can't reproduce it either.

My previous session had been running for a couple of months, at least.
I installed a few new packages and did a lot of messing around in
*scratch*, so perhaps one of those activities modified the way C-u
works and I just didn't notice for a while.  Hard to imagine how that
could happen by accident, though.


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

end of thread, other threads:[~2010-09-13 17:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-11 23:39 C-u 1 inserts four "1" characters? Sean McAfee
2010-09-11 23:49 ` Pascal J. Bourguignon
2010-09-12  0:59   ` John Bokma
2010-09-12  1:45     ` Pascal J. Bourguignon
2010-09-12  9:29 ` Stefan Monnier
2010-09-13 17:45   ` Sean McAfee

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.