unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastian Urban <mrsebastianurban@gmail.com>
To: mrsebastianurban@gmail.com
Cc: 37325@debbugs.gnu.org
Subject: bug#37325: About 'latex-insert/close-block' in 'latex-mode'
Date: Mon, 4 May 2020 16:48:08 +0200	[thread overview]
Message-ID: <8d17da0c-0da2-8e52-1f05-2e1c103ff6da@gmail.com> (raw)
In-Reply-To: <e6065af7-259e-9175-866c-474a9b1b781c@gmail.com>

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

 >> 3.  In INFO 25.11.2 "LaTeX Editing Commands" for 'C-c C-o' alias
 >> 'tex-latex-block' is used and for 'C-c C-e' alias
 >> 'tex-close-latex-block' is used - why not real functions names:
 >> 'latex-insert-block' and 'latex-close-block'?  They would even sound
 >> better (look at the name of the section).
 >
 > And this is a bug.  In "tex-mode.el", under "tex-mode-map", there is:
 >
 >  (define-key map "\C-c\C-o" 'latex-insert-block)
 > AND
 >  (define-key map "\C-c\C-e" 'latex-close-block)
 >
 > In "text.texi", lines 1666, 1669, 1676 and 1691 should be updated.

I'm attaching diff for this, to help a bit.


S. U.


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

--- old/text.texi	2020-05-04 16:18:42.920418600 +0200
+++ new/text.texi	2020-05-04 16:37:46.208831200 +0200
@@ -1663,17 +1663,17 @@
 @table @kbd
 @item C-c C-o
 Insert @samp{\begin} and @samp{\end} for @LaTeX{} block and position
-point on a line between them (@code{tex-latex-block}).
+point on a line between them (@code{latex-insert-block}).
 @item C-c C-e
 Close the innermost @LaTeX{} block not yet closed
-(@code{tex-close-latex-block}).
+(@code{latex-close-block}).
 @end table
 
-@findex tex-latex-block
+@findex latex-insert-block
 @kindex C-c C-o @r{(@LaTeX{} mode)}
   In @LaTeX{} input, @samp{\begin} and @samp{\end} tags are used to
 group blocks of text.  To insert a block, type @kbd{C-c C-o}
-(@code{tex-latex-block}).  This prompts for a block type, and inserts
+(@code{latex-insert-block}).  This prompts for a block type, and inserts
 the appropriate matching @samp{\begin} and @samp{\end} tags, leaving a
 blank line between the two and moving point there.
 
@@ -1684,11 +1684,11 @@
 want additional block types for completion, customize the list
 variable @code{latex-block-names}.
 
-@findex tex-close-latex-block
+@findex latex-close-block
 @kindex C-c C-e @r{(@LaTeX{} mode)}
 @findex latex-electric-env-pair-mode
   In @LaTeX{} input, @samp{\begin} and @samp{\end} tags must balance.
-You can use @kbd{C-c C-e} (@code{tex-close-latex-block}) to insert an
+You can use @kbd{C-c C-e} (@code{latex-close-block}) to insert an
 @samp{\end} tag which matches the last unmatched @samp{\begin}.  It
 also indents the @samp{\end} to match the corresponding @samp{\begin},
 and inserts a newline after the @samp{\end} tag if point is at the

  reply	other threads:[~2020-05-04 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-06 17:31 bug#37325: About 'latex-insert/close-block' in 'latex-mode' Sebastian Urban
2019-09-07 10:16 ` Eli Zaretskii
2019-09-07 19:15   ` Sebastian Urban
2019-09-08 17:08     ` Eli Zaretskii
2020-04-23 12:29       ` Sebastian Urban
2020-05-04 14:48         ` Sebastian Urban [this message]
2020-07-12 19:15           ` Sebastian Urban
2022-01-28 16:28             ` Lars Ingebrigtsen
2022-01-28 16:12           ` Lars Ingebrigtsen
2020-05-28 15:58         ` Sebastian Urban

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=8d17da0c-0da2-8e52-1f05-2e1c103ff6da@gmail.com \
    --to=mrsebastianurban@gmail.com \
    --cc=37325@debbugs.gnu.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).