unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* C-u prefix input (e.g., C-x f / set-fill-column)
@ 2007-10-19 14:45 David Reitter
  2007-10-19 15:05 ` Ulrich Mueller
  2007-10-20  3:30 ` Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: David Reitter @ 2007-10-19 14:45 UTC (permalink / raw)
  To: emacs- devel

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.

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

end of thread, other threads:[~2007-10-20  3:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 14:45 C-u prefix input (e.g., C-x f / set-fill-column) David Reitter
2007-10-19 15:05 ` 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

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