From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20135: 25.0.50; Emacs manual typos for key bindings Date: Wed, 18 Mar 2015 11:34:14 -0700 (PDT) Message-ID: <237c103a-4391-4792-adf3-e35b6d7fceff@default> References: <> <<83619yxl9i.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426703734 19185 80.91.229.3 (18 Mar 2015 18:35:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 18:35:34 +0000 (UTC) Cc: 20135@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 19:35:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YYIoD-0007Ft-T8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 19:35:14 +0100 Original-Received: from localhost ([::1]:35217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYIoD-0002SN-5L for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 14:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYIo8-0002QJ-2t for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 14:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYIo3-0008WJ-SF for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 14:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYIo3-0008VK-OL for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 14:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YYIo2-0000yi-Vx for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 14:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2015 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20135-submit@debbugs.gnu.org id=B20135.14267036623697 (code B ref 20135); Wed, 18 Mar 2015 18:35:02 +0000 Original-Received: (at 20135) by debbugs.gnu.org; 18 Mar 2015 18:34:22 +0000 Original-Received: from localhost ([127.0.0.1]:51926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYInN-0000xY-9b for submit@debbugs.gnu.org; Wed, 18 Mar 2015 14:34:22 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:32973) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYInL-0000xP-0Z for 20135@debbugs.gnu.org; Wed, 18 Mar 2015 14:34:19 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2IIYGuI021137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Mar 2015 18:34:17 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id t2IIYFEs028457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 18 Mar 2015 18:34:16 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t2IIYFh0026520; Wed, 18 Mar 2015 18:34:15 GMT In-Reply-To: <<83619yxl9i.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100629 Archived-At: First, thanks for making the fixes you made. That helps. > > Do we write `' or `S-'? Or do we use both conventions, and i= f > > so, are they interchangeable (same meaning)? >=20 > S- is the right way for the manuals. Any chance to revisit that? Why use different notations for help and manual? Anyway, that is not the particular issue of this bug report. > > Another question is about whether, aside from special cases (which are > > already called out, AFAIK), function-key names should be written using > > uppercase. For example, is `" correct, or should it be > > `" (or `S-')? >=20 > We've been though this before, and AFAIK the manual was fixed to be > consistent at that time. I know nothing about whether that was the case. But it does not seem to be consistent now, at least. > > In the manual, it seems that the more common syntax is `S-<...>', not > > `'. However, in doc strings the opposite seems to be true (?). >=20 > In the doc strings, that's substitution, right? It's not that these > are written verbatim in the doc string, right? If so, they are > formatted how the relevant APIs (key-description, I believe) do it. Correct. It is generally `key-description' that provides help commands with their syntax. Which means that this is the syntax users will be likely to see most often. Which means that it might well be the syntax that they will try (mistakenly) to use when searching the manual, for instance. > > 1. Node `View Mode': >. Presumably should be S-. >=20 > Fixed. >=20 > > 2. Node `Org Mode': . Should be S-, I'm guessing - or > > possibly S-, depending on which key is meant. >=20 > Fixed. >=20 > > 3. Node `Setting Mark': S-. Should be S-, I think. > > > > 4. Node `Indentation Commands': S-, S-. Should be > > S-, S-. (Also: and should be and > > .) > > > > 5. Node `Setting Mark': S-. Should be S-. > > > > 6. Node `User Input': M- should be M-. > > > > 7. Node `Moving Point': C-, M-, C-, M- should > > be C-, M-, C-, M-. >=20 > No, uppercase is OK here, for consistency with TAB, SPC, etc. Again, > we've been through this before. I don't recall being through all of this before. But if you insist on this (I disagree, obviously), then you will likely want to "fix" the opposite occurrences - e.g. `' etc. that you will find throughout the manual. But why would you give as a reason being consistent with TAB, SPC, DEL, etc., which are *exceptions* (correponding to ASCII names)? Why not speak about consistency with the other function keys and pseudofunction keys - , , , etc.? Presumably, one of us is missing something wrt "consistency". Even in the same node, e.g. `Insert in Picture', you will find 3 different ways of writing such keys: `C-c ' (uppercase) `C-c ' (title case) `C-c ' (lowercase) Surely there is something to be fixed there, no? How does Emacs=20 itself refer to those keys? Ask it: `C-h k' gives this: `C-c ' `C-c ' `C-c ' > > 8. Node `Minibuffer History': should presumably be M-n. >=20 > No, it should be `M-n' (with the quotes). =20 Agreed, and that's what I meant. I left off the quotes because of the variability I mentioned wrt whether they are used in the manual. > Fixed. >=20 > > (Also, and should be and . >=20 > No, that's OK. See above. In that case, please "fix" all of the occurrences of and . And all of the other (pseudo)function keys - , , etc. There are *lots* of them. I disagree that uppercase should be used, but if you're really making such a call then please apply it consistently. > > 9. Node `Basic Indent': should be just C-j. >=20 > Should be `C-j'; fixed. >=20 > > 10. Node `Custom C Indent': should be just C-M-q. >=20 > Again, `C-M-q'; fixed. >=20 > > 11. Node `Term Mode: should be just C-c. >=20 > `C-c'; fixed. >=20 > > 12. There is also inconsistency in whether such keys are enclosed in > > quotes. Node `Rmail Scrolling' has both notations mixed even in the > > same sentence (e.g., , but `S-'): >=20 > That's OK: a single key can omit the quotes; a sequence should not. >=20 > > 13. I wonder too about the function keys being written with uppercase: > > instead of . In *Help* buffers (e.g. from `C-h k') they ar= e > > written using lowercase. >=20 > Again, the manuals are consistent: all named keys are uppercased. Dunno whether we are talking about "named keys" or about key sequences, or both. But in any case, that's not what I see - at all. And I disagree that they should be. (Just one opinion, but most of the manual seemes to agree with me, as does help.) > If we want the doc strings to follow suit, the relevant primitives should > be changed to follow suit. I don't want to change the doc strings to follow suit. I think the manual should reflect Emacs itself: its doc strings, help output, `key-description= '. When you interact with Emacs in any way (except for reading the manual), this is how it talks about its key sequences. > > For example, if you think that is correct, then search also for > > . You will find, I think, that what I proposed is used more > > consistently. >=20 > I did that in the past, and I don't think we have any inconsistencies > left. Feel free to point out any you find. See what I already wrote. Start with `Moving Point', for instance. And `Org Mode'. And `Minibuffer Edit'. And `Yes or No Prompts'. And `Scrolling'. And `Scroll Calendar'. And `Docview Navigation'. And `Insert in Picture'... You can search as well as I. Try `C-s `... Then move on to another pseudofunction key. And another... I think that you will find that, except perhaps for those that you "fixed" the last time around (I don't recall that time, but you apparently do), the vast majority are written using lowercase (as they are in help buffers). > > But there does seem to be a general disconnect between what is shown in > > *Help* by the help commands and what is shown in the manual by Info. > > Help uses whereas the manual uses S-. > > > > To me, we should use the same notation for both, and I would vote for > > the manual to fit what help uses. That is, I would suggest that we > > (consistently) use what `key-description' returns. >=20 > I won't object. That's good news.