[PATCH 20/31] docs: consistently use minus sign for M- notation
"G. Branden Robinson" <[email protected]> Thu, 23 Apr 2026 18:00:13 -0500
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <20260423230013.ac5nob4jegg3nk7r@illithid> |
Usage in nano's man pages was split between `M-x` and `M\-x`, favoring the latter. Either could be defended. Since nano parses `M-x` notation from its nanorc file, a user might conceivably copy and paste from the man page into that file, which favors escaping the hyphen to make it (in *roff parlance) a minus sign (which man(7) renders as a hyphen-minus). --- doc/nano.1 | 2 +- doc/nanorc.5 | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/nano.1 b/doc/nano.1 index 67a4ec91..6c1ce2e0 100644 --- a/doc/nano.1 +++ b/doc/nano.1 @@ -36,7 +36,7 @@ .SH NOTICES If you prefer the old behavior, you can use \fB\-\-solo\fR on the command line or \fBset solosidescroll\fR in your \fInanorc\fR. .P -Also since version 9.0, keystrokes \fBM-<\fR and \fBM->\fR have +Also since version 9.0, keystrokes \fBM\-<\fR and \fBM\->\fR have been reassigned to the \fBscrollleft\fR and \fBscrollright\fR functions. If you want those keystrokes to do what they did before version 9.0, add these two lines at the end of your \fInanorc\fR file: diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 53302e6d..d9350fe4 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -40,7 +40,7 @@ .SH NOTICES If you prefer the old behavior, you can use \fB\-\-solo\fR on the command line or \fBset solosidescroll\fR in your \fInanorc\fR. .P -Also since version 9.0, keystrokes \fBM-<\fR and \fBM->\fR have +Also since version 9.0, keystrokes \fBM\-<\fR and \fBM\->\fR have been reassigned to the \fBscrollleft\fR and \fBscrollright\fR functions. If you want those keystrokes to do what they did before version 9.0, add these two lines at the end of your \fInanorc\fR file: @@ -808,26 +808,26 @@ .SH REBINDING KEYS .TP .B scrollleft Scrolls the viewport a tabsize to the left, when possible. -(This function is bound by default to \fBM-<\fR.) +(This function is bound by default to \fBM\-<\fR.) .TP .B scrollright Scrolls the viewport a tabsize to the right. When needed to keep the cursor visible, it is moved to a longer line in the viewport. If there is no sufficiently longer line, no scroll is made. -(This function is bound by default to \fBM->\fR.) +(This function is bound by default to \fBM\->\fR.) .TP .B scrollup Scrolls the viewport up one row (meaning that the text slides down) while keeping the cursor in the same text position, if possible. -(This function is bound by default to \fBM-Up\fR. -If \fBM-Up\fR does nothing on your Linux console, see the FAQ: +(This function is bound by default to \fBM\-Up\fR. +If \fBM\-Up\fR does nothing on your Linux console, see the FAQ: .UR https://\:nano\-editor.org/\:dist/\:latest/\:faq\:.html#4.1 .UE .) .TP .B scrolldown Scrolls the viewport down one row (meaning that the text slides up) while keeping the cursor in the same text position, if possible. -(This function is bound by default to \fBM-Down\fR.) +(This function is bound by default to \fBM\-Down\fR.) .TP .B center Scrolls the line with the cursor to the middle of the viewport. -- 2.30.2
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmnqpH0ACgkQ0Z6cfXEm bc42Jg//YMSHbAT7m7TcmymjS3LKneMv39JAfrQYk98S3JDs0TLe42H4dEpydy3/ OTM3YgDIM1QPs8sa/o8xviKjQoDRtGNO19uG10gVn9d0cgAbU6go7eD+68WDUQem 5ARrUv9Uz7H8hQPHqWUT3dHbq0zEngYdKK17HndvX9lQFYNF+uWBA7GX+3aSzScA sulxIUYfgnZHi+Mcdg7/icF7j565WM3lkvtY19DXyZfjSFiY3W0NExCEpTgxa3XK 21uvVwUU5hs25D2KuN1rdhYmNetLKeTnCdG4xN9QqEayUXlBnSOPqDVIRnAqXjFD DSHAh9PY523ZFcdbWp5z5KVfvyTjb+diawlTOE9+zPQ/TH0YrlPJxbM7t/KD+GJN sScSAfoCFjFqiwX1PyeFQgnHhglMDADIWzGwIz4jNZEtkRMuLMEz7aJyN5FgDhRQ aXHRaYvN99xKR0YX+ZO5IHB0qrCFX2wr/MQz0vZVsyjDVrK8aMqyllX8QsCF0QAD DoKneaExwPYPWltkG3FIRoxRs985C5RuaQocTd50UEF2oTE4qZZ+S/fe/GRLwd61 WoMlwcTYpI0DGCNDT9Oj/x4B4Mz+Y+nF9fqoLutsCoEmDLfwWr5RXGtp66VxjJrg BjW9j8pYFjU/IwMWsCmtcMP1mH9cDiuwANoqfLn1b7LBa+3rIBQ= =XJR6 -----END PGP SIGNATURE-----