unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: C-u - does not work
Date: Wed, 08 Jun 2016 16:38:13 -0400	[thread overview]
Message-ID: <barmar-4F0AF4.16381308062016@88-209-239-213.giganet.hu> (raw)
In-Reply-To: 87bn3ba2os.fsf@Equus.decebal.nl

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

In article <87bn3ba2os.fsf@Equus.decebal.nl>,
 Cecil Westerhof <Cecil@decebal.nl> wrote:

> On Wednesday  1 Jun 2016 00:00 CEST, hasm@example.invalid wrote:
> 
> >
> >> When I want four - I would expect the following to work:
> >> C-u -
> >> but it does not.
> >
> > You can enter a number after C-u, defaulting to 4, number can be
> > positive or negative. When you type -, emacs things you are
> > composing a negative number.
> 
> I should have thought about that. :-(
> 
> But the situation I started with (but dumped down) was that I did:
>     C-u C-u -
> 
> With ‘C-u C-u’ I already signified that I want 16, so why does that
> not work and do I have to give:
>     C-u 16-
> 
> Not really a problem, but just wondering.

From the documentation:

C-u without digits or minus sign provides 4 as argument.
Repeating C-u without digits or minus sign
 multiplies the argument by 4 each time.

So if you type a number after C-u, it doesn't matter that you repeated 
it, it switches to the explicit numeric argument.

If you think this is wrong design, file a bug report.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  reply	other threads:[~2016-06-08 20:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 20:52 C-u - does not work Cecil Westerhof
2016-05-31 22:00 ` HASM
2016-06-02  2:43   ` B. T. Raven
2016-06-02  6:11     ` Joost Kremers
2016-06-02 14:57     ` HASM
2016-06-08 19:41   ` Cecil Westerhof
2016-06-08 20:38     ` Barry Margolin [this message]
2016-06-01 12:17 ` Joost Kremers

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-4F0AF4.16381308062016@88-209-239-213.giganet.hu \
    --to=barmar@alum.mit.edu \
    --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.
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).