unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: emacs- devel <emacs-devel@gnu.org>
Subject: C-u prefix input (e.g., C-x f / set-fill-column)
Date: Fri, 19 Oct 2007 15:45:31 +0100	[thread overview]
Message-ID: <DEEBE3DE-E455-46CA-85BF-608266F9DA45@gmail.com> (raw)

The documentation for `fill-column' reads:

 > Interactively, you can set the buffer local value using C-x f.

When you do C-x f, you get an error message "set-fill-column requires  
an explicit argument".

(The documentation for `set-fill-column' is okay.)

I would propose two changes:

1. The documentation should be

"Interactively, you can set the buffer local value using C-u <VALUE>  
C-x f."


2a. When users forget to give an argument with C-u, the error message  
should be

"set-fill-column requires an explicit argument with prefix C-u  
<ARGUMENT>"

or something like that.
Or, better:

2b. Instead of displaying the above error message, the user should be  
queried interactively for the argument, just like most interactive  
functions do it. In other words, use (interactive "N") in `set-fill- 
column' instead of "p".


FWIW, interactive "p" is used 213 times, but in most situations, the  
prefix seems to be optional, i.e. the change to "N" wouldn't be  
justified.

             reply	other threads:[~2007-10-19 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 14:45 David Reitter [this message]
2007-10-19 15:05 ` C-u prefix input (e.g., C-x f / set-fill-column) Ulrich Mueller
2007-10-19 15:21   ` Tassilo Horn
2007-10-19 17:30     ` Ulrich Mueller
2007-10-19 18:32       ` David Reitter
2007-10-19 23:45         ` Juri Linkov
2007-10-20  3:30 ` Richard Stallman

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=DEEBE3DE-E455-46CA-85BF-608266F9DA45@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=emacs-devel@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 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).