unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastian Urban <mrsebastianurban@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 35885@debbugs.gnu.org
Subject: bug#35885: 25.2; Few mistakes in Emacs Manual (+ proposals)
Date: Thu, 20 Aug 2020 20:24:32 +0200	[thread overview]
Message-ID: <b74cb116-4f49-5c4b-fcf5-ac622c3ee4d8@gmail.com> (raw)
In-Reply-To: <87o8n5xz9t.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 8432 bytes --]

Alright, updated version of changes, without @verb.

NOTE: Based on TEXI files from emacs-27 branch, downloaded 19.08.2020.

* BASIC.TEXI
============

1.  Apparently, pushing "C-x 8 ]" to the next page made "C-x 8" (the
      same paragraph, above) split after "C-x", so another @w is needed.

2.  (OPTIONAL) I removed @verb, but kept reorder of the words.  As I
      wrote in the original message:
         I also moved examples to the end of part of the sentence, this
         way we have: description followed by an example, instead of
         example being in the middle of description.
      Also, last example is split between lines, so I had to use @w.

--8<---------------cut here---------------start------------->8---
--- old/basic.texi	2020-08-20 17:59:31.446496400 +0200
+++ new/basic.texi	2020-08-20 18:17:59.289249300 +0200
@@ -112,7 +112,7 @@
   @cindex curly quotes, inserting
   @cindex curved quotes, inserting
     A few common Unicode characters can be inserted via a command
