unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* digit-argument and inserting numbers
@ 2008-10-22 21:27 Chong Yidong
  2008-10-22 21:34 ` Lennart Borgman (gmail)
  2008-10-22 22:00 ` Andreas Schwab
  0 siblings, 2 replies; 3+ messages in thread
From: Chong Yidong @ 2008-10-22 21:27 UTC (permalink / raw)
  To: emacs-devel

In bug#771, Jay Belanger pointed out a problem with digit-argument:

> "M-5 0 x" would print 0 five times, followed by an x. However, "M-5 0
> x" will print x fifty times.

The problem is that there isn't an easy way to print `0' five times,
using either digit-argument or C-u.  This may have been discussed
before; if so, can someone point to the discussion and/or summarize the
conclusions?




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

* Re: digit-argument and inserting numbers
  2008-10-22 21:27 digit-argument and inserting numbers Chong Yidong
@ 2008-10-22 21:34 ` Lennart Borgman (gmail)
  2008-10-22 22:00 ` Andreas Schwab
  1 sibling, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-10-22 21:34 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

Chong Yidong wrote:
> In bug#771, Jay Belanger pointed out a problem with digit-argument:
> 
>> "M-5 0 x" would print 0 five times, followed by an x. However, "M-5 0
>> x" will print x fifty times.
> 
> The problem is that there isn't an easy way to print `0' five times,

00000 ;-)

> using either digit-argument or C-u.

More seriously I would suggest something like

  "M-5 C-q 0"

This feels rather mnemonic too me.




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

* Re: digit-argument and inserting numbers
  2008-10-22 21:27 digit-argument and inserting numbers Chong Yidong
  2008-10-22 21:34 ` Lennart Borgman (gmail)
@ 2008-10-22 22:00 ` Andreas Schwab
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2008-10-22 22:00 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

> The problem is that there isn't an easy way to print `0' five times,
> using either digit-argument or C-u.

M-5 C-u 0

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

end of thread, other threads:[~2008-10-22 22:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 21:27 digit-argument and inserting numbers Chong Yidong
2008-10-22 21:34 ` Lennart Borgman (gmail)
2008-10-22 22:00 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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