From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jorge" Newsgroups: gmane.emacs.bugs Subject: bug#39359: [patch] TUTORIAL: Be accurate about "buffer" vs "file"; capitalize Dired. Four other trivial TUTORIAL patches Date: Fri, 31 Jan 2020 13:28:14 +0000 Message-ID: References: <83sgjwkm8q.fsf@gnu.org> <79a6fd311edba2ddfbd36da083be2bd5@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39359@debbugs.gnu.org To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 31 14:29:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixWMD-0000nd-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 14:29:13 +0100 Original-Received: from localhost ([::1]:53078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixWMC-0008Ss-6u for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 08:29:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56370) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixWM4-0008Pt-1r for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 08:29:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixWM2-0007lr-Gz for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 08:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixWM2-0007lc-Dg for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 08:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixWM2-0000cT-8g for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 08:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jorge" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2020 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39359 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39359-submit@debbugs.gnu.org id=B39359.15804773032336 (code B ref 39359); Fri, 31 Jan 2020 13:29:02 +0000 Original-Received: (at 39359) by debbugs.gnu.org; 31 Jan 2020 13:28:23 +0000 Original-Received: from localhost ([127.0.0.1]:36686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWLO-0000ba-OI for submit@debbugs.gnu.org; Fri, 31 Jan 2020 08:28:23 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:53074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWLM-0000bN-8V for 39359@debbugs.gnu.org; Fri, 31 Jan 2020 08:28:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 29A632E93B; Fri, 31 Jan 2020 14:28:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ws2st9HHzTIY; Fri, 31 Jan 2020 14:28:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1580477294; bh=4WtkN1FXiMRyQLFgZJ4Aa9ooGNCfmqSf4rbIjA3TwHg=; h=Date:From:Subject:To:Cc:In-Reply-To:References; b=WX94HS2cLVoNGIQzfL8jzVd/C8plZxYgUN6ggaWPEF6KT/UBwCCo8IPuP0c5juVa8 a4y15xPpDbRViDsKhC5GLW+616WoUmMA6yIxVt5vRQZ+y9vNCTYmTVp88MTvCeIezw HCUkKnH12kcrMqFlf0G/zBqsycMOxj1phbI/j9tUZamMIZK8K8BumjjuoY+DIEzj+K 84mIsJUhn3EEGyYOI2UdLW3U7lZhPyzI7PdN48w3y6pRRsb+5Hu66qTC1cPyr0Ql2v mrCxPaloMp8uPoGv5L3zMho6+Ne1PdatxYf6w8Tc22SpXfgUL6PaBL10gvIYZNEG+w zL9ZSZCW/4OOw== In-Reply-To: <83sgjwkm8q.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175485 Archived-At: January 31, 2020 6:29 AM, "Eli Zaretskii" wrote:=0A=0A> (T= his is yet another reason why introducing buffers before they are=0A> des= cribed in the tutorial might be a step in the wrong direction.)=0A=0AI un= derstand. I only disambiguated buffer vs file after the BUFFERS=0Asectio= n.=0A=0A> Bottom line: I think in this case accuracy is less important th= an=0A> providing an introduction to Emacs usage that is as free from=0A> = complexities as practically possible.=0A=0AI understand. However, if the= user learns too much inaccuracy, she can=0Abe confused later when she tr= ies to consult docstrings or the Info=0Amanual, because (IIRC) these use = technical terminology.=0A=0ABesides, the current tutorial is slightly inc= onsistent in the EXTENDING=0ATHE COMMAND SET section, because it says "Sa= ve file" for C-x C-s, but=0A"Save some buffers" for C-x s.=0A=0ASo I've m= ade a second attempt. I don't want to waste your time with my=0AOCD, so = if after analyzing the second attempt you decide to just apply=0Athe part= s you agree with (even if just the capitalization fix at the=0Aend: "dire= d" -> "Dired") and proceed to discuss the other trivial patches=0A(and I = can open separate bug reports for them if you wish), I'm OK with=0Athat.= =0A=0A--8<---------------cut here---------------start------------->8---= =0Adiff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL=0Aindex a= 7017336a7..536351c582 100644=0A--- a/etc/tutorials/TUTORIAL=0A+++ b/etc/t= utorials/TUTORIAL=0A@@ -662,13 +662,15 @@ There are many C-x commands. H= ere is a list of the ones you have learned:=0A =0A C-x C-f Find file=0A= C-x C-s Save file=0A- C-x s Save some buffers=0A+ C-x s Save some fi= les=0A C-x C-b List buffers=0A C-x b Switch buffer=0A C-x C-c Quit = Emacs=0A C-x 1 Delete all but one window=0A C-x u Undo=0A =0A+(Techni= cally, C-x C-s is "save-buffer" and C-x s is save-some-buffers.)=0A+=0A N= amed eXtended commands are commands which are used even less=0A frequentl= y, or commands which are used only in certain modes. An=0A example is th= e command replace-string, which replaces one string with=0A@@ -696,13 +69= 8,13 @@ want to change only some of the occurrences.)=0A * AUTO SAVE=0A -= ----------=0A =0A-When you have made changes in a file, but you have not = saved them yet,=0A-they could be lost if your computer crashes. To prote= ct you from=0A-this, Emacs periodically writes an "auto save" file for ea= ch file that=0A-you are editing. The auto save file name has a # at the = beginning and=0A-the end; for example, if your file is named "hello.c", i= ts auto save=0A-file's name is "#hello.c#". When you save the file in th= e normal way,=0A-Emacs deletes its auto save file.=0A+When you have made = changes in a file (technically, to its buffer), but=0A+you have not saved= them yet, they could be lost if your computer=0A+crashes. To protect yo= u from this, Emacs periodically writes an "auto=0A+save" file for each fi= le that you are editing. The auto save file=0A+name has a # at the begin= ning and the end; for example, if your file=0A+is named "hello.c", its au= to save file's name is "#hello.c#". When=0A+you save the file in the nor= mal way, Emacs deletes its auto save file.=0A =0A If the computer crashes= , you can recover your auto-saved editing by=0A finding the file normally= (the file you were editing, not the auto=0A@@ -730,13 +732,15 @@ The mod= e line says something like this:=0A This line gives useful information ab= out the status of Emacs and=0A the text you are editing.=0A =0A-You alrea= dy know what the filename means--it is the file you have=0A-found. NN% i= ndicates your current position in the buffer text; it=0A-means that NN pe= rcent of the buffer is above the top of the screen.=0A-If the top of the = buffer is on the screen, it will say "Top" instead=0A-of " 0%". If the b= ottom of the buffer is on the screen, it will say=0A-"Bot". If you are l= ooking at a buffer so small that all of it fits on=0A-the screen, the mod= e line says "All".=0A+You already know what "TUTORIAL" means--it is the c= urrent file's name=0A+(technically it is the buffer's name, but, when you= are editing a file,=0A+by default that is the file's name). NN% indicat= es your current=0A+position in the buffer text; it means that NN percent = of the buffer is=0A+above the top of the screen. If the top of the buffe= r is on the=0A+screen, it will say "Top" instead of " 0%". If the bottom= of the=0A+buffer is on the screen, it will say "Bot". If you are lookin= g at a=0A+buffer so small that all of it fits on the screen, the mode lin= e says=0A+"All".=0A =0A The L and digits indicate position in another way= : they give the=0A current line number of point.=0A@@ -763,8 +767,8 @@ ma= jor mode is the name of an extended command, which is how you can=0A swit= ch to that mode. For example, M-x fundamental-mode is a command to=0A sw= itch to Fundamental mode.=0A =0A-If you are going to be editing human-lan= guage text, such as this file, you=0A-should probably use Text Mode.=0A+I= f you are going to be editing human-language text, such as this=0A+tutori= al, you should probably use Text Mode.=0A =0A >> Type M-x text-mode .=0A =0A@@ -1084,7 +1088,7 @@ corresponding command names (such as C-x= C-f beside find-file).=0A You can learn more about Emacs by reading its = manual, either as a=0A printed book, or inside Emacs (use the Help menu o= r type C-h r).=0A Two features that you may like especially are completio= n, which saves=0A-typing, and dired, which simplifies file handling.=0A+t= yping, and Dired, which simplifies file handling.=0A =0A Completion is a = way to avoid unnecessary typing. For instance, if you=0A want to switch = to the *Messages* buffer, you can type C-x b *M=0A--8<--------------= -cut here---------------end--------------->8---=0A=0ARegards=0A- I am Bra= zilian. I hope my English is correct and I welcome feedback=0A- Please a= dopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z=0A- Free/l= ibre software for Replicant, LineageOS and Android: https://f-droid.org/= =0A- [[https://www.gnu.org/philosophy/free-sw.html][What is free software= ?]]