-starting with @kbd{C-x 8}.  For example, @kbd{C-x 8 [} inserts @t{‘}
+starting with @w{@kbd{C-x 8}}.  For example, @kbd{C-x 8 [} inserts @t{‘}
   which is Unicode code-point U+2018 @sc{left single quotation mark},
   sometimes called a left single ``curved quote'' or ``curly quote''.
   Similarly, @w{@kbd{C-x 8 ]}}, @kbd{C-x 8 @{} and @kbd{C-x 8 @}} insert the
@@ -147,10 +147,10 @@

     In addition, in some contexts, if you type a quotation using grave
   accent and apostrophe @kbd{`like this'}, it is converted to a form
-@t{‘like this’} using single quotation marks, even without @kbd{C-x 8}
-commands.  Similarly, typing a quotation @kbd{``like this''} using
-double grave accent and apostrophe converts it to a form @t{“like
-this”} using double quotation marks.  @xref{Quotation Marks}.
+using single quotation marks @t{‘like this’}, even without @kbd{C-x 8}
+commands.  Similarly, typing a quotation using double grave accent and
+apostrophe @kbd{``like this''}, converts it to a form using double
+quotation marks @w{@t{“like this”}}.  @xref{Quotation Marks}.

   @node Moving Point
   @section Changing the Location of Point
--8<---------------cut here---------------end--------------->8---


* DISPLAY.TEXI
==============

1.  Changed @samp to @t, as far as I remember it's preferred for quotes.

2.  Similarly, in (...), I changed @samp to @kbd.  Although, this time
      there is a page break after "(`", so @w around parens is needed.
      But it moves "(` and ')" to the next page.  If we want to keep it
      on the same page, we have to include (inside @w) word "quotes",
      i.e. "@w{quotes (@kbd{`} and @kbd{'})}".

3.  If I didn't make mistake there should be ASCII quotes not curved
      quotes, so I changed @t to @kbd.

--8<---------------cut here---------------start------------->8---
--- old/display.texi	2020-08-19 15:44:43.000000000 +0200
+++ new/display.texi	2020-08-20 18:53:25.061187600 +0200
@@ -1632,10 +1632,10 @@
   @cindex curved quotes, and terminal capabilities
   @cindex @code{homoglyph} face

-Emacs tries to determine if the curved quotes @samp{‘} and @samp{’}
+Emacs tries to determine if the curved quotes @t{‘} and @t{’}
   can be displayed on the current display.  By default, if this seems to
-be so, then Emacs will translate the @acronym{ASCII} quotes (@samp{`}
-and @samp{'}), when they appear in messages and help texts, to these
+be so, then Emacs will translate the @acronym{ASCII} quotes @w{(@kbd{`}
+and @kbd{'})}, when they appear in messages and help texts, to these
   curved quotes.  You can influence or inhibit this translation by
   customizing the user option @code{text-quoting-style} (@pxref{Keys in
   Documentation,,, elisp, The Emacs Lisp Reference Manual}).
@@ -1644,7 +1644,7 @@
   known to look just like @acronym{ASCII} characters, they are shown
   with the @code{homoglyph} face.  Curved quotes that are known not to
   be displayable are shown as their @acronym{ASCII} approximations
-@t{`}, @t{'}, and @t{"} with the @code{homoglyph} face.
+@kbd{`}, @kbd{'}, and @kbd{"} with the @code{homoglyph} face.

   @node Cursor Display
   @section Displaying the Cursor
--8<---------------cut here---------------end--------------->8---


* MODES.TEXI
============

Since, we are sticking to @kbd, and not using @verb, no changes in
this file.


* TEXT.TEXI
===========

1.  Quotes are fixed, so we don't need FIXME note.

2.  Changed @t to @kbd, because straight quotes are needed.

3.  Changed `...' and ``...'' to ‘...’ and “...”, and put them inside
      of @t, because it works now.

4.  Quoting myself again:
         Value of "electric-quote-chars" has so many @w, because:
            A.  To prevent splitting between lines, which happens;
            B.  ?‘ expands to ¿, so I had to prevent it (@w near ?’ ?“
            ?”, are unnecessary, but I put them anyway for consistency
            and just in case something in the future change, i.e. for
            safety).
      As for splitting, with @w it is put in the next line alone,
      perhaps it would look better with "is" in front of it, if yes -
      "is" must be put inside @w.

5.  Changed @t{"} to @kbd{"}, because we want "quotation mark".

6.  Changed `` and '' to @t{“} and @t{”}, reason the same as in (3.).

--8<---------------cut here---------------start------------->8---
--- old/text.texi	2020-08-19 15:45:20.000000000 +0200
+++ new/text.texi	2020-08-20 19:40:15.062523900 +0200
@@ -421,13 +421,12 @@
   @cindex curved quotes
   @cindex guillemets
   @findex electric-quote-mode
-@c The funny quoting below is to make the printed version look
-@c correct.  FIXME.
+
     One common way to quote is the typewriter convention, which quotes
-using straight apostrophes @t{'like this'} or double-quotes @t{"like
+using straight apostrophes @kbd{'like this'} or double-quotes @kbd{"like
   this"}.  Another common way is the curved quote convention, which uses
-left and right single or double quotation marks `@t{like this}' or
-``@t{like this}''@footnote{
+left and right single or double quotation marks @t{‘like this’} or
+@t{“like this”}@footnote{
   The curved single quote characters are U+2018 @sc{left single quotation
   mark} and U+2019 @sc{right single quotation mark}; the curved double quotes
   are U+201C @sc{left double quotation mark} and U+201D @sc{right double
@@ -445,7 +444,7 @@
   @code{electric-quote-chars}, a list of four characters, where the
   items correspond to the left single quote, the right single quote, the
   left double quote and the right double quote, respectively, whose
-default value is @code{'(?@r{`} ?@r{'} ?@r{``} ?@r{''})}.
+default value is @w{@code{'(@w{?}‘ @w{?}’ @w{?}“ @w{?}”)}}.

   @vindex electric-quote-paragraph
   @vindex electric-quote-comment
@@ -461,7 +460,7 @@

   @vindex electric-quote-replace-double
     You can also set the option @code{electric-quote-replace-double} to
-a non-@code{nil} value.  Then, typing @t{"} insert an appropriate
+a non-@code{nil} value.  Then, typing @kbd{"} insert an appropriate
   curved double quote depending on context: @t{“} at the beginning of
   the buffer or after a line break, whitespace, opening parenthesis, or
   quote character, and @t{”} otherwise.
@@ -473,7 +472,7 @@
   type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}.  To
   insert a curved quote even when Electric Quote is disabled or
   inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for
-@t{’}, @kbd{C-x 8 @{} for ``, and @kbd{C-x 8 @}} for ''.
+@t{’}, @kbd{C-x 8 @{} for @t{“}, and @kbd{C-x 8 @}} for @t{”}.
   @xref{Inserting Text}.  Note that the value of
   @code{electric-quote-chars} does not affect these keybindings, they
   are not keybindings of @code{electric-quote-mode} but bound in
--8<---------------cut here---------------end--------------->8---


* EMACS.TEXI
============

This will change header style (PDF), to this:
+-------------------------+ +------------------------+
| PAGE_NUM      DOC_TITLE | |CHAPTER        PAGE_NUM |

--8<---------------cut here---------------start------------->8---
--- old/emacs.texi	2020-08-19 15:44:47.000000000 +0200
+++ new/emacs.texi	2020-08-20 20:06:46.751323200 +0200
@@ -99,6 +99,7 @@

   @end titlepage

+@headings double

   @summarycontents
   @contents
--8<---------------cut here---------------end--------------->8---


That's all,
S. U.


[-- Attachment #2: basic.diff --]
[-- Type: text/plain, Size: 1410 bytes --]

--- old/basic.texi	2020-08-20 17:59:31.446496400 +0200
+++ new/basic.texi	2020-08-20 18:17:59.289249300 +0200
@@ -112,7 +112,7 @@
 @cindex curly quotes, inserting
 @cindex curved quotes, inserting
   A few common Unicode characters can be inserted via a command
-starting with @kbd{C-x 8}.  For example, @kbd{C-x 8 [} inserts @t{‘}
+starting with @w{@kbd{C-x 8}}.  For example, @kbd{C-x 8 [} inserts @t{‘}
 which is Unicode code-point U+2018 @sc{left single quotation mark},
 sometimes called a left single ``curved quote'' or ``curly quote''.
 Similarly, @w{@kbd{C-x 8 ]}}, @kbd{C-x 8 @{} and @kbd{C-x 8 @}} insert the
@@ -147,10 +147,10 @@
 
   In addition, in some contexts, if you type a quotation using grave
 accent and apostrophe @kbd{`like this'}, it is converted to a form
-@t{‘like this’} using single quotation marks, even without @kbd{C-x 8}
-commands.  Similarly, typing a quotation @kbd{``like this''} using
-double grave accent and apostrophe converts it to a form @t{“like
-this”} using double quotation marks.  @xref{Quotation Marks}.
+using single quotation marks @t{‘like this’}, even without @kbd{C-x 8}
+commands.  Similarly, typing a quotation using double grave accent and
+apostrophe @kbd{``like this''}, converts it to a form using double
+quotation marks @w{@t{“like this”}}.  @xref{Quotation Marks}.
 
 @node Moving Point
 @section Changing the Location of Point

[-- Attachment #3: display.diff --]
[-- Type: text/plain, Size: 1316 bytes --]

--- old/display.texi	2020-08-19 15:44:43.000000000 +0200
+++ new/display.texi	2020-08-20 18:53:25.061187600 +0200
@@ -1632,10 +1632,10 @@
 @cindex curved quotes, and terminal capabilities
 @cindex @code{homoglyph} face
 
-Emacs tries to determine if the curved quotes @samp{‘} and @samp{’}
+Emacs tries to determine if the curved quotes @t{‘} and @t{’}
 can be displayed on the current display.  By default, if this seems to
-be so, then Emacs will translate the @acronym{ASCII} quotes (@samp{`}
-and @samp{'}), when they appear in messages and help texts, to these
+be so, then Emacs will translate the @acronym{ASCII} quotes @w{(@kbd{`}
+and @kbd{'})}, when they appear in messages and help texts, to these
 curved quotes.  You can influence or inhibit this translation by
 customizing the user option @code{text-quoting-style} (@pxref{Keys in
 Documentation,,, elisp, The Emacs Lisp Reference Manual}).
@@ -1644,7 +1644,7 @@
 known to look just like @acronym{ASCII} characters, they are shown
 with the @code{homoglyph} face.  Curved quotes that are known not to
 be displayable are shown as their @acronym{ASCII} approximations
-@t{`}, @t{'}, and @t{"} with the @code{homoglyph} face.
+@kbd{`}, @kbd{'}, and @kbd{"} with the @code{homoglyph} face.
 
 @node Cursor Display
 @section Displaying the Cursor

[-- Attachment #4: emacs.diff --]
[-- Type: text/plain, Size: 197 bytes --]

--- old/emacs.texi	2020-08-19 15:44:47.000000000 +0200
+++ new/emacs.texi	2020-08-20 20:06:46.751323200 +0200
@@ -99,6 +99,7 @@
 
 @end titlepage
 
+@headings double
 
 @summarycontents
 @contents

[-- Attachment #5: text.diff --]
[-- Type: text/plain, Size: 2401 bytes --]

--- old/text.texi	2020-08-19 15:45:20.000000000 +0200
+++ new/text.texi	2020-08-20 19:40:15.062523900 +0200
@@ -421,13 +421,12 @@
 @cindex curved quotes
 @cindex guillemets
 @findex electric-quote-mode
-@c The funny quoting below is to make the printed version look
-@c correct.  FIXME.
+
   One common way to quote is the typewriter convention, which quotes
-using straight apostrophes @t{'like this'} or double-quotes @t{"like
+using straight apostrophes @kbd{'like this'} or double-quotes @kbd{"like
 this"}.  Another common way is the curved quote convention, which uses
-left and right single or double quotation marks `@t{like this}' or
-``@t{like this}''@footnote{
+left and right single or double quotation marks @t{‘like this’} or
+@t{“like this”}@footnote{
 The curved single quote characters are U+2018 @sc{left single quotation
 mark} and U+2019 @sc{right single quotation mark}; the curved double quotes
 are U+201C @sc{left double quotation mark} and U+201D @sc{right double
@@ -445,7 +444,7 @@
 @code{electric-quote-chars}, a list of four characters, where the
 items correspond to the left single quote, the right single quote, the
 left double quote and the right double quote, respectively, whose
-default value is @code{'(?@r{`} ?@r{'} ?@r{``} ?@r{''})}.
+default value is @w{@code{'(@w{?}‘ @w{?}’ @w{?}“ @w{?}”)}}.
 
 @vindex electric-quote-paragraph
 @vindex electric-quote-comment
@@ -461,7 +460,7 @@
 
 @vindex electric-quote-replace-double
   You can also set the option @code{electric-quote-replace-double} to
-a non-@code{nil} value.  Then, typing @t{"} insert an appropriate
+a non-@code{nil} value.  Then, typing @kbd{"} insert an appropriate
 curved double quote depending on context: @t{“} at the beginning of
 the buffer or after a line break, whitespace, opening parenthesis, or
 quote character, and @t{”} otherwise.
@@ -473,7 +472,7 @@
 type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}.  To
 insert a curved quote even when Electric Quote is disabled or
 inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for
-@t{’}, @kbd{C-x 8 @{} for ``, and @kbd{C-x 8 @}} for ''.
+@t{’}, @kbd{C-x 8 @{} for @t{“}, and @kbd{C-x 8 @}} for @t{”}.
 @xref{Inserting Text}.  Note that the value of
 @code{electric-quote-chars} does not affect these keybindings, they
 are not keybindings of @code{electric-quote-mode} but bound in

  parent reply	other threads:[~2020-08-20 18:24 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-24 15:59 bug#35885: 25.2; Few mistakes in Emacs Manual (+ proposals) Sebastian Urban
2019-06-02 22:50 ` Sebastian Urban
2019-06-03 16:36   ` Eli Zaretskii
2019-06-04 10:48     ` Sebastian Urban
2019-06-04 15:12       ` Eli Zaretskii
2019-06-05 10:40         ` Sebastian Urban
2019-06-05 16:52           ` Eli Zaretskii
2019-06-06  9:49             ` Sebastian Urban
2019-06-06 21:19               ` Sebastian Urban
2019-06-09  8:31                 ` Eli Zaretskii
2019-06-09  8:22               ` Eli Zaretskii
2019-06-10 10:30                 ` Sebastian Urban
2019-06-10 17:01                   ` Eli Zaretskii
2019-06-11 10:32                     ` Sebastian Urban
2019-06-11 16:59                       ` Eli Zaretskii
2019-06-12  8:44                         ` Sebastian Urban
2019-06-12 13:25                           ` Drew Adams
2019-06-03 16:32 ` Eli Zaretskii
2020-05-10 20:02 ` Sebastian Urban
2020-08-13  9:11   ` Sebastian Urban
2020-08-13 13:20     ` Eli Zaretskii
2020-08-13 14:06       ` Sebastian Urban
2020-08-13 14:16         ` Eli Zaretskii
2020-08-14  0:01           ` Sebastian Urban
2020-08-15 13:18   ` Lars Ingebrigtsen
2020-08-15 13:34     ` Eli Zaretskii
2020-08-15 13:52       ` Lars Ingebrigtsen
2020-08-15 14:11     ` Sebastian Urban
2020-08-16 11:16       ` Lars Ingebrigtsen
2020-08-16 13:00         ` Sebastian Urban
2020-08-18 14:54           ` Lars Ingebrigtsen
2020-08-18 15:07             ` Eli Zaretskii
2020-08-19 10:15               ` Lars Ingebrigtsen
2020-08-19  8:44             ` Sebastian Urban
2020-08-19 10:19               ` Lars Ingebrigtsen
2020-08-19 12:14                 ` Sebastian Urban
2020-08-20 12:44                   ` Lars Ingebrigtsen
2020-08-20 13:35                     ` Eli Zaretskii
2020-08-20 18:24                     ` Sebastian Urban [this message]
2020-08-22  7:20                       ` Eli Zaretskii
2020-08-22 10:19                         ` Sebastian Urban
2020-10-19 18:52                           ` Sebastian Urban
2021-05-12 14:47                           ` Lars Ingebrigtsen
2021-05-13 11:48                             ` Sebastian Urban
2021-05-16 13:30                               ` Lars Ingebrigtsen
2021-05-18  9:17                                 ` Sebastian Urban
2021-05-18 13:15                                   ` bug#42199: " Lars Ingebrigtsen
     [not found] <<cf31e2b2-3ad4-57f0-8847-e5f01ff35fc8@gmail.com>
     [not found] ` <<f2fff09b-fc97-795b-dc3b-4175c48234db@gmail.com>
     [not found]   ` <<83k1e2tym6.fsf@gnu.org>
     [not found]     ` <<e083f8bd-8c77-3558-c373-a8d9d9ef6079@gmail.com>
     [not found]       ` <<835zpltme6.fsf@gnu.org>
     [not found]         ` <<d1695e2e-7f87-7493-fbd9-97cd6347d837@gmail.com>
     [not found]           ` <<83muiwrn2u.fsf@gnu.org>
     [not found]             ` <<1583c6b3-2421-794d-8c8b-86287ef3fd5a@gmail.com>
     [not found]               ` <<83tvczb236.fsf@gnu.org>
     [not found]                 ` <<616312d4-0faf-0382-3f21-5b66327d8d8b@gmail.com>
     [not found]                   ` <<83tvcx9xyl.fsf@gnu.org>
2019-06-10 17:44                     ` Drew Adams

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=b74cb116-4f49-5c4b-fcf5-ac622c3ee4d8@gmail.com \
    --to=mrsebastianurban@gmail.com \
    --cc=35885@debbugs.gnu.org \
    --cc=larsi@gnus.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